[NTG-context] Appendix Page Numbering

Wolfgang Schuster schuster.wolfgang at gmail.com
Thu Feb 6 11:53:36 CET 2014


Am 06.02.2014 um 04:17 schrieb Troy Henderson <thenders at gmail.com>:

> To give an idea of what I am wanting, the attached screenshot is from Evince for a particular PDF that was created with some other program other than ConTeXt.  Notice the custom page number names such as "Statement", "P-1", "P-5", ..., "P-25", "APP-1", "APP-3", ...
> 
> How can I get this with ConTeXt?

\defineconversionset[frontpart:pagenumber][][romannumerals]

\definesectionblock[project][projectmatter]

\startsectionblockenvironment[project]
  \setcounter[userpage][1]
  \setuppagenumber[numberstarter=P-]
\stopsectionblockenvironment

\startsectionblockenvironment[bodypart]
  \setcounter[userpage][1]
\stopsectionblockenvironment

\startsectionblockenvironment[appendix]
  \setcounter[userpage][1]
  \setuppagenumber[numberstarter=APP-]
\stopsectionblockenvironment

\starttext

\startfrontmatter
\dorecurse{10}{\dontleavehmode\page}
\stopfrontmatter

\startprojectmatter
\dorecurse{10}{\dontleavehmode\page}
\stopprojectmatter

\startbodymatter
\dorecurse{10}{\dontleavehmode\page}
\stopbodymatter

\startappendices
\dorecurse{10}{\dontleavehmode\page}
\stopappendices

\stoptext

Wolfgang


More information about the ntg-context mailing list