Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Alekseev, Vadim
diffgeo-skript
Commits
ccc62db5
Commit
ccc62db5
authored
Feb 16, 2019
by
Harry Fuchs
Browse files
add new compile script
parent
74ec9142
Changes
4
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
ccc62db5
...
...
@@ -3,3 +3,4 @@
*.aux
*.log
gdim.tex
tmp.tex
compile.sh
View file @
ccc62db5
# cp edit-this-file.tex tmp.tex
inotifywait
-e
close_write,moved_to,create
-m
.
|
while
read
-r
directory events filename
;
do
if
[
"
$filename
"
=
"edit-this-file.tex"
]
;
then
pandoc
-f
org
-t
latex edit-this-file.tex
-s
-o
gdim.tex
--metadata-file
meta.yaml
cp
edit-this-file.tex tmp.tex
python3 preprocessor.py
pandoc
-f
org
-t
latex tmp.tex
-s
-o
gdim.tex
--metadata-file
meta.yaml
pdflatex gdim.tex
--non-stop-mode
echo
"wait for next change..."
fi
done
edit-this-file.tex
View file @
ccc62db5
...
...
@@ -46,20 +46,20 @@ Zitatinhalt
** Definition
Sei
$
x
\in
\mathbb
R
$
, dann:
\begin{equation*}
$$
=
x
=
\sqrt
{
b
}
\end{equation*}
$$
=
für ein
$
b
\in
\mathbb
C
$
.
Beweis:
- Als erstes
$
f
\colon
A
\to
B
$
- Nun noch
\begin{eqnarray*}
$$
3
&
=
&
2
+
1
\\
&
=
&
1
+
1
+
1
\end{eqnarray*}
$$
** Satz von X
...
...
@@ -69,3 +69,4 @@ Beweis:
* Siehe vorheriger Beweis
* dann erhalte nichts
preprocessor.py
0 → 100644
View file @
ccc62db5
#TODO Algorithmic efficiency
filename
=
"tmp.tex"
with
open
(
filename
,
'r'
)
as
file
:
data
=
file
.
read
()
copy
=
data
while
True
:
data
=
copy
copy
=
copy
.
replace
(
"
\n
$$
\n
"
,
'
\n\\
begin{eqnarray*}
\n
'
,
1
)
copy
=
copy
.
replace
(
"
\n
$$
\n
"
,
'
\n\\
end{eqnarray*}
\n
'
,
1
)
copy
=
copy
.
replace
(
"
\n
$$=
\n
"
,
'
\n\\
begin{equation*}
\n
'
,
1
)
copy
=
copy
.
replace
(
"
\n
$$=
\n
"
,
'
\n\\
end{equation*}
\n
'
,
1
)
print
(
data
,
copy
)
if
data
==
copy
:
break
with
open
(
filename
,
'w'
)
as
file
:
file
.
write
(
data
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment