Re: [NTG-context] writing the name of the section on all the pages

2011-06-15 Thread Julian Becker
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 schuster.wolfg...@googlemail.com


 Am 19.05.2011 um 23:59 schrieb alexan...@stdin.fr:

  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_bec...@uni-muenster.de

Keep thy heart with all diligence; for it is the wellspring of life.
___
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
___

Re: [NTG-context] writing the name of the section on all the pages

2011-05-20 Thread Wolfgang Schuster

Am 19.05.2011 um 23:59 schrieb alexan...@stdin.fr:

 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
___


[NTG-context] writing the name of the section on all the pages

2011-05-19 Thread Alexandre Leray
Hi,

how could I write the name of the current \section or \subject in the
outer margin, with a rotation of 90°?

Best,

Alex

-- 
stdin
Alexandre Leray
graphic and media design
http://stdin.fr/
Munthofstraat 27
1060 Bruxelles
___
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
___


Re: [NTG-context] writing the name of the section on all the pages

2011-05-19 Thread Marco
 how could I write the name of the current \section or \subject in the
 outer margin, with a rotation of 90°?

\setupbackgrounds [state=repeat]
\defineoverlay [side]
  [{\rotate[rotation=90]{\getmarking[section]}}]
\setupbackgrounds [text] [rightmargin]
  [background=side]

Marco


___
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
___

Re: [NTG-context] writing the name of the section on all the pages

2011-05-19 Thread Alexandre Leray
Thanks Marco,

I'm probably missing a piece here has it doesn't 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?

Thanks,

Alex

On 19/05/11 18:58, Marco wrote:
 how could I write the name of the current \section or \subject in the
 outer margin, with a rotation of 90°?
 
 \setupbackgrounds [state=repeat]
 \defineoverlay [side]
   [{\rotate[rotation=90]{\getmarking[section]}}]
 \setupbackgrounds [text] [rightmargin]
   [background=side]
 
 Marco
 
 
 ___
 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
 ___


-- 
stdin
Alexandre Leray
graphic and media design
http://stdin.fr/
+32 (0)4 85 27 76 08
Munthofstraat 27
1060 Bruxelles
___
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
___

Re: [NTG-context] writing the name of the section on all the pages

2011-05-19 Thread Marco
On 2011-05-19 Alexandre Leray alexan...@stdin.fr wrote:

 Thanks Marco,
 
 I'm probably missing a piece here has it doesn't 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-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
___


Re: [NTG-context] writing the name of the section on all the pages

2011-05-19 Thread alexandre
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 net...@lavabit.com wrote:
 On 2011-05-19 Alexandre Leray alexandre@
 stdin.fr wrote:
  Thanks Marco,
  
  I'm probably missing a piece here has it doesn't
 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
___
 
 
 

___
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
___