From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/52864 Path: news.gmane.org!not-for-mail From: Derek CORDEIRO Newsgroups: gmane.comp.tex.context Subject: Re: Pagenumbering of appendices Date: Sat, 12 Sep 2009 01:29:24 +0530 Message-ID: <33c64e670909111259t744faf4bxe1eee4ace0dcbafc@mail.gmail.com> References: <33c64e670909102251q73929998v7782a39bd01e3558@mail.gmail.com> <1252659472-sup-2908@bloxx.local> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0498102191==" X-Trace: ger.gmane.org 1252699190 28402 80.91.229.12 (11 Sep 2009 19:59:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Sep 2009 19:59:50 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 11 21:59:43 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1MmCHW-00027L-9a for gctc-ntg-context-518@m.gmane.org; Fri, 11 Sep 2009 21:59:42 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 07AEDC9A9C; Fri, 11 Sep 2009 21:59:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id VZVBC-GJCFSg; Fri, 11 Sep 2009 21:59:34 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AF31FC9A92; Fri, 11 Sep 2009 21:59:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E5CE2C9A92 for ; Fri, 11 Sep 2009 21:59:28 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id CjGTn0r98AAH for ; Fri, 11 Sep 2009 21:59:25 +0200 (CEST) Original-Received: from mail-fx0-f219.google.com (mail-fx0-f219.google.com [209.85.220.219]) by balder.ntg.nl (Postfix) with ESMTP id 21044C9A90 for ; Fri, 11 Sep 2009 21:59:25 +0200 (CEST) Original-Received: by fxm19 with SMTP id 19so1128035fxm.2 for ; Fri, 11 Sep 2009 12:59:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=tNx0t7LUqYmEULxg42GAN+SJkHy6Ow8ToIzTvLAMtd8=; b=wKnHAx0iqjKU/dm7pqS9fuZ2a0H/YxYrMtSymSAa6jBTUqMxvbUyozqjZlVz6oykp9 rpQHdb1+Ov73lpbcHlfFOBJjHZ5JJpW3K0imG5r11TIlAQa0abxwNGGrNly6m4KseSul 1tHApftkBmDMkRQk+2NpyRcmLpLJmkJWqEYHk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=CbakHgRZt6rHrS7jPObh6FqTrxqKlpD6J7GhTvSoCPXoJL7HifUPitemUIvzHA1u7f xmQXIyHEIwfPdNSh0tbvvU2roGmK5Sl+5Ci1XEJsYiqM8cHJ0juLys3F+6FXE1swBDnk Os1N95R7hA0TbLMFWr/u54LZJShvxx1G/aCF4= Original-Received: by 10.86.22.12 with SMTP id 12mr2634648fgv.69.1252699164702; Fri, 11 Sep 2009 12:59:24 -0700 (PDT) In-Reply-To: <1252659472-sup-2908@bloxx.local> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:52864 Archived-At: --===============0498102191== Content-Type: multipart/alternative; boundary=00c09ffb4d2eb8f87c047352c098 --00c09ffb4d2eb8f87c047352c098 Content-Type: text/plain; charset=UTF-8 On Fri, Sep 11, 2009 at 2:34 PM, Olaf Mersmann < olafm+context@kimberly.tako.de > wrote: > * Derek CORDEIRO [090911 07:51]: > > On Thu, Sep 10, 2009 at 9:10 PM, > > > 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' >
: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. --00c09ffb4d2eb8f87c047352c098 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Fri, Sep 11, 2009 at 2:34 PM, Olaf Mersmann <= span dir=3D"ltr"><ol= afm+context@kimberly.tako.de> wrote:
* Derek CORDEIRO <derekcordei= ro@gmail.com> [090911 07:51]:
> On Thu, Sep 10, 2009 at 9:10 PM, <olafm+context@kimberly.tako.de<= olafm%2Bcontext@kimbe= rly.tako.de> wrote:
> > I've been trying to turn off the conversion of page numbers t= o roman
> > numerals in my appendix without any luck. Here is a minimal examp= le:
> >
> > =C2=A0\setuppagenumbering[way=3Dbytext,location=3D{bottom, right}= ]
> > =C2=A0\startsectionblockenvironment[bodypart]
> > =C2=A0 =C2=A0\setuppagenumber[number=3D1, state=3Dstart]
> > =C2=A0\stopsectionblockenvironment
> > =C2=A0\startsectionblockenvironment[appendix]
> >
>
> \setupuserpagenumber[numberconversion=3Dnumbers]
>
> \setuppagenumbering is still used for the other parameters below.

Thanks for the hint. Never saw \setupuserpagenumber[] before.
I tried to run an expanded version of the minimal example Wolfgang provided with the current minimals and it gave the following error:

=C2=A0...
=C2=A0systems =C2=A0 =C2=A0 =C2=A0 =C2=A0 : begin file simple at line 24 =C2=A0structure =C2=A0 =C2=A0 =C2=A0 : begin of sectionblock frontpart
=C2=A0structure =C2=A0 =C2=A0 =C2=A0 : title @ level 2 : 0.0 -> \headte= xt {content}
=C2=A0! LuaTeX error ...0910/tex/texmf-context/tex/context/base/strc-pag.l= ua:104: bad argument #3 to 'format' (string expected, got table) =C2=A0stack traceback:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[C]: in function 'format'
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0...0910/tex/texmf-context/tex/context/ba= se/strc-pag.lua:104: in function 'number'
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0...0910/tex/texmf-context/tex/context/ba= se/strc-pag.lua:172: in function 'prefixpage'
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0...0910/tex/texmf-context/tex/context/ba= se/strc-lst.lua:399: in function 'prefixedpage'
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<main ctx instance>:1: in main chu= nk.

The example is:

=C2=A0\definestructureconversionset[frontpart:pagenumber] [] [romannumeral= s]
=C2=A0\definestructureconversionset[bodypart:pagenumber] =C2=A0[] [numbers= ]
=C2=A0\definestructureconversionset[appendix:pagenumber] =C2=A0[] [numbers= ]
=C2=A0\definestructureconversionset[backpart:pagenumber] =C2=A0[] [numbers= ]

=C2=A0\startstructureblockenvironment[frontpart]
=C2=A0\setupuserpagenumber[numberconversion=3Dromannumerals]
=C2=A0\setuppagenumber[number=3D1]
=C2=A0\stopstructureblockenvironment

=C2=A0\startstructureblockenvironment[bodypart]
=C2=A0 =C2=A0\setupuserpagenumber[numberconversion=3Dnumbers]
=C2=A0 =C2=A0\setuppagenumber[number=3D1]
=C2=A0\stopstructureblockenvironment

=C2=A0\startstructureblockenvironment[appendix]
=C2=A0 \setupuserpagenumber[numberconversion=3Dnumbers]
=C2=A0\stopstructureblockenvironment

=C2=A0\startstructureblockenvironment[backpart]
=C2=A0 \setupuserpagenumber[numberconversion=3Dnumbers]
=C2=A0\stopstructureblockenvironment

=C2=A0\starttext
=C2=A0\startfrontmatter
=C2=A0 =C2=A0\completecontent[criterium=3Dall]
=C2=A0 =C2=A0\chapter{Front}
=C2=A0 =C2=A0\input tufte
=C2=A0\stopfrontmatter
=C2=A0\startbodymatter
=C2=A0 \chapter{Body}
=C2=A0 \input knuth
=C2=A0\stopbodymatter
=C2=A0\startappendices
=C2=A0 \chapter{Appendix}
=C2=A0 \input knuth
=C2=A0\stopappendices
=C2=A0\startbackmatter
=C2=A0 =C2=A0\chapter{Back}
=C2=A0 =C2=A0\input knuth
=C2=A0\stopbackmatter
=C2=A0\stoptext

The original gave the same error for me. Any help in debugging this
would be appreciated.


Hans has squashed those bu= gs. If you update ConTeXt it should be working fine.

--
A few mi= nutes of yours can give many minutes of education to someone less priviledg= ed. Go to my blog(
http://te= achmetowrite.blogspot.com/) and click on the social vibe badge to make = a difference.
--00c09ffb4d2eb8f87c047352c098-- --===============0498102191== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0498102191==--