ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mari Voipio <mari.voipio@iki.fi>
To: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Page number woes
Date: Thu, 5 Sep 2019 12:30:59 +0300	[thread overview]
Message-ID: <CAGbDsP08NJH3ovgiE9Sw+0n_CxUHtgQre6sroa2fbuEuYS1VKA@mail.gmail.com> (raw)
In-Reply-To: <d1f1ed81-269e-6973-d1a4-4774348194b7@gmail.com>

Well, this was total waste of space from my part. When I found a
working file in a different project and copied the code over I
realized that my problem code should never have worked: I had
\setuppagenumber[stop] when I should have had
\setuppagenumber[state=stop]. Adding "state=" to my non-working code
solved all the problems and page numbering works the way I want to
have it.

And, as Wolfgang explained, I really don't need
\setuppagenumber[state=start] in the beginning of bodymatter, so now I
can even clean up my code a bit. Thank you, Wolfgang, I think I
understand blocks better now.

Mari


On Tue, Sep 3, 2019 at 7:03 PM Wolfgang Schuster
<wolfgang.schuster.lists@gmail.com> wrote:
>
> Mari Voipio schrieb am 02.09.2019 um 13:07:
> > Hello!
> >
> > I have a document where I want the page numbers to start from the
> > first page of chapter one. There's bunch of stuff before that,
> > including a table of contents. This has worked fine:
> >
> > \startproduct prd-pr23
> >
> > \startfrontmatter
> > \setuppagenumber[stop]
> > \component pr23-cover_front_web
> > \component blank.tex
> > \component c-contents
> > \stopfrontmatter
> >
> > \startbodymatter
> > \setuppagenumber[start]
> > \component dtr_pg.tex
> > \stopbodymatter
> >
> > \stopproduct
> >
> >
> > However, now I need to switch to using a full-page pdf as cover page
> > and changing that one line messes up with my page numbering, now TOC
> > appears as page 1 and chapter one starts from page 2 in my test file.
> >
> >
> > \startproduct prd-pr23
> >
> >
> > \startfrontmatter
> > \setuppagenumber[stop]
> > \startpagefigure[cover_vaisala_front_stripped]\stoppagefigure
> > \component blank.tex
> > \component c-contents
> > \stopfrontmatter
> >
> > \startbodymatter
> > \setuppagenumber[start]
> > \component dtr_pg.tex         % third chapter (DTR)
> > \stopbodymatter
> >
> > \stopproduct
> >
> > What is it that I don't see? I tried moving the cover page before the
> > \startfrontmatter, but that didn't change anything, TOC still starts
> > on page 2 when it shouldn't have a page number at all. Why does
> > switching the cover page from .tex to \pagefigure have such an effect
> > and how can I counteract it?
> >
> > Mari
> The \setuppagenumber command takes an assignment as argument but in your
> example you pass keywords to it.
>
> When you change the setting in the frontmatter to
> \setuppagenumber[state=stop] the numbers disappear. Since settings in a
> sectionblock are local there is no need to enable the counter in the
> bodypart because the previous setting is forgotten.
>
> When I look in your attached files I see that some file contain the
> setting \setuppagenumber[state=stop] which disabled the page counter.
>
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2019-09-05  9:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-02 11:07 Mari Voipio
2019-09-03 16:03 ` Wolfgang Schuster
2019-09-05  9:30   ` Mari Voipio [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-03-14 14:43 Mari Voipio
2016-03-15 10:22 ` Wolfgang Schuster
2016-03-15 12:08 ` Pablo Rodriguez

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=CAGbDsP08NJH3ovgiE9Sw+0n_CxUHtgQre6sroa2fbuEuYS1VKA@mail.gmail.com \
    --to=mari.voipio@iki.fi \
    --cc=ntg-context@ntg.nl \
    --cc=wolfgang.schuster.lists@gmail.com \
    /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).