paragraph standing out of the normal layout comsuming the margin
Dear all, the mwe shows my try to define a paragraph that stand out like this: On right pages xxxxxxx xxxxxxx xxxxxx xxxxxx xxxxxxx xxxxxxx On left pages xxxxxxx xxxxxxx xxxxxx xxxxxx xxxxxxx xxxxxxx My try with setups does not work. The textcolor is restored but not the layout. Can I reset to the standard layout with an \after command? Any hints? juh
Jan U. Hasecke schrieb am 25.06.2021 um 13:19:
Dear all,
the mwe shows my try to define a paragraph that stand out like this:
On right pages
xxxxxxx xxxxxxx xxxxxx xxxxxx xxxxxxx xxxxxxx
On left pages
xxxxxxx xxxxxxx xxxxxx xxxxxx xxxxxxx xxxxxxx
My try with setups does not work. The textcolor is restored but not the layout. Can I reset to the standard layout with an \after command?
You can't change to a different layout in the middle of a page. What you're looking for is the narrower environment where you can change the margins in the left and right side. \startsetups [userdata:shiftblock] \signalrightpage \doifelserightpage { \startnarrower[2*left,-2*right] \getuserdata \stopnarrower } { \startnarrower[-2*left,2*right] \getuserdata \stopnarrower } \stopsetups \defineuserdataalternative [shiftblock] [renderingsetup=userdata:shiftblock] \defineuserdata [shiftblock] [before=\blank, after=\blank, alternative=shiftblock] \setuppagenumbering [alternative=doublesided] \starttext \startbuffer \dorecurse{2}{\input knuth\par} \startuserdata[shiftblock] \input ward \stopuserdata \dorecurse{2}{\input zapf\par} \stopbuffer \dorecurse{10}{\getbuffer} \stoptext Wolfgang
Hi Wolfgang, I am late as I was busy elsewhere, but thanks a lot for your help. Am 25.06.21 um 13:44 schrieb Wolfgang Schuster:
\startsetups [userdata:shiftblock] \signalrightpage \doifelserightpage { \startnarrower[2*left,-2*right] \getuserdata \stopnarrower } { \startnarrower[-2*left,2*right] \getuserdata \stopnarrower } \stopsetups
\defineuserdataalternative [shiftblock] [renderingsetup=userdata:shiftblock]
\defineuserdata [shiftblock] [before=\blank, after=\blank, alternative=shiftblock]
\setuppagenumbering [alternative=doublesided]
\starttext
\startbuffer \dorecurse{2}{\input knuth\par} \startuserdata[shiftblock] \input ward \stopuserdata \dorecurse{2}{\input zapf\par} \stopbuffer
\dorecurse{10}{\getbuffer}
\stoptext
I'll try to adapt this into my project. Thanks a lot. juh
participants (2)
-
Jan U. Hasecke
-
Wolfgang Schuster