aboutsummaryrefslogtreecommitdiff
path: root/render.py
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-05-31 11:30:40 +0200
committerJulian T <julian@jtle.dk>2021-05-31 11:30:40 +0200
commit211d0ff6835017ba4c237fa909837ca84e1e095b (patch)
tree34f954216854e835e32cd77978dc49990122631c /render.py
parent392e56bcebdbc391e1c63bdaebc2f9e89270f1f8 (diff)
Add many more solutions and notes
Diffstat (limited to 'render.py')
-rwxr-xr-xrender.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/render.py b/render.py
index 937ad42..c1ff9fb 100755
--- a/render.py
+++ b/render.py
@@ -12,13 +12,18 @@ tex_template = """\\documentclass[12pt]{article}
\\usepackage{amsfonts}
\\usepackage{mdframed}
\\usepackage{float}
+\\usepackage{amsthm}
+\\usepackage{booktabs}
\\usepackage{tikz}
\\usetikzlibrary{automata, positioning, arrows}
-\\newtheorem{definition}{Definition}
\\newtheorem{lemma}{Lemma}
-\\newtheorem{theorem}{Theorem}
+
+\\theoremstyle{definition}
+\\newtheorem{definition}{Definition}[section]
+\\newtheorem{theorem}{Theorem}[section]
+\\newtheorem{principle}{Principle}[section]
{% for thing in before %}
{{thing}}
@@ -27,6 +32,11 @@ tex_template = """\\documentclass[12pt]{article}
\\setlength{\parindent}{0cm}
\\setlength{\parskip}{0.3em}
+\\newenvironment{opg}
+{
+\itshape
+}{}
+
\\begin{document}
{% if title is not none %}
\maketitle