The following minimal example is not working under MkIV. However it works under MkII \setuppagenumbering[conversion=romannumerals] \starttext \input knuth \stoptex What am I doing wrong? LuaTeX, Version beta-0.43.0-2009081914 Regards, Derek
On Fri, Sep 4, 2009 at 2:07 AM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote:
Am 03.09.2009 um 15:30 schrieb Derek CORDEIRO:
The following minimal example is not working under MkIV. However it works under MkII
\setuppagenumbering[conversion=romannumerals]
\setupuserpagenumber[numberconversion=romannumerals]
I do get romannumerals on each page now, but this is not reflected in the TOC as it does in MkII. Below is the minimal example. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \starttext \startfrontmatter \setupuserpagenumber[numberconversion=romannumerals] \setuppagenumber[number=1] \completecontent[criterium=all] \chapter{Intro} \input tufte \stopfrontmatter \startbodymatter \setuppagenumber[number=1] \chapter{knuth} \input knuth \stopbodymatter \stoptext %%%%%%%%%%%% Help, Derek
Am 04.09.2009 um 11:03 schrieb Derek CORDEIRO:
I do get romannumerals on each page now, but this is not reflected in the TOC as it does in MkII. Below is the minimal example.
The new code is more complicated than i thought, here is solution to the problem. As Hans suggested we should collect such setups on the wiki. \definestructureconversionset[frontpart:pagenumber][][romannumerals] \definestructureconversionset[bodypart:pagenumber] [][numbers] \setuplist[chapter][pageconversionset=pagenumber] \startstructureblockenvironment[frontpart] \setupuserpagenumber[numberconversion=romannumerals] \setuppagenumber[number=1] \stopstructureblockenvironment \startstructureblockenvironment[bodypart] \setuppagenumber[number=1] \stopstructureblockenvironment \starttext \startfrontmatter \completecontent[criterium=all] \chapter{Intro} \input tufte \stopfrontmatter \startbodymatter \chapter{knuth} \input knuth \stopbodymatter \stoptext Wolfgang
Thanks a lot, it works as required. I added a note to the wiki "Table_of_Contents" page. Just an unrelated question, Since MkIV is quite different and incompatible with MkII, wouldn't it be better to keep all MkIV specific information separate in the wiki? On Fri, Sep 4, 2009 at 3:36 PM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote:
Am 04.09.2009 um 11:03 schrieb Derek CORDEIRO:
I do get romannumerals on each page now, but this is not reflected in the
TOC as it does in MkII. Below is the minimal example.
The new code is more complicated than i thought, here is solution to the problem.
As Hans suggested we should collect such setups on the wiki.
\definestructureconversionset[frontpart:pagenumber][][romannumerals] \definestructureconversionset[bodypart:pagenumber] [][numbers]
\setuplist[chapter][pageconversionset=pagenumber]
\startstructureblockenvironment[frontpart]
\setupuserpagenumber[numberconversion=romannumerals] \setuppagenumber[number=1]
\stopstructureblockenvironment
\startstructureblockenvironment[bodypart]
\setuppagenumber[number=1]
\stopstructureblockenvironment
\starttext
\startfrontmatter
\completecontent[criterium=all]
\chapter{Intro}
\input tufte
\stopfrontmatter
\startbodymatter
\chapter{knuth}
\input knuth
\stopbodymatter
\stoptext
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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net
___________________________________________________________________________________
Derek CORDEIRO wrote:
Thanks a lot, it works as required. I added a note to the wiki "Table_of_Contents" page. Just an unrelated question, Since MkIV is quite different and incompatible with MkII, wouldn't it be better to keep all MkIV specific information separate in the wiki?
keep in mind that we're in the process of getting rid of some of those incompatibilities so update the wiki page accordingly ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Derek CORDEIRO
-
Hans Hagen
-
Wolfgang Schuster