Re: [NTG-context] writing the name of the section on all the pages
Thanks again, it works very well. However I still have one question: is it possible to decide of the placement of the overlay and its alignment? With your example the section name is centered both horizontally and vertically. I'd like to flush it right at least. Greetings, Alex On Thu 19/05/11 19:31, "Marco" netuse@lavabit.com wrote:
Thanks Marco,
I'm probably missing a piece here has it doesn't
On 2011-05-19 Alexandre Leray
wrote: produce anything visible in my composition. I'm a newbie at context; could you detail a little bit more how to implement this or is this snippet anything I'm supposed to need? Here is a small complete example:
\setuplayout [location=doublesided] \setuppagenumbering [alternative=doublesided]
\setupbackgrounds [state=repeat] \defineoverlay [side] [{\rotate[rotation=90]{\getmarking[section]}}] \setupbackgrounds [text] [rightmargin] [background=side]
\starttext
\dorecurse{10} {\startsection[title=Section \recurselevel] \input knuth \page \stopsection}
\stoptext
Works here with MkIV 2011.05.18 22:26
Marco
___________________________________________________________________________ ________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-contex t@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
________
Am 19.05.2011 um 23:59 schrieb
Thanks again,
it works very well. However I still have one question: is it possible to decide of the placement of the overlay and its alignment? With your example the section name is centered both horizontally and vertically. I'd like to flush it right at least.
In many cases you can replace your overlay with a layer (\setlayer etc.) but in your case you can replace \setupbackgrounds [state=repeat] \defineoverlay [side] [{\rotate[rotation=90]{\getmarking[section]}}] \setupbackgrounds [text] [rightmargin] [background=side] with \setuptexttexts [margin] [][\rightaligned{\rotate[rotation=90]{\getmarking[section]}}] [\leftaligned{\rotate[rotation=90]{\getmarking[section]}}][] Wolfgang
Is there a way to skip these margin texts momentarily, e.g. on the first
page of a new chapter?
Julian
2011/5/20 Wolfgang Schuster
Am 19.05.2011 um 23:59 schrieb
: Thanks again,
it works very well. However I still have one question: is it possible to decide of the placement of the overlay and its alignment? With your example the section name is centered both horizontally and vertically. I'd like to flush it right at least.
In many cases you can replace your overlay with a layer (\setlayer etc.) but in your case you can replace
\setupbackgrounds [state=repeat] \defineoverlay [side] [{\rotate[rotation=90]{\getmarking[section]}}] \setupbackgrounds [text] [rightmargin] [background=side]
with
\setuptexttexts [margin] [][\rightaligned{\rotate[rotation=90]{\getmarking[section]}}] [\leftaligned{\rotate[rotation=90]{\getmarking[section]}}][]
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
___________________________________________________________________________________
-- Julian Becker Institut für Angewandte Physik, R.123 Westfälische Wilhelms-Universität Münster Corrensstr. 2/4 48149 Münster / Westfalen Tel. 0251 83-3 61 53 Mob. 0151 599 848 29 e-mail: j_beck16@uni-muenster.de "Keep thy heart with all diligence; for it is the wellspring of life."
participants (3)
-
alexandre@stdin.fr
-
Julian Becker
-
Wolfgang Schuster