Closed franckpastor closed 8 years ago
Thanks a lot. Fixed in v2.10.1
You are welcome! May I ask you what was the cause of this bug?
There was no problem before the introduction of \mpdim
and allowing other TeX macros. But now as TeX macros (not all but only simple macros) are allowed in mplib code, we should take care macro expansion by TeX, which complains about single hash tokens (#
). Latest patch simply doubles hash tokens before the TeX's macro expansion stage, and restores them to sinlge hash tokens after that process.
Hello,
I was surprised today to notice that the following program did not work:
While I expected the same result as with standalone MetaPost, i.e. a rotated label:
I got this error message instead:
If I ask more precisions by entering
h
in the console, I read:And indeed, if I replace
#
by##
in thevardef
definition, i.e. like that,it suddenly works like a charm. OK, problem solved it seems, but I would like to understand the reasons of this peculiar behavior. Why must we enter
##
instead of#
withluamplib
, whereas only one#
is enough with standalone MetaPost? Any idea?Thanks in advance,
Franck Pastor