On 4/16/2026 10:36 PM, Jim Diamond via ntg-context wrote:
On Thu, Apr 16, 2026 at 16:04 (-0400), Aditya Mahajan wrote:
On Thu, 16 Apr 2026, Jim Diamond wrote:
Without having done my Lua programming yet, am I correct in assuming that
if someone calls this \makePreamble as follows
\makePreamble{0.5"}
then Bad Things will happen because of the " in the argument?
The normal way to fix this is to use [[#1]] as quotes. [=[..]=] also works
(this allows [[ ... ]] to be part of string), as does [==[..]==] and so on.
Context defines \!bs .. \!es (begin string and end string) which I think maps
to [===[ ... ]===]
Aditya,
thanks very much. I guess I need to either
- get up to speed on the Lua-ConTeXt interface, or
- stop asking questions that provoke such answers. :-)
- hang my plain-hat on the wall
- stay curious
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
___________________________________________________________________________________