On 11/17/2025 8:38 PM, Henning Hraban Ramm wrote:
Am 17.11.25 um 20:17 schrieb Henning Hraban Ramm:
Hi again,
I thought I’d include a “GiroCode” (https://en.wikipedia.org/wiki/ EPC_QR_code) in our publishing house’s invoices.

While \qrcode[text=something] works, I’d like to use a Lua call, but I didn’t understand the code (meta-imp-qrcodes.mkxl) far enough.

I don’t need colors, but the code must include CR characters (\n), since EPC is defined as a multi-line dataset; the TeX macro converts them to spaces (\par is deleted).

Arrgh, me stupid:

One learns best from self-discovering (assuming you could resist asking some chatty ai).
context.qrcode{text=[[BCD
002
1
SCT
…
]]}

works.

Sorry for the noise.\startTEXpage

Real low level:

\startTEXpage
    \startluacode
        context(figures.qrcode(
            "this also works",
         -- "darkgray",
            tex.sp("4cm")
        ))
    \stopluacode
\stopTEXpage

a metapost variant is described in the upcoming MAPS.

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to