2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-25 22:38:04 +02:00

A7-Format für Definitionen

This commit is contained in:
Martin Thoma 2014-01-23 08:15:10 +01:00
parent 9b9e6e6e00
commit 3453362e59
3 changed files with 3 additions and 2 deletions

View file

@ -10,7 +10,7 @@ def get_definitions(filename):
pattern = re.compile(r"\\begin{definition}.*?\\end{definition}", re.DOTALL)
m = re.findall(pattern, content)
return "\n\n".join(m)
return "\\vspace*{\\fill}"+("\n\\vspace*{\\fill}\\clearpage\\vspace*{\\fill}\n".join(m))
def write_definitions_to_template(definitions, template="mathe-vorlage.tex", target="definitionen.tex"):
with open(template) as f: