Am 04.08.2011 um 10:13 schrieb Henning Hraban Ramm:
I already asked this in april, but got no answer, and now I need it again:
I need my marginals as one line, rotated in the inner margin (that works) AND ( "hanging" from its place (at the moment it’s "standing") OR aligned to the top or bottom of the text area. ) AND several marginals must not overlap.
I guess I need some \framed[align=flushright], but I don't know how.
\setuplayout[location=doublesided] \setuppagenumbering[alternative=doublesided,location={footer,right},strut=yes, state=start] \setupmargindata[inmargin][style={\ss\tfx},location=inner,align=outer] \setupmarginframed[inmargin][align=outer,location=inner] \def\Info#1{\margindata[inmargin]{\rotate{\hbox[location=normal]{#1}}}}
\starttext
\section{Tufte} \Info{This is a text by Tufte 1} \input tufte \Info{This is a text by Tufte 2}
\page \section{Knuth} \Info{This is a text by Knuth 1} \input knuth \Info{This is a text by Knuth 2} \input knuth
\stoptext
"This is a..." *starts* at the base line of the first word of the included text. I want it to *end* at the top of that line.
\setuplayout[location=doublesided] \setuppagenumbering[alternative=doublesided] \define[1]\InfoCommand {\toplinebox{\rotate{#1}}} % \bottombox{\rotate{#1}} \definemargindata[Info][inmargin][style={\ss\tfx},location=inner,align=outer,command=\InfoCommand] \starttext \section{Tufte} \Info{This is a text by Tufte 1} \input tufte \Info{This is a text by Tufte 2} \page \section{Knuth} \Info{This is a text by Knuth 1} \input knuth \Info{This is a text by Knuth 2} \input knuth \stoptext Wolfgang