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:

View file

@ -1,4 +1,4 @@
\documentclass[a4paper,9pt]{scrartcl}
\documentclass[a7paper,9pt,landscape]{scrartcl}
\usepackage{etoolbox}
\usepackage{amsmath,amssymb}% math symbols / fonts
\usepackage{mathtools} % \xRightarrow
@ -35,6 +35,7 @@
\usepackage{tqft}
\usepackage{xspace} % for new commands; decides weather I want to insert a space after the command
\usepackage[german,nameinlink]{cleveref} % has to be after hyperref, ntheorem, amsthm
\usepackage[left=10mm,right=10mm, top=2mm, bottom=10mm]{geometry}
\usepackage{shortcuts}
\clubpenalty = 10000 % Schusterjungen verhindern