Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Alekseev, Vadim
diffgeo-skript
Commits
c70f56db
Commit
c70f56db
authored
Jun 25, 2019
by
Harry Fuchs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
4 changed files
with
139 additions
and
160 deletions
+139
-160
diffgeoII/compile.sh
diffgeoII/compile.sh
+1
-0
diffgeoII/edit-this-file.tex
diffgeoII/edit-this-file.tex
+117
-160
diffgeoII/latex.template
diffgeoII/latex.template
+1
-0
diffgeoII/postprocessor.py
diffgeoII/postprocessor.py
+20
-0
No files found.
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
Markdown
is supported
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