Commit c70f56db authored by Harry Fuchs's avatar Harry Fuchs

hack tex output for denser paragraphs

parent df1803b3
Pipeline #2514 passed with stage
in 9 minutes and 5 seconds
cp edit-this-file.tex tmp.tex cp edit-this-file.tex tmp.tex
python3 preprocessor.py python3 preprocessor.py
pandoc -f org -t latex tmp.tex -s -o for-compile.tex --metadata-file meta.yaml --template="latex.template" pandoc -f org -t latex tmp.tex -s -o for-compile.tex --metadata-file meta.yaml --template="latex.template"
python3 postprocessor.py
# clear && clear # clear && clear
echo "start pdflatex" echo "start pdflatex"
......
This diff is collapsed.
...@@ -380,6 +380,7 @@ $endif$ ...@@ -380,6 +380,7 @@ $endif$
$endif$ $endif$
%custom %custom
\usepackage{stmaryrd}
\usepackage{datetime} \usepackage{datetime}
\usepackage{cancel} \usepackage{cancel}
\usepackage{bbm} \usepackage{bbm}
......
#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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment