[luatex] access defined Lua global variables in TeX macros

Tim Li timli2013 at outlook.com
Mon Apr 22 17:20:56 CEST 2013

Hi, I am a newbie in LuaTeX but it's very interesting.  We can define a macro like this: \def\foo#1{%  \directlua{var = [[#1]]; tex.print(var)}  % can I access "var" below?  ...} can I access this global variable "var" in the other part of \foo?  Best regards,Tim 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/luatex/attachments/20130422/a6201455/attachment.html>

More information about the luatex mailing list