From bcebd746915f302a1d49b5d67612b9f3d9d650b7 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Wed, 6 Dec 2017 11:27:02 +0300 Subject: [PATCH] Change the line to replace for correction (for xsim) --- bopytex/bopytex.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bopytex/bopytex.py b/bopytex/bopytex.py index 8ecd864..4da06f4 100755 --- a/bopytex/bopytex.py +++ b/bopytex/bopytex.py @@ -39,7 +39,7 @@ def setup(): } pytex.update_export_dict(mapytex_tools) - pytex.add_filter("do_calculus", filters.do_calculus) + pytex.add_filter("calculus", filters.do_calculus) def get_working_dir(options): @@ -65,8 +65,8 @@ def activate_printanswers(texfile): with open(output_fname, "w") as output_f: for line in input_f.readlines(): output_f.write(line.replace( - r'%\printanswers', - r'\printanswers' + r'solution/print = false', + r'solution/print = true', )) return output_fname