Am 19.01.2014 um 12:29 schrieb Marco Patzer <li...@homerow.info>:

>  \definestructureconversionset
>    [structure]
>    %% part,  chapter,    section,       subsection, subsubsection
>    [numbers, characters, Romannumerals, numbers,    romannumerals]
>    [numbers]
> 
>  \startsectionblockenvironment [appendix]
>    \setupheads [sectionconversionset=structure]
>  \stopsectionblockenvironment

You can set a conversionset also for certain sectionblocks when you
add the name of the block as prefix for the name of the set.

\defineconversionset[frontpart:pagenumber][][A]
\defineconversionset [bodypart:pagenumber][][R]
\defineconversionset [appendix:pagenumber][][n]

\defineconversionset[frontpart:sectionnumber][R,A,G][n]
\defineconversionset [bodypart:sectionnumber][r,a,g][n]
\defineconversionset [appendix:sectionnumber][a,g,n][n]

\setuppagenumber[numberconversionset=pagenumber]

\setuphead
  [part,chapter,section]
  [placehead=yes,
   sectionconversionset=sectionnumber]

\setupsectionblock[frontpart][number=yes]

\starttext

\startfrontmatter

\dorecurse{5}
  {\part{Part #1}
   \dorecurse{5}
     {\chapter{Chapter #1.##1}
          \dorecurse{10}{\section{Section #1.##1.####1}}}}

\stopfrontmatter

\startbodymatter

\dorecurse{5}
  {\part{Part #1}
   \dorecurse{5}
     {\chapter{Chapter #1.##1}
          \dorecurse{10}{\section{Section #1.##1.####1}}}}

\stopbodymatter

\startappendices

\dorecurse{5}
  {\part{Part #1}
   \dorecurse{5}
     {\chapter{Chapter #1.##1}
          \dorecurse{10}{\section{Section #1.##1.####1}}}}

\stopappendices

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

Reply via email to