Am 04.09.2012 um 20:11 schrieb Marco Patzer <home...@lavabit.com>:

> On 2012-09-04 Wolfgang Schuster <wolfgang.schus...@gmail.com> wrote:
> 
>> Is there a good reason why you put \newdimen because dimen/count
>> etc. registers should always be defined once.
> 
> The definitions are not in a macro, they are defined at the top of
> the file. I messed around while creating a minimal example. However,
> the problem remains the same since the assignment does not happen
> within Lua.
> 
> But, thanks for the hint. I am always happy for improvements and
> feedback about my code.

What prevents you from setting the dimen value in Lua?

\starttext

\scratchdimen = 20pt

\the\scratchdimen

\ctxlua{tex.dimen.scratchdimen = "10pt"}

\the\scratchdimen

\stoptext

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to