Am 26.09.2011 um 20:18 schrieb Pierre-François Bonnefoi:

> Hello Luigi,
> 
> Thanks for the footer ;-)
> But, currently, I've some difficulties to commit to the "Don't panic !"


This is caused by a bug in the core (page-lay.mkiv), part of the code wasn’t
adapted to recent changes in the parameterhandler.

\unprotect

\def\checkcurrentoddlayout
  {\ifcsname\namedlayouthash\v!odd\c!state\endcsname
     \doif{\namedlayoutparameter\v!odd\c!state}\v!start{\changetolayout\v!odd}%
   \fi}

\def\checkcurrentevenlayout
  {\ifcsname\namedlayouthash\v!even\c!state\endcsname
     
\doif{\namedlayoutparameter\v!even\c!state}\v!start{\changetolayout\v!even}%
   \fi}

\def\checkcurrentlayout % public and used in naw, so keep this name
  {\ifcsname\namedlayouthash\realfolio\c!state\endcsname
     
\doif{\namedlayoutparameter\realfolio\c!state}\v!start{\changetolayout\realfolio}%
   \else\ifcsname\namedlayouthash\reverserealfolio\c!state\endcsname
     
\doif{\namedlayoutparameter\reverserealfolio\c!state}\v!start{\changetolayout\reverserealfolio}%
   \else\ifcsname\namedlayouthash\v!current\c!state\endcsname
     \changetolayout\v!current % no start test ?
   \else
     \doifoddpageelse\checkcurrentoddlayout\checkcurrentevenlayout
   \fi\fi\fi}

\protect

\definelayout[current][topspace=2cm,height=middle]
\definelayout[1]      [topspace=8cm,height=14cm]

\starttext
\dorecurse{10}{\input knuth\par}
\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