[metapost] LuaLaTeX + luamplib + string

Christophe Poulain chrpoulain at gmail.com
Thu Mar 28 23:51:54 CET 2024


Hi,

with this code, it seems a problem appear (see the pdf) (I work with TL2024
update). I join log and pdf.
I tired with luamplib 2.25.3 and 2.22, the problem is the same.

\documentclass{article}
\usepackage{luamplib}

\NewDocumentCommand\TestOne{m}{%
  \begin{mplibcode}
    beginfig(0);
    vardef tata(text t)=
    n:=0;
    for pr=t:
    n:=n+1;
    label.top(TEX(pr),5mm*(n,0));
    endfor;
    enddef;
    %
    tata(#1);
    endfig;
  \end{mplibcode}
}%

\begin{document}
\TestOne{"A","B"}

\TestOne{"E","C"}

\TestOne{"C","E"}

\TestOne{"A","D"}

\TestOne{"E","C"}
\end{document}

greetings.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/metapost/attachments/20240328/22480a83/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BugLuamplib.tex
Type: text/x-tex
Size: 475 bytes
Desc: not available
URL: <https://tug.org/pipermail/metapost/attachments/20240328/22480a83/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BugLuamplib.pdf
Type: application/pdf
Size: 3316 bytes
Desc: not available
URL: <https://tug.org/pipermail/metapost/attachments/20240328/22480a83/attachment.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BugLuamplib.log
Type: text/x-log
Size: 6645 bytes
Desc: not available
URL: <https://tug.org/pipermail/metapost/attachments/20240328/22480a83/attachment-0001.bin>


More information about the metapost mailing list.