From dadd50e66bb8ab759bce2efd2d3fba4cbb5dd255 Mon Sep 17 00:00:00 2001 From: Jean-Pierre Appel Date: Tue, 16 Jan 2024 16:20:26 -0500 Subject: fix, feat: creates complex macros correctly, added conjugate & modulus --- pandoc/templates/math_homework.latex | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'pandoc') 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} -- cgit v1.2.3