[NTG-context] escaping quotes in \ctxlua
Wolfgang Schuster
schuster.wolfgang at gmail.com
Wed Sep 30 17:20:54 CEST 2015
> Pablo Rodriguez <mailto:oinos at gmx.es>
> 30. September 2015 um 17:07
> Dear list,
>
> I have the following sample:
>
> \starttext
> \startluacode
> tex.print(os.getenv("USER")
> \stopluacode
>
> \ctxlua{tex.print(os.getenv("USER")}
> \stoptext
>
> How can I escape the quotes in the \ctxlua command?
You have to add a closing ) for tex.print in both Lua calls but you can
replace the second version with \cldcontext{os.getenv("USER")}.
Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150930/c47c36f1/attachment.html>
More information about the ntg-context
mailing list