ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Italic page number.
Date: Sun, 5 Aug 2012 09:39:24 +0200	[thread overview]
Message-ID: <399B1830-5142-4570-ABE4-D987FEC8881A@gmail.com> (raw)
In-Reply-To: <20120804203700.1795e2d6@sda3.wexfordpress.net>


Am 05.08.2012 um 02:37 schrieb john Culleton <John@wexfordpress.com>:

> IMO the following code should result in an italic iii on the
> contents page. Instead I get a roman 1.
> -------------------
> \startfrontmatter
> \setuppagenumbering[alternative=doublesided,conversion=romannumerals]
> \setuppagenumber[number=iii]
> \setuppagenumber[state=start]
> \completecontent
> ------------------------------
> I have tried variations such as a single \setupagenumber with two
> parameters, using \page[iii] instead and so on. 
> 
> This ought to be a smple task: start page numbering on the
> contents page with iii. But I haven't mastered it yet.

\setuppagenumbering[alternative=doublesided]

% You can use this instead of \setuppagenumbering[numberconversion=romannumerals]
% to set the conversion of the pagenumber outside of the sectionblock environment,
% the first argument takes the name of the conversion which is applied to the
% userpage counter with \setupcounter[userpage][numberconversionset=pagenumber].
%
% You can set a conversion for a certain sectionblock when you write the name
% of the block before the name of the conversion set separated by a “:”.
%
%\defineconversionset[frontpart:pagenumber][][romannumerals]

\startsectionblockenvironment[frontpart]

\setuppagenumbering[numberconversion=romannumerals]

\setcounter[userpage][3]

\stopsectionblockenvironment

\startsectionblockenvironment[bodypart]

\setcounter[userpage][1]

\stopsectionblockenvironment

\starttext

\startfrontmatter

\completecontent

\stopfrontmatter

\startbodymatter

\dorecurse{100}
  {\chapter{Chapter #1}
   \dorecurse{5}
     {\section{Section #1.##1}}}

\stoptext

BTW: Send next time a complete minimal example.

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:[~2012-08-05  7:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-05  0:37 john Culleton
2012-08-05  7:39 ` Wolfgang Schuster [this message]
2012-08-05 14:33   ` Wolfgang Schuster
2012-08-07 14:22   ` john Culleton
2012-08-07 15:44     ` Wolfgang Schuster

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=399B1830-5142-4570-ABE4-D987FEC8881A@gmail.com \
    --to=wolfgang.schuster@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).