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: setuppage is ignored
Date: Thu, 8 May 2014 17:14:18 +0200	[thread overview]
Message-ID: <62487BDE-560D-4EDC-8D5E-D194F5638106@gmail.com> (raw)
In-Reply-To: <CA+cORN9hw2K6b+RytS15bR_LnK9Z5X_N9x_f69gtxDN1AhnXpQ@mail.gmail.com>


Am 08.05.2014 um 16:46 schrieb Thomas Friedrich <friedrich@statistik.tu-dortmund.de>:

> Thanks Wolfgang, it does work now!
> 
> I didn't now that the counter would be called 'userpage'.  It thought
> I had to set the page-counter (\setconter[page][1]), as I was using
> 
> \setuppagenumber[numberconversion=numbers,state=start]
> 
> and not
> 
> \setupuserpagenumber[numberconversion=numbers,state=start]
> 
> It seems as if both commands have the same effect. Are these synonyms?
> 
> Is there a way for an end-user (like me) to infer from a command as
> \setuppagenumber that the corresponding counter is called "userpage"?
> I am just asking so I may get an understanding of how ConTeXt works,
> and I don't have to bother the list with so many questions.

ConTeXt uses three different counters for the pages of the document:

1. The realpage counter is used for internal references to pages, this counter
   should never be reset because it is needed to have unique numbers for each page.

2. The userpage counter which is shown in the header, TOC etc. and you can reset
   its value at the begin of a new sectionblock etc.

3. The subpage counter can be used when you want to divide a certain sectionblock
   into even small parts to have local page numbers for a certain part of your document.

Each of these three counters have a command for the setup:

   - \setuprealpagenumber
   - \setupuserpagenumber
   - \setupsubpagenumber

The old \setuppagenumber command is a synonym for the \setupuserpagenumber
command because this is the counter you have to change for your documents.

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-05-08 15:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-07  8:57 Thomas Möbius
2014-05-07 12:25 ` Wolfgang Schuster
2014-05-08 14:46   ` Thomas Friedrich
2014-05-08 15:14     ` Wolfgang Schuster [this message]

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=62487BDE-560D-4EDC-8D5E-D194F5638106@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).