On 2/10/2026 12:52 PM, Jean-Pierre Delange via ntg-context wrote:
Hi Michael,

On my CTX version (which is ConTeXt ver: 2025.07.27 21:43 LMTX), the code I sent you compiles correctly and produces the PDF attached to this message.

It's true that the problem you're encountering can be solved with Lua code, as Hans has done very well. But I tried without Lua code. And for my part, I'm testing various ways of calculating VAT rates (with or without Lua code).

I'll send you the code that gives you the attached PDF.

I'll add rnd, so that one can do:

@ "0.2f €" rnd(sum(D) * 0.21)

@ "0.2f €" rnd(sum(D))

I'll pretend not to have seen the redefinition of \title and space after flushleft,

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