* margin text rotated in inner margin
@ 2011-08-04 8:13 Henning Hraban Ramm
2011-08-04 14:14 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Henning Hraban Ramm @ 2011-08-04 8:13 UTC (permalink / raw)
To: mailing list for ConTeXt users
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)
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: margin text rotated in inner margin
2011-08-04 8:13 margin text rotated in inner margin Henning Hraban Ramm
@ 2011-08-04 14:14 ` Wolfgang Schuster
2011-08-04 14:52 ` Henning Hraban Ramm
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2011-08-04 14:14 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: margin text rotated in inner margin
2011-08-04 14:14 ` Wolfgang Schuster
@ 2011-08-04 14:52 ` Henning Hraban Ramm
2011-08-04 15:02 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Henning Hraban Ramm @ 2011-08-04 14:52 UTC (permalink / raw)
To: mailing list for ConTeXt users
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)
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-08-04 21:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-04 8:13 margin text rotated in inner margin Henning Hraban Ramm
2011-08-04 14:14 ` Wolfgang Schuster
2011-08-04 14:52 ` Henning Hraban Ramm
2011-08-04 15:02 ` Wolfgang Schuster
2011-08-04 21:48 ` Henning Hraban Ramm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).