[NTG-context] Inserting non-standard TeX macro parameters to Lua variables

Jaroslav Hajtmar hajtmar at gyza.cz
Fri Aug 20 00:49:56 CEST 2010

Hello all,

I'm looking for a way to insert any character (CSV separator) into a 
variable. Manually insert a double (or single) quote is not a problem, 
but how to use the universal way to not have to change the macro 
Is there another possibility to insert a macro parameter into a Lua 
variable than the use double or single quote?

Any "universal" alternative is unfortunately impossible:
For example: \def\setseparatorC#1{\directlua{Sep=#1 }}  ???

Thanx Jaroslav

Here is my minimal example:


\setseparatorA{'} % OK


\setseparatorB{"} % OK


\setseparatorA{"} % Error
\setseparatorB{'} % Error


More information about the ntg-context mailing list