margin text rotated in inner margin
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. Please? Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
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
Am 2011-08-04 um 16:14 schrieb Wolfgang Schuster:
\def\Info#1{\margindata[inmargin]{\rotate{\hbox[location=normal] {#1}}}}
\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]
Thank you, but that doesn’t work like it should: I use it in a folk songbook, every song has a title (\chapter), then the score (a LilyPond graphic via the filter module), after that sometimes lyrics (a lot of rounds, so often no further lyrics). I use \Info for the author information, that should start at the same height as the score - I wouldn't mind if it would start at the title. So I have something like \chapter{My song} \Info{Author: Me} \startlilypond ... \stoplilypond \startlines La la la la... \stoplines With your setup, the Info text starts at the lyrics - if there aren't any, at the lyrics of the next song! Can you guess why it skips the graphics? With my setup, I can place \Info after the score and it goes from there upward - not what I want, but acceptable. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
Am 04.08.2011 um 16:52 schrieb Henning Hraban Ramm:
I use it in a folk songbook, every song has a title (\chapter), then the score (a LilyPond graphic via the filter module), after that sometimes lyrics (a lot of rounds, so often no further lyrics).
I use \Info for the author information, that should start at the same height as the score - I wouldn't mind if it would start at the title.
So I have something like
\chapter{My song}
\Info{Author: Me}
You can try to place the author with the title: \startchapter[title={My song}][author=Me] Wolfgang
Am 2011-08-04 um 17:02 schrieb Wolfgang Schuster:
So I have something like
\chapter{My song}
\Info{Author: Me}
You can try to place the author with the title:
\startchapter[title={My song}][author=Me]
Good idea, but how solves that my placement problem? Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
participants (2)
-
Henning Hraban Ramm
-
Wolfgang Schuster