Re: [NTG-context] [Layout] Problem with ConTeXt mkII
Hello Luigi, Thanks for the footer ;-) But, currently, I've some difficulties to commit to the "Don't panic !" I've tried the following : %%%%%%%%%%%%%%%%%%%%%% \setuptolerance[verytolerant,stretch] \setuppapersize[A4][A4] \setuplayout[ backspace=3cm, topspace=1.5cm, rightmargin=0cm,leftmargin=1.3cm, width=15cm, leftmargindistance=0.2cm, height=fit, header=0cm, footer=1cm, textheight=25.7cm ] And I obtain this (with \showlayout) : topspace 1.49979cm height 26.6962cm header 0.0cm headerdistance 0.0cm textheight 25.69635cm footer 0.99985cm footerdistance 0.0cm %%%%%%%%%%%%%%%%%%%%%% BUT, when I add the following : %%%%%%%%%%%%%%%%%%%%%% \definelayout[1][ topspace=5.2cm, height=fit, textheight=23.7cm ] \definelayout[2][reset] For the page (1): topspace 5.19925cm height 19.29726cm header 0.0cm headerdistance 0.0cm textheight 18.2974cm footer 0.99985cm footerdistance 0.0cm For the page (2) and the following : topspace 1.49979cm height 26.6962cm header 0.0cm headerdistance 0.0cm textheight 18.2974cm footer 0.99985cm footerdistance 0.0cm %%%%%%%%%%%%%%%%%%%%%% The textheight is blocked to an unexpected value : 18.3cm for the whole document. I've read and re-read the manual, but I've not found my error... Thank you for your help, Pierre-François. -- Bonnefoi Pierre-Francois | E-mail : bonnefoi@unilim.fr Universite de Limoges, Laboratoire XLIM | Tel : 06 28 18 03 38 83, rue d'Isle | Mrs. Peel, we're needed... 87000 Limoges - FRANCE | The Avengers.
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
participants (2)
-
Pierre-François Bonnefoi
-
Wolfgang Schuster