From 3caf6b034b9af317913a08cea4f6f211c54fe207 Mon Sep 17 00:00:00 2001 From: Rahul Arya Date: Mon, 10 May 2021 22:22:17 -0700 Subject: [PATCH] Patch examtool list generation --- examtool/examtool/api/gen_latex.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examtool/examtool/api/gen_latex.py b/examtool/examtool/api/gen_latex.py index 6e949675..c62f2b9e 100644 --- a/examtool/examtool/api/gen_latex.py +++ b/examtool/examtool/api/gen_latex.py @@ -123,6 +123,10 @@ def render_latex(exam, subs=None, *, do_twice=False): r"\\immediate\\write18{wget -N \2}\n\\includegraphics\1{\3}", latex, ) + latex = latex.replace( + r"\def\labelenumi{\arabic{enumi}.}", + r"\def\labelenumii{\arabic{enumii}.}", + ) if subs: for k, v in subs.items(): latex = latex.replace(f"<{k.upper()}>", v)