diff options
| author | Jean-Pierre Appel <jeanpierre.appel01@gmail.com> | 2024-01-16 16:20:26 -0500 |
|---|---|---|
| committer | Jean-Pierre Appel <jeanpierre.appel01@gmail.com> | 2024-01-16 23:28:33 -0500 |
| commit | dadd50e66bb8ab759bce2efd2d3fba4cbb5dd255 (patch) | |
| tree | 97fb5ebfb21d3c4c53ca15be465c3374e30beb56 /pandoc/templates | |
| parent | c70d0a56de40500ca8b903ec4e5fd0a02604c59c (diff) | |
fix, feat: creates complex macros correctly, added conjugate & modulus
Diffstat (limited to 'pandoc/templates')
| -rw-r--r-- | pandoc/templates/math_homework.latex | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pandoc/templates/math_homework.latex b/pandoc/templates/math_homework.latex index 4571e83..287744c 100644 --- a/pandoc/templates/math_homework.latex +++ b/pandoc/templates/math_homework.latex @@ -359,6 +359,7 @@ $if(math)$ \newtheorem{case}{Case} \newtheorem*{case*}{Case} \newtheorem{lemma}{Lemma} +\newcommand{\foo}{\textbf{foo}} $endif$ $if(math.geometry)$ \newcommand{\Line}{\overleftrightarrow} @@ -380,11 +381,13 @@ $if(math)$ } $endif$ $endif$ - $endfor$ $if(math.complex)$ -\renewcommand{\Re}{\textrm{Re}} -\renewcommand{\Im}{\textrm{Im}} +\renewcommand{\Re}{\operatorname{Re}} +\renewcommand{\Im}{\operatorname{Im}} +\newcommand{\conjugate}[1]{\overline{#1}} +\newcommand{\modulus}[1]{\left|#1\right|} $endif$ + $endfor$ $endif$ \begin{document} |
