Change the line to replace for correction (for xsim)

This commit is contained in:
Bertrand Benjamin 2017-12-06 11:27:02 +03:00
parent 30a6f1ab04
commit bcebd74691
1 changed files with 3 additions and 3 deletions

View File

@ -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