[lltx] mplibcode inside a command?
adityam at umich.edu
Tue Jul 5 15:53:51 CEST 2011
On Tue, 5 Jul 2011, Manuel Pégourié-Gonnard wrote:
> Le 04/07/2011 21:02, Arno Trautmann a écrit :
>> I was wondering what would be the best way to pack metapost-code so I
>> can use a LaTeX-command to typeset it. But I fail due to fancy verb (I
>> guess …), assume the following code:
>> draw (0,0) -- (7,2);
> I'm afraid there is no easy way to achieve that right now. I've noted it and
> future versions of luamplib will probably provide a wider range of commands and
> environments with different catcode regimes, probably like luacode now, to make
> this easier.
FWIW, the corresponding ConTeXt code works fine:
draw (0,0) -- (7,2);
I don't know what is the difference between the implementation of
mllibcode and MPcode environments.
More information about the lualatex-dev