Re: [NTG-context] labeltext via lua

2017-02-17 Thread Andreas Schneider
Am 2017-02-16 17:13, schrieb Hans Hagen: On 2/16/2017 3:06 PM, Andreas Schneider wrote: `context.labeltext` would immediately print the label, so I cannot use the value within lua. My workaround would be a crossover between lua and tex, but that results in the bookmark having the wrong label:

Re: [NTG-context] labeltext via lua

2017-02-16 Thread Hans Hagen
On 2/16/2017 3:06 PM, Andreas Schneider wrote: Am 2017-02-16 14:43, schrieb Hans Hagen: because additional ones live at the tex end why not use context.labeltext etc? Hans `context.labeltext` would immediately print the label, so I cannot use the value within lua. My workaround would be a

Re: [NTG-context] labeltext via lua

2017-02-16 Thread Andreas Schneider
Am 2017-02-16 14:43, schrieb Hans Hagen: because additional ones live at the tex end why not use context.labeltext etc? Hans `context.labeltext` would immediately print the label, so I cannot use the value within lua. My workaround would be a crossover between lua and tex, but that

Re: [NTG-context] labeltext via lua

2017-02-16 Thread Hans Hagen
On 2/16/2017 2:12 PM, Andreas Schneider wrote: Am 2017-02-16 11:50, schrieb Hans Hagen: languages.data.labels.texts.appendix.labels.en look into lang-txt.lua Hello Hans, I already looked into this and even printed the whole languages.data table at runtime, but didn't find my keys in there.

Re: [NTG-context] labeltext via lua

2017-02-16 Thread Andreas Schneider
Am 2017-02-16 11:50, schrieb Hans Hagen: languages.data.labels.texts.appendix.labels.en look into lang-txt.lua Hello Hans, I already looked into this and even printed the whole languages.data table at runtime, but didn't find my keys in there. Here is an example which apparently doesn't

Re: [NTG-context] labeltext via lua

2017-02-16 Thread Hans Hagen
On 2/16/2017 11:36 AM, Andreas Schneider wrote: Hello, if I define a labeltext via \setuplabeltext[en][test=Something], how can I access that value via lua? (context.labeltext obviously prints the content, but doesn't allow me to use it in lua). languages.data.labels.texts.appendix.labels.en

[NTG-context] labeltext via lua

2017-02-16 Thread Andreas Schneider
Hello, if I define a labeltext via \setuplabeltext[en][test=Something], how can I access that value via lua? (context.labeltext obviously prints the content, but doesn't allow me to use it in lua). As a related side-request: how can I fix expansion in cases like this: