12 Mar
2014
12 Mar
'14
3:05 p.m.
Am 12.03.2014 um 15:00 schrieb Lars Huttar
Hello, I've got a running page head like this in my document:
\def\CurrentUser{\cldcontext{os.resultof"whoami"}}
\def\Markname { Compiled \date by \CurrentUser \LUATEX +\ConTeXt\ \contextversion }
and later:
\setlayer[cropmark][preset=lefttop,x=3cm,y=-1.5\lineheight]{\Markname}
But when I run this, I get a UCS error that seems to indicate that the *result* of \CurrentUser ("waxhaw\huttar") is getting parsed as a command sequence.
When you want to pass a backslash to Lua you have to use \letterbackslash. Wolfgang