[NTG-context] Formatting of page number in table of contents

Wolfgang Schuster schuster.wolfgang at gmail.com
Tue Aug 11 19:40:05 CEST 2015


> Aditya Mahajan <mailto:adityam at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150811/eaadf2c7/attachment.html>


More information about the ntg-context mailing list