[NTG-context] defs, variables and dimensions (was: passing variables/data between context and lua)

Henning Hraban Ramm texml at fiee.net
Sat Sep 28 08:53:09 CEST 2019


> Am 2019-09-27 um 14:58 schrieb Wolfgang Schuster <wolfgang.schuster.lists at gmail.com>:
> 
>> \define\question{44}
> \defineexpandable\question{44}

Would it make sense to use a counter or some other TeX construct?

Is it better to use \setvariable(s) for simple values than any \def?

Should I use a \newdimen for every custom measure that I want to use with \dimexpr, e.g.

\def\MyWidth{10mm}
or better
\newdimen\MyWidth
\MyWidth=10mm
?



Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD



More information about the ntg-context mailing list