Re: [NTG-context] Formatting of page number in table of contents
On Tue, 11 Aug 2015, Wolfgang Schuster wrote: Aditya Mahajan mailto:adit...@umich.edu 11. August 2015 18:53 Hi, I am using a document structure part-section-subsection (i.e., no chapters). The page numbers have to be formatted as partnumber-pagenumber. So, I am using the following setup: \setupuserpagenumber[way=bypart, prefix=yes, prefixset=part] The page numbers are formatted correctly on each page, but not in the table of contents. For example, \setupuserpagenumber[way=bypart, prefix=yes, prefixset=part] \starttext \placelist[part,section][alternative=c, criterium=all] Change this to \placelist[part,section][alternative=c,criterium=all,pageprefixsegments=part] or \placelist[part,section][alternative=c,criterium=all,pageprefixset=part] Thanks! Aditya ___ 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 ___
[NTG-context] Formatting of page number in table of contents
Hi, I am using a document structure part-section-subsection (i.e., no chapters). The page numbers have to be formatted as partnumber-pagenumber. So, I am using the following setup: \setupuserpagenumber[way=bypart, prefix=yes, prefixset=part] The page numbers are formatted correctly on each page, but not in the table of contents. For example, \setupuserpagenumber[way=bypart, prefix=yes, prefixset=part] \starttext \placelist[part,section][alternative=c, criterium=all] \part{Part 1} \section{one} \input knuth \page \section{two} \input knuth \page \section{three} \input knuth \page \part{Part Two} \section{one} \input knuth \page \section{two} \input knuth \page \section{three} \input knuth \page \stoptext The numbers of the table of content are: 1 Part 1 1-1 1.1 one 1-1 1.2 two 2-2 1.3 three ... 3-3 Note that the prefix of page number is the section number rather than the part number. Any idea what I am doing wrong and how to fix it? Thanks, Aditya ___ 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 ___
Re: [NTG-context] Formatting of page number in table of contents
Aditya Mahajan mailto:adit...@umich.edu 11. August 2015 18:53 Hi, I am using a document structure part-section-subsection (i.e., no chapters). The page numbers have to be formatted as partnumber-pagenumber. So, I am using the following setup: \setupuserpagenumber[way=bypart, prefix=yes, prefixset=part] The page numbers are formatted correctly on each page, but not in the table of contents. For example, \setupuserpagenumber[way=bypart, prefix=yes, prefixset=part] \starttext \placelist[part,section][alternative=c, criterium=all] Change this to \placelist[part,section][alternative=c,criterium=all,pageprefixsegments=part] or \placelist[part,section][alternative=c,criterium=all,pageprefixset=part] 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 ___