[NTG-context] Troubles with the \cldcontext command

Willi Egger context at boede.nl
Tue Apr 2 22:45:32 CEST 2019


Dear Wolfgang!


thank you so much for your reply. I tried the test file and it works. tomorrow I will look further in a bigger environment.

Thanks and good night!

Willi

> On 2 Apr 2019, at 21:17, Willi Egger <context at boede.nl> wrote:
> 
> Hello!
> 
> I have the following code, which should manipulate the page number. However I get an error:
> 
> 
> MWE:
> 
> \setuppapersize [A6] [A6]
> 
> \setuppagenumbering[location=none]
> 
> \startsetups [Pagenumber]
>  \doifrightpageelse
>    {\cldcontext{"\letterpercent d",(\pagenumber+1)/2}}
>    {}
> \stopsetups
> 
> \setupfootertexts [\directsetup{Pagenumber}]
> 
> \setupbodyfont [pagella,9pt]
> 
> 
> \starttext
> 
> \startstandardmakeup
>  Hello world!
> \stopstandardmakeup
> 
> \dorecurse{3}{TEST\page}
> 
> \stoptext
> 
> 
> Error:
> 
> 
> \cldcontext #1->\directlua {context(#1)}
> 
> <argument> \ignorecrlf \directsetup {Pagenumber}
>                                     {}{}{}
> \secondoftwoarguments #1#2->#2
> 
> \page_layouts_process_element_single_indeed ...#4}
>                                                  \fi \endgroup 
> \page_layouts_process_element_single ...#1#2#3{#4}
>                                                  \fi 
> <argument> ...th {\hss \layoutelementparameter \c!middletext 
>                                                  \hss }\kern -\makeupwidth ...
> 
> 
> What do i miss here? I am stumid…
> 
> Willi
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context at ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________



More information about the ntg-context mailing list