ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Clearest way to call a {\command } in Lua?
@ 2016-07-23 13:25 Lukáš Procházka
  2016-07-23 16:24 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Lukáš Procházka @ 2016-07-23 13:25 UTC (permalink / raw)
  To: ConTeXt

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@pontex.cz
Pontex s. r. o.      | mailto:pontex@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-07-23 16:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-23 13:25 Clearest way to call a {\command } in Lua? Lukáš Procházka
2016-07-23 16:24 ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).