ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Tom" <Tom@tuxedo-press.com>
To: "'mailing list for ConTeXt users'" <ntg-context@ntg.nl>
Subject: Re: Am not getting Roman numeral page numbers in MKIV
Date: Fri, 11 Mar 2011 13:04:41 -0500	[thread overview]
Message-ID: <01bd01cbe016$cbcb1ee0$63615ca0$@com> (raw)
In-Reply-To: <25F2E4AE-3AF9-4A2F-8171-A4E0A3F4A68E@gmail.com>

I used to think I was of average intelligence but I can't figure out to do
the most basic thing in ConTeXt. My current problems with this simple code
are:

1. Front matter page numbers are not lower-case Roman numerals although they
are listed as such in the TOC.
2. The Introduction is not listed in the TOC.
3. Page numbering isn't reset to 1 in the bodymatter section.

Obviously, I'm not reading the correct documentation or am too stupid to
understand what I am reading.

\definehead [intro][chapter]
\setuphead  [intro][incrementnumber=no]

\definestructureconversionset[frontpart:pagenumber][][romannumerals]
%pagenumbers in TOC not converted if frontmatter

\definestructureconversionset[bodymatter:pagenumber] [][numbers]
\setuplist[chapter][pageconversionset=pagenumber]
\setuplist[intro][pageconversionset=pagenumber]


\startstructureblockenvironment[frontmatter]
%whether frontpart or frontmatter seems to make no difference

\setuppagenumber[number=1]

\setuppagenumbering[state=start,location=bottom,conversion=romannumerals] 

\definecombinedlist [content][intro,chapter,section]

\stopstructureblockenvironment

\startstructureblockenvironment[bodymatter]

\setuppagenumber[state=start,number=1]

\setuppagenumbering[state=start,location=bottom,conversion=numbers] 

\stopstructureblockenvironment

\startstructureblockenvironment[backmatter]

\stopstructureblockenvironment

\starttext 

\startfrontmatter % errors on startfrontpart

%sample front matter
\input knuth      %page numbers not being converted to Roman numerals

\completecontent[alternative=c,criterium=all]

\chapter{Preface}
\input knuth

\stopfrontmatter

\startbodymatter

\intro{Introduction}  %is not appearing in TOC
\input knuth          %page number not being set to 1

\chapter{I Was Born}
\input knuth

\chapter{I Observe}
\input knuth

\stopbodymatter

\startbackmatter

\stopbackmatter

\stoptext

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com


___________________________________________________________________________________
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:[~2011-03-11 18:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-11  5:00 Jeong Dalyoung
2011-03-11 13:28 ` Wolfgang Schuster
2011-03-11 15:17   ` Tom
2011-03-11 17:06     ` Wolfgang Schuster
2011-03-11 18:04       ` Tom [this message]
     [not found] <mailman.1380.1299938867.4223.ntg-context@ntg.nl>
2011-03-13 12:49 ` Jeong Dalyoung
  -- strict thread matches above, loose matches on Subject: below --
2011-03-12  8:35 Jeong Dalyoung
2011-03-12 13:46 ` Tom
2011-03-10 21:37 Tom

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='01bd01cbe016$cbcb1ee0$63615ca0$@com' \
    --to=tom@tuxedo-press.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).