From 1edb00148af341fd3564e5017a7d6044f780df70 Mon Sep 17 00:00:00 2001 From: Christophe Demko Date: Sat, 5 Oct 2024 13:42:40 +0200 Subject: [PATCH] Fix order --- pandoc_latex_admonition/_main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandoc_latex_admonition/_main.py b/pandoc_latex_admonition/_main.py index 148b610..bd333e8 100644 --- a/pandoc_latex_admonition/_main.py +++ b/pandoc_latex_admonition/_main.py @@ -645,9 +645,9 @@ def new_environment(doc: Doc, environment: dict[str, Any]) -> str: return f""" \\newenvironment{{{environment['env']}}} {{ + \\savenotes\\tcolorbox[{','.join(options)}] \\setcounter{{mpfootnote}}{{\\value{{footnote}}}} \\renewcommand\\thempfootnote{{\\arabic{{mpfootnote}}}} - \\savenotes\\tcolorbox[{','.join(options)}] }} {{ \\endtcolorbox\\spewnotes