ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Derek CORDEIRO <derekcordeiro@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Pagenumbering of appendices
Date: Sat, 12 Sep 2009 01:29:24 +0530	[thread overview]
Message-ID: <33c64e670909111259t744faf4bxe1eee4ace0dcbafc@mail.gmail.com> (raw)
In-Reply-To: <1252659472-sup-2908@bloxx.local>


[-- Attachment #1.1: Type: text/plain, Size: 3610 bytes --]

On Fri, Sep 11, 2009 at 2:34 PM, Olaf Mersmann <
olafm+context@kimberly.tako.de <olafm%2Bcontext@kimberly.tako.de>> wrote:

> * Derek CORDEIRO <derekcordeiro@gmail.com> [090911 07:51]:
> > On Thu, Sep 10, 2009 at 9:10 PM, <olafm+context@kimberly.tako.de<olafm%2Bcontext@kimberly.tako.de>
> <olafm%2Bcontext@kimberly.tako.de <olafm%252Bcontext@kimberly.tako.de>>
> wrote:
> > > I've been trying to turn off the conversion of page numbers to roman
> > > numerals in my appendix without any luck. Here is a minimal example:
> > >
> > >  \setuppagenumbering[way=bytext,location={bottom, right}]
> > >  \startsectionblockenvironment[bodypart]
> > >    \setuppagenumber[number=1, state=start]
> > >  \stopsectionblockenvironment
> > >  \startsectionblockenvironment[appendix]
> > >
> >
> > \setupuserpagenumber[numberconversion=numbers]
> >
> > \setuppagenumbering is still used for the other parameters below.
>
> Thanks for the hint. Never saw \setupuserpagenumber[] before.
>
> > Please refer to this thread:
> > http://www.ntg.nl/pipermail/ntg-context/2009/043284.html for a related
> > discussion.
>
> I tried to run an expanded version of the minimal example Wolfgang
> provided with the current minimals and it gave the following error:
>
>  ...
>  systems         : begin file simple at line 24
>  structure       : begin of sectionblock frontpart
>  structure       : title @ level 2 : 0.0 -> \headtext {content}
>  ! LuaTeX error
> ...0910/tex/texmf-context/tex/context/base/strc-pag.lua:104: bad argument #3
> to 'format' (string expected, got table)
>  stack traceback:
>          [C]: in function 'format'
>          ...0910/tex/texmf-context/tex/context/base/strc-pag.lua:104: in
> function 'number'
>          ...0910/tex/texmf-context/tex/context/base/strc-pag.lua:172: in
> function 'prefixpage'
>          ...0910/tex/texmf-context/tex/context/base/strc-lst.lua:399: in
> function 'prefixedpage'
>          <main ctx instance>:1: in main chunk.
>
> The example is:
>
>  \definestructureconversionset[frontpart:pagenumber] [] [romannumerals]
>  \definestructureconversionset[bodypart:pagenumber]  [] [numbers]
>  \definestructureconversionset[appendix:pagenumber]  [] [numbers]
>  \definestructureconversionset[backpart:pagenumber]  [] [numbers]
>
>  \startstructureblockenvironment[frontpart]
>  \setupuserpagenumber[numberconversion=romannumerals]
>  \setuppagenumber[number=1]
>  \stopstructureblockenvironment
>
>  \startstructureblockenvironment[bodypart]
>    \setupuserpagenumber[numberconversion=numbers]
>    \setuppagenumber[number=1]
>  \stopstructureblockenvironment
>
>  \startstructureblockenvironment[appendix]
>   \setupuserpagenumber[numberconversion=numbers]
>  \stopstructureblockenvironment
>
>  \startstructureblockenvironment[backpart]
>   \setupuserpagenumber[numberconversion=numbers]
>  \stopstructureblockenvironment
>
>  \starttext
>  \startfrontmatter
>    \completecontent[criterium=all]
>    \chapter{Front}
>    \input tufte
>  \stopfrontmatter
>  \startbodymatter
>   \chapter{Body}
>   \input knuth
>  \stopbodymatter
>  \startappendices
>   \chapter{Appendix}
>   \input knuth
>  \stopappendices
>  \startbackmatter
>    \chapter{Back}
>    \input knuth
>  \stopbackmatter
>  \stoptext
>
> The original gave the same error for me. Any help in debugging this
> would be appreciated.
>
>
Hans has squashed those bugs. If you update ConTeXt it should be working
fine.

-- 
A few minutes of yours can give many minutes of education to someone less
priviledged. Go to my blog(http://teachmetowrite.blogspot.com/) and click on
the social vibe badge to make a difference.

[-- Attachment #1.2: Type: text/html, Size: 4680 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2009-09-11 19:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-10 15:40 olafm+context
2009-09-11  5:51 ` Derek CORDEIRO
2009-09-11  9:04   ` Olaf Mersmann
2009-09-11 19:59     ` Derek CORDEIRO [this message]
2009-09-11 22:00       ` \showgrid Andreas Harder

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=33c64e670909111259t744faf4bxe1eee4ace0dcbafc@mail.gmail.com \
    --to=derekcordeiro@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).