Open luclaurent opened 4 years ago
I cannot to reproduce your problem on moodle 3.8 (sandbox) neither on our moodle 3.0 server with the default editor. By the way, the %
is not suitable here (and the % handling of moodle is strange). This percent is probably added to escape the \n
.
I found an hint here : there is a variable called $UNTEX_LINELENGTH
that limit the size of token. As far as I understand, it's hard coded. Perhaps, we could just replace %\n
by a space.
It can be done
convert.py
after xml = open(os.path.join(wdir, filein), 'r')
What do you think ? May this pattern have collision ?
I think the second proposition is better. I am not sure this pattern could have collision but I must try to manually add %
in the LaTeX file to check if for instance a comment at the end of a line is removed by latexml or not (if not it could engender some conflicts).
Answer from LaTexML's developer: no solution is available in LaTeXML. Best way seems to remove %\n
with regex. Collision could appear with intentional adding of %\n
(maybe not :-))
OK. I have the same problem this morning on my quiz ;-) Do you plan do to it ?
Yes but not this week.
Add new test process!!
Follow https://github.com/brucemiller/LaTeXML/pull/2024 and maybe adapt to future LateXML release.
Considering the following file:
After processing with
amc2moodle
, the following xml file is built:The XML file could be loaded in Moodle. The following question is obtained:
But if you update the question or parameters of the question in Moodle (for instance only by clicking on
Enregistrer les modifications et continuer
(Save and continue
), you obtain the following result:As you see some parts of the answers disappear. This trouble seems to be due to two elements:
%
in the long equations that is not necessary.