[NTG-context] beta
Wolfgang Schuster
schuster.wolfgang at googlemail.com
Mon Jan 2 23:54:15 CET 2012
Am 02.01.2012 um 23:25 schrieb Thomas A. Schmitz:
> On 01/02/2012 09:44 PM, Hans Hagen wrote:
>>> Other than that, the
>>> parameters mechanism appears to have changed, so it baulks at our
>>> simpleslides module which uses this all over the place. I'll have to
>>> make a minimal example later. I keep 2011.11.29 around, for when I need
>>> urgent results...
>>
>> well, not really changed, but extended ... depends on how you use it ...
>> I'm busy changing all namespaces and renaming low level code .. but
>> regular parameter code should work (unless you use real low level never
>> meant to be used code) ... what is the message?
>
> Here it is:
>
> ! Undefined control sequence.
>
> system > tex > error on line 214 in file archaik.run: Undefined control sequence ...
>
>
> <argument> \??vars
> :simpleslides:title:
> \dousestylehashparameter #1#2->\ifcsname #1
> #2\endcsname \expandafter \douses...
> \dostartattributes ...estylehashparameter {#1}{#2}
> \dousecolorhashparameter {...
> \placeTitle ...pleslides:title:}\c!style \c!color
> \simpleslidestitlecomponen...
> \006>:xml:presentation ...{#1}{date}}]\placeTitle
> \xmltext {#1}{content} \pa...
> l.214 }
>
> But don't spend time on it, unless it immediately rings a bell, I'll try and come up with a simple example tomorrow.
Hans changed many of the namespaces from short to longer forms and what you did in your simple slides module isn’t good style anymore
simpleslides-s-default.tex:
\def\simpleslidestitlecomponent#1%
{\simpleslidestitleparameter{\c!before#1}
\startalignment[\simpleslidestitleparameter{#1\c!align}]
\doattributes{\??vars:simpleslides:title:}{#1\c!style}{#1\c!color}
{\getvariable{simpleslides:title}{#1}}
\stopalignment
\simpleslidestitleparameter{\c!after#1}}
The best is to replace your \setvariables based setup commands with a \getparameters based variant, for mkiv there are many helper functions in mult-aux.mkiv.
Wolfgang
More information about the ntg-context
mailing list