[NTG-context] confusion about expansion

2014-03-12 Thread Lars Huttar
Hello, I've got a running page head like this in my document: \def\CurrentUser{\cldcontext{os.resultofwhoami}} \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

Re: [NTG-context] confusion about expansion

2014-03-12 Thread Wolfgang Schuster
Am 12.03.2014 um 15:00 schrieb Lars Huttar lars_hut...@sil.org: Hello, I've got a running page head like this in my document: \def\CurrentUser{\cldcontext{os.resultofwhoami}} \def\Markname { Compiled \date by \CurrentUser \LUATEX +\ConTeXt\ \contextversion } and later:

Re: [NTG-context] confusion about expansion

2014-03-12 Thread Lars Huttar
On 3/12/2014 10:05 AM, Wolfgang Schuster wrote: Am 12.03.2014 um 15:00 schrieb Lars Huttar lars_hut...@sil.org: Hello, I've got a running page head like this in my document: \def\CurrentUser{\cldcontext{os.resultofwhoami}} \def\Markname { Compiled \date by \CurrentUser \LUATEX +\ConTeXt\

Re: [NTG-context] confusion about expansion

2014-03-12 Thread Wolfgang Schuster
Am 12.03.2014 um 15:12 schrieb Lars Huttar lars_hut...@sil.org: On 3/12/2014 10:05 AM, Wolfgang Schuster wrote: Am 12.03.2014 um 15:00 schrieb Lars Huttar lars_hut...@sil.org: Hello, I've got a running page head like this in my document: \def\CurrentUser{\cldcontext{os.resultofwhoami}}

Re: [NTG-context] confusion about expansion

2014-03-12 Thread Lars Huttar
On 3/12/2014 10:21 AM, Wolfgang Schuster wrote: Am 12.03.2014 um 15:12 schrieb Lars Huttar lars_hut...@sil.org mailto:lars_hut...@sil.org: On 3/12/2014 10:05 AM, Wolfgang Schuster wrote: Am 12.03.2014 um 15:00 schrieb Lars Huttar lars_hut...@sil.org mailto:lars_hut...@sil.org: Hello,

Re: [NTG-context] confusion about expansion

2014-03-12 Thread Wolfgang Schuster
Am 12.03.2014 um 15:51 schrieb Lars Huttar lars_hut...@sil.org: This gets rid of the error, but it seems to prevent any expansion of the content of \CurrentUser, because the page head now literally looks like this: You can try to print the string in verbatim mode:

Re: [NTG-context] confusion about expansion

2014-03-12 Thread Lars Huttar
On 3/12/2014 11:06 AM, Wolfgang Schuster wrote: Am 12.03.2014 um 15:51 schrieb Lars Huttar lars_hut...@sil.org mailto:lars_hut...@sil.org: This gets rid of the error, but it seems to prevent any expansion of the content of \CurrentUser, because the page head now literally looks like this: