On Wed, Jul 16, 2008 at 1:16 PM, John Culleton <[EMAIL PROTECTED]> wrote:
> Per the Chicago Manual of Style  divider pages and their blank versos
> do not show page numbers but are included in the page count, just
> like any other pages.  However the \part macro excludes them from the
> page numbering sequence altogether.  And my current customer at least
> wants roman rather than arabic numerals.  After many false starts I
> came up with this macro:
> -------------------------------------------------------------
> \def\Part#1#2#3{%
> \page[yes]
> \ifodd\pageno
> \else
> \noheaderandfooterlines
> \null
> \page[yes]
> \fi
> \noheaderandfooterlines
> \writetolist[part]{}{#1: #2 #3}
> \nimbux
> \null
> \vskip 2in
> \centerline{Part #1}
> \vskip 15pt
> \centerline{#2}
> \vskip 15pt
> \centerline{#3}
> \vfil
> \rm
> \page[yes]
> }
> ----------------------------------------------
> The first parameter is the roman numeral.  Automatic numbering is not
> needed for just five parts.  Note colon inserted for the TOC.  It
> isn't needed on the page itself.
>
> If the part title is short then the third parameter is simply left
> blank.
>
> \nimbux has a simple font defintition. A typesectipt would have been
> too much effort for this single use:
>
> \font\nimbux texnansi-n019044t at 33bp %Nimbus bold sans condensed

\setuppagenumbering
  [alternative=doublesided,
   partnumber=no,
   way=bytext]

\definemakeup
  [part]
  [pagestate=start,
   align=middle,
   doublesided=no,
   page=yes]

\setuphead
  [part]
  [placehead=yes,
   textcommand=\PartTextCommand,
   number=no,
   incrementnumber=list,
   page={yes,header,footer,right},
   before=\startpartmakeup,
   after=\stoppartmakeup]

\def\PartTextCommand#1%
  {\def\\{\par\blank[15pt]}#1}

%\setuplabeltext[en][part=]

\starttext

\placecontent

\dorecurse{3}
  {\part{Title\\Subtitle\\Subsubtitle}
   \dorecurse{6}{\input knuth\par}}
\stoptext

Regards,
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to