From chrpoulain at gmail.com Thu Mar 28 23:51:54 2024 From: chrpoulain at gmail.com (Christophe Poulain) Date: Thu, 28 Mar 2024 23:51:54 +0100 Subject: [metapost] LuaLaTeX + luamplib + string Message-ID: 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: BugLuamplib.tex Type: text/x-tex Size: 475 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: BugLuamplib.pdf Type: application/pdf Size: 3316 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: BugLuamplib.log Type: text/x-log Size: 6645 bytes Desc: not available URL: From nomosnomos at gmail.com Fri Mar 29 01:29:19 2024 From: nomosnomos at gmail.com (Dohyun Kim) Date: Fri, 29 Mar 2024 09:29:19 +0900 Subject: [metapost] LuaLaTeX + luamplib + string In-Reply-To: References: Message-ID: Thank you for the report. It is a new bug introduced in luamplib v2.27. I will fix it as soon as possible. 2024? 3? 29? (?) ?? 7:52, Christophe Poulain ?? ??: > > 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. > -- > http://tug.org/metapost/ -- Dohyun Kim Seoul, Republic of Korea