* Formatting of page number in table of contents
@ 2015-08-11 16:53 Aditya Mahajan
2015-08-11 17:40 ` Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2015-08-11 16:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Formatting of page number in table of contents
2015-08-11 16:53 Formatting of page number in table of contents Aditya Mahajan
@ 2015-08-11 17:40 ` Wolfgang Schuster
2015-08-12 15:01 ` Aditya Mahajan
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2015-08-11 17:40 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 770 bytes --]
> Aditya Mahajan <mailto:adityam@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
[-- Attachment #1.2: Type: text/html, Size: 1841 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Formatting of page number in table of contents
2015-08-11 17:40 ` Wolfgang Schuster
@ 2015-08-12 15:01 ` Aditya Mahajan
0 siblings, 0 replies; 3+ messages in thread
From: Aditya Mahajan @ 2015-08-12 15:01 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Tue, 11 Aug 2015, Wolfgang Schuster wrote:
>> Aditya Mahajan <mailto:adityam@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-08-12 15:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-11 16:53 Formatting of page number in table of contents Aditya Mahajan
2015-08-11 17:40 ` Wolfgang Schuster
2015-08-12 15:01 ` Aditya Mahajan
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).