Closed franckpastor closed 10 years ago
There is an undocumented feature in luamplib. After declaring
\directlua{ luamplib.showlog=true }
terminal messages of mplib library will be printed to the console and to the log file.
There is no TeX macro supporting this feature; we should write a lua code, though small one, with \directlua
command. Moreover, assigning true
to showlog
will prevent figure outputs. I don't know why, but this part of luamplib code is very old one, maybe from the very start of the package.
It would be better if we can see terminal messages automatically without \directlua
hassle when show
command is used inside mplibcode environments. So I have uploaded a new version just now. Nothing is required from the users' part. Incidentally, show
command without beginfig/endfig
will not raise an error, but print terminal message and a small warning saying no figure output.
After a few tries, it seems to work flawlessly. Thanks… once more!
Hello,
I've recently noticed the following behavior with luamplib: when using the MetaPost
show
command, its argument isn't shown, either in the console or the log file. For example, this command alonewould return this in the console, as expected:
Whereas the following LuaLaTeX program returns nothing:
Note that you have to include the
show
command into abeginfig;
…endfig;
environment, which is not necessary with standalone MetaPost.Is it a bug or is
luamplib
intended to behave like this?