[metapost] Outputtemplate influences %& format comment parsing in verbatimtex

luigi scarso luigi.scarso at gmail.com
Sun Dec 24 16:19:24 CET 2023


On Sun, 24 Dec 2023 at 16:07, Ben Frank <ben.frank at mail.de> wrote:

> Dear mailing list,
>
> consider the following code:
>
> ```
> outputtemplate := "%j-%2c.mps";
>
> verbatimtex %&latex
>    \documentclass{article}
>    \begin{document}
> etex
>
> beginfig(1)
>    label.lft(btex \textbf{J} etex,origin);
> endfig;
>
> end;
> ```
>
> Why does it not compile when fed to mpost as is (because of the space
> before %&latex carrying into the output preventing its parsing as a
> format comment) but compile fine when the outputtemplate line is
> commented (i.e., the space seems to be gobbled as expected)?
>

as the result of the compilation you should have some *mpx* files in the
same folder -- what do they say ?

--
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/metapost/attachments/20231224/6918fea7/attachment.htm>


More information about the metapost mailing list.