Re: [NTG-context] How to get rid of header

2006-08-08 Thread Taco Hoekwater


Taco Hoekwater wrote:

  > I would like to know a clean answer to this as well.
> 
> I often use code that does something similar to James' solution
> (posted last week):
> 
> 
>\startsetups [chapter:before]
>   \page[left]
>   \noheaderandfooterlines
>   \leavevmode
>   \page[right]
>\stopsetups
> 
>\setuphead
> [chapter]
> [before=\setups{chapter:before}]
> 
> but that is a bit too hackish for my taste.

 From a post by Hans on the dev list:

Hans Hagen wrote:
> it's
> \page[empty,right]
> 
> or
> \page[yes,empty,right]
> 
> page entries are processed in sequence
> 
> \page[something,something,{something,something},something]

Greetings, Taco

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to get rid of header

2006-08-06 Thread Taco Hoekwater
David Arnold wrote:
> All, how do I get rid of the header on the second page of output?

I would like to know a clean answer to this as well.

I often use code that does something similar to James' solution
(posted last week):


   \startsetups [chapter:before]
  \page[left]
  \noheaderandfooterlines
  \leavevmode
  \page[right]
   \stopsetups

   \setuphead
[chapter]
[before=\setups{chapter:before}]

but that is a bit too hackish for my taste.

Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] How to get rid of header

2006-08-05 Thread David Arnold
All, how do I get rid of the header on the second page of output?

\setupwhitespace[medium]
\setupindenting[medium,yes]

\setupcolors[state=start]

\setuppagenumbering
[state=start,
   alternative=doublesided,
   location=,
   way=bytext]

\definetext[chapter][footer][pagenumber]

\setuphead
[chapter]
[alternative=inmargin,
   header=high,
   footer=chapter,
   page=right]

\setuphead
[section]
[style=\tfc,
   page=right,
   continue=no,
   alternative=inmargin]

\setuphead
[subsection]
[style=\tfb\sl,
   number=no]

\definehead
[toc]
[section]
\setuphead
[toc]
[number=no,
   incrementnumber=no,
   page=no]
\def\OddPageHeader{\bold{\pagenumber}\hskip 1em Chapter \headnumber 
[chapter] \getmarking[chapter][current]}

\def\headermarkleft{\bold{\pagenumber}\headerskip{\sc\headerskip  
Chapter \headnumber[chapter]\headerskip\getmarking[chapter][current]}}
\def\headermarkright{{\sc{}Section \headnumber[section]\headerskip 
\getmarking[section][current]}\headerskip\bold{\pagenumber}}
\def\headerskip{\hskip 1em}

\setupheadertexts
[][\headermarkright]%odd page on right
[\headermarkleft][]%even page on left
\setuplist
[section]
[style=bold,
   color=red,
   alternative=c]
\setuplist
[subsection]
[alternative=b]
\starttext

\chapter{A Practice Chapter}

\input knuth

\toc{Table of Contents}

\placecontent

\section{First Section}

\dorecurse{3}{\input knuth \par}

\subsection{First Subsection}

\dorecurse{3}{\input knuth \par}



\section{Second Section}

\dorecurse{3}{\input knuth \par}

\subsection{Second Subection}

\dorecurse{3}{\input knuth \par}


\section{Third Section}

\dorecurse{3}{\input knuth \par}

\subsection{Third Subection}

\dorecurse{3}{\input knuth \par}


\stoptext
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context