ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Appendix Page Numbering
Date: Thu, 6 Feb 2014 11:53:36 +0100	[thread overview]
Message-ID: <BF301F2C-983E-4285-B4CB-21002D66B81C@gmail.com> (raw)
In-Reply-To: <CAFP+xF+xFjpheKQHztFmxp8Lkhh_Q1H8SrZ3ejqQgeOQtBqM+Q@mail.gmail.com>


Am 06.02.2014 um 04:17 schrieb Troy Henderson <thenders@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
___________________________________________________________________________________
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	other threads:[~2014-02-06 10:53 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-05 16:55 Troy Henderson
2014-02-06  3:17 ` Troy Henderson
2014-02-06 10:53   ` Wolfgang Schuster [this message]
2014-02-06 11:59     ` Troy Henderson
2014-02-10 19:33       ` Troy Henderson
2014-02-13  6:53         ` Andreas Schneider
2014-02-13 12:39           ` Troy Henderson
2014-02-13 15:17             ` Hans Hagen
2014-02-13 15:28               ` Troy Henderson
2014-02-13 15:36                 ` Hans Hagen
2014-02-13 16:00                 ` Aditya Mahajan
2014-02-13 16:46                   ` Troy Henderson
2014-02-13 22:16                     ` Troy Henderson
2014-02-14 15:54                       ` Hans Hagen
2014-02-15  1:30                         ` Troy Henderson
2014-02-15  7:50                           ` Wolfgang Schuster
2014-02-15 13:43                             ` Troy Henderson
2014-02-21  1:20                         ` Troy Henderson
2014-02-26  1:42                           ` Troy Henderson
2014-02-26  2:09                             ` Aditya Mahajan
2014-02-26  2:37                               ` Troy Henderson
2014-02-26 11:38                                 ` Troy Henderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BF301F2C-983E-4285-B4CB-21002D66B81C@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).