Open ricopicone opened 6 years ago
Thanks, will look into it. It seems to affect expressions starting with g
. Need to investigate further.
Interesting. I hadn't tried others starting with g
. I'll let you know if I discover anything of relevance.
I'm not so familiar with regex's but perhaps the \g
in
replacement = replacement.replace('#%d' % i, r'\g<%d>' % i)
(from line 48 of lib/doconce/expand_newcommands.py
) could be related.
For a quick fix consider the embedding of newcommands in ipynb that I have pushed ipynb changes
Using the
newcommands_keep.tex
feature to define the commandgives a strange error when using the following.
It returns the following.
It only seems to have this problem when using
\gamma
in a\newcommand
. I've tried placing it in extra braces{}
, but it doesn't help. Again, all other Greek symbols seem to be fine.I think it's a bug.