Skip to content
GitLab
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
c70f56db
Commit
c70f56db
authored
Jun 25, 2019
by
Harry Fuchs
Browse files
hack tex output for denser paragraphs
parent
df1803b3
Pipeline
#2514
passed with stage
in 9 minutes and 5 seconds
Changes
4
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
diffgeoII/compile.sh
View file @
c70f56db
cp
edit-this-file.tex tmp.tex
python3 preprocessor.py
pandoc
-f
org
-t
latex tmp.tex
-s
-o
for
-compile
.tex
--metadata-file
meta.yaml
--template
=
"latex.template"
python3 postprocessor.py
# clear && clear
echo
"start pdflatex"
...
...
diffgeoII/edit-this-file.tex
View file @
c70f56db
This diff is collapsed.
Click to expand it.
diffgeoII/latex.template
View file @
c70f56db
...
...
@@ -380,6 +380,7 @@ $endif$
$endif$
%custom
\usepackage{stmaryrd}
\usepackage{datetime}
\usepackage{cancel}
\usepackage{bbm}
...
...
diffgeoII/postprocessor.py
0 → 100644
View file @
c70f56db
#TODO Algorithmic efficiency
import
re
filename
=
"for-compile.tex"
with
open
(
filename
,
'r'
)
as
file
:
data
=
file
.
read
()
copy
=
data
while
True
:
data
=
copy
#print(data, copy)
if
data
==
copy
:
break
data
=
re
.
sub
(
r
'\n\s*\\begin{eqnarray\*}'
,
r
' \\begin{eqnarray*}'
,
data
)
with
open
(
filename
,
'w'
)
as
file
:
file
.
write
(
data
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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