Am 22.05.2012 um 18:11 schrieb Andy Thomas:
Hello,
I am trying to change the width of a paragraph on a page. I found \defineparagraphs and \setupparagraphs and it almost works. But for doublesided documents the text on verso pages is incorrectly aligned. I tried [location=inner], but the macros do not seem to be aware of that. I also found \startlocal (\startlokaal) in the ConTeXt getting started pdf, but Mk IV does not know \startlocal (any more?).
My example:
% setup the page format \definepapersize[wissenschaft][width=170mm,height=240mm] % use the new page format \setuppapersize[wissenschaft] % shape the page \setuplayout[topspace=40pt, header=0pt, headerdistance=0pt, backspace=42pt, leftmargin=0pt, width=280pt, height=560pt, rightmargindistance=20pt, rightmargin=100pt, footer=0pt] %\showframe \setuppagenumbering[alternative=doublesided]
\defineparagraphs [fullwidth][n=1,before={\blank},after={\blank}] \setupparagraphs [fullwidth][1][width=400pt]
\starttext \input tufte \startfullwidth \input tufte \stopfullwidth \input knuth \startfullwidth \input tufte \stopfullwidth \input tufte \stoptext
My questions are: Is there no more \startlocal, how to locally adjust the layout on a page and how to make the example work?
\usemodule[annotation] \define[2]\FullwidthCommand {\doifoddpageelse {\doadaptrightskip{-\the\dimexpr\rightmarginwidth+\rightmargindistance\relax}} {\doadaptleftskip {-\the\dimexpr\leftmarginwidth +\leftmargindistance \relax}}% #2} \defineannotation[fullwidth][alternative=command,command=\FullwidthCommand] \setuppagenumbering[alternative=doublesided] \starttext \showframe \input tufte \startfullwidth \input tufte \stopfullwidth \input knuth \startfullwidth \input tufte \stopfullwidth \input tufte \startfullwidth \input tufte \stopfullwidth \input tufte \stoptext Wolfgang