[NTG-context] Clearest way to call a {\command } in Lua?

Lukáš Procházka LPr at pontex.cz
Sat Jul 23 15:25:37 CEST 2016


Hello,

what is the clearest way to call a {\command ...} (i.e. a command which is to be wrapped in curly braces, like \em, \bf etc.) in Lua?

Let's have:

----
bla {\em haha} bla
----

Should be the Lua transcription be:

----
bla
\ctxlua{context(false, context.delayed.em("haha"))} % <--- The clearest ("nicest") way?
bla
----

Best regards,

Lukas


-- 
Ing. Lukáš Procházka | mailto:LPr at pontex.cz
Pontex s. r. o.      | mailto:pontex at pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038



More information about the ntg-context mailing list