6 Jun
2012
6 Jun
'12
3:29 p.m.
Am 06.06.2012 um 17:13 schrieb Pavel Dohnal:
Hello, is it possible to find if you’re on an odd or an even page in context? I want to do something like this:
\def\makemytext#1{ %if page is even \rightaligned{#1} %else \leftaligned{#1} }
\defineframed[noframed][frame=off,width=broad,align=outer] \setuppagenumbering[alternative=doublesided] \starttext \noframed{Left or right?} \page \noframed{Left or right?} \stoptext or \define[1]\AlignOuter {\doifoddpageelse\rightaligned\leftaligned{#1}} \starttext \AlignOuter{Left or right?} \page \AlignOuter{Left or right?} \stoptext Wolfgang