Re: [NTG-context] \setuphead and testpage

2012-07-14 Thread Wolfgang Schuster

Am 14.07.2012 um 00:32 schrieb Hans Hagen:

 On 13-7-2012 10:02, Wolfgang Schuster wrote:
 Hi Hans,
 
 can you add a testpage option to \setuphead?
 
 %\setuphead[section][testpage=4]
 \setuphead[section][before={\testpage[4]\blank[2*big]}]
 
 \starttext
 
 \section{First}
 
 \dorecurse{36}{Line \recurselevel\par}
 
 \section{Second}
 
 \dorecurse{36}{Line \recurselevel\par}
 
 \stoptext
 
 Are we sure about that key? (a conditional page entry is also an option, like 
 page=lines:4 or so

Adding the \testpage functionality to \page (and providing \blank like options, 
e.g. lines:4,offset:1cm)
is another solution and has the advantage that you don’t need another key for 
\setuphead etc.

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] \setuphead and testpage

2012-07-13 Thread Wolfgang Schuster
Hi Hans,

can you add a testpage option to \setuphead?

%\setuphead[section][testpage=4]
\setuphead[section][before={\testpage[4]\blank[2*big]}]

\starttext

\section{First}

\dorecurse{36}{Line \recurselevel\par}

\section{Second}

\dorecurse{36}{Line \recurselevel\par}

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


Re: [NTG-context] \setuphead and testpage

2012-07-13 Thread Hans Hagen

On 13-7-2012 10:02, Wolfgang Schuster wrote:

Hi Hans,

can you add a testpage option to \setuphead?

%\setuphead[section][testpage=4]
\setuphead[section][before={\testpage[4]\blank[2*big]}]

\starttext

\section{First}

\dorecurse{36}{Line \recurselevel\par}

\section{Second}

\dorecurse{36}{Line \recurselevel\par}

\stoptext


Are we sure about that key? (a conditional page entry is also an option, 
like page=lines:4 or so


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-


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