Change the line to replace for correction (for xsim)
This commit is contained in:
parent
30a6f1ab04
commit
bcebd74691
@ -39,7 +39,7 @@ def setup():
|
|||||||
}
|
}
|
||||||
pytex.update_export_dict(mapytex_tools)
|
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):
|
def get_working_dir(options):
|
||||||
@ -65,8 +65,8 @@ def activate_printanswers(texfile):
|
|||||||
with open(output_fname, "w") as output_f:
|
with open(output_fname, "w") as output_f:
|
||||||
for line in input_f.readlines():
|
for line in input_f.readlines():
|
||||||
output_f.write(line.replace(
|
output_f.write(line.replace(
|
||||||
r'%\printanswers',
|
r'solution/print = false',
|
||||||
r'\printanswers'
|
r'solution/print = true',
|
||||||
))
|
))
|
||||||
return output_fname
|
return output_fname
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user