* Roman PDF labels
@ 2021-09-14 11:58 Sylvain Hubert via ntg-context
2021-09-14 12:38 ` Pablo Rodriguez via ntg-context
0 siblings, 1 reply; 3+ messages in thread
From: Sylvain Hubert via ntg-context @ 2021-09-14 11:58 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Sylvain Hubert
[-- Attachment #1.1: Type: text/plain, Size: 416 bytes --]
Dear List,
Do we have something like "\pagenumbering{roman}" in latex, which sets the
pdf labels (page numbers for pdf viewers, not the ones rendered in the
footer) to roman numbers?
Here's a MWE for latex:
\documentclass{report}
\usepackage{hyperref}
\begin{document}
\pagenumbering{roman}
\tableofcontents
\listoffigures
\listoftables
\pagenumbering{arabic}
\chapter{Abc}
\end{document}
Thanks!
Best,
Sylvain
[-- Attachment #1.2: Type: text/html, Size: 613 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Roman PDF labels
2021-09-14 11:58 Roman PDF labels Sylvain Hubert via ntg-context
@ 2021-09-14 12:38 ` Pablo Rodriguez via ntg-context
2021-09-14 12:53 ` Wolfgang Schuster via ntg-context
0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2021-09-14 12:38 UTC (permalink / raw)
To: Sylvain Hubert via ntg-context; +Cc: Pablo Rodriguez
On 9/14/21 1:58 PM, Sylvain Hubert via ntg-context wrote:
> Dear List,
>
> Do we have something like "\pagenumbering{roman}" in latex, which sets
> the pdf labels (page numbers for pdf viewers, not the ones rendered in
> the footer) to roman numbers?
Hi Sylvain,
copied from
https://wiki.contextgarden.net/Table_of_Contents#Page_numbering_in_ToC:
\definestructureconversionset[frontpart:pagenumber][][romannumerals]
\definestructureconversionset[bodypart:pagenumber] [][numbers]
\setuplist[chapter][pageconversionset=pagenumber]
\startsectionblockenvironment[frontpart]
\setupuserpagenumber[numberconversion=romannumerals]
\setuppagenumber[number=1]
\stopsectionblockenvironment
\startsectionblockenvironment[bodypart]
\setuppagenumber[number=1]
\stopsectionblockenvironment
\starttext
\startfrontmatter
\dorecurse{25}{\null\page}
\stopfrontmatter
\startbodymatter
\dorecurse{25}{\null\page}
\stopbodymatter
\stoptext
I hope it helps,
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Roman PDF labels
2021-09-14 12:38 ` Pablo Rodriguez via ntg-context
@ 2021-09-14 12:53 ` Wolfgang Schuster via ntg-context
0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2021-09-14 12:53 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Wolfgang Schuster
Pablo Rodriguez via ntg-context schrieb am 14.09.2021 um 14:38:
> On 9/14/21 1:58 PM, Sylvain Hubert via ntg-context wrote:
>> Dear List,
>>
>> Do we have something like "\pagenumbering{roman}" in latex, which sets
>> the pdf labels (page numbers for pdf viewers, not the ones rendered in
>> the footer) to roman numbers?
> Hi Sylvain,
>
> copied from
> https://wiki.contextgarden.net/Table_of_Contents#Page_numbering_in_ToC:
>
> \definestructureconversionset[frontpart:pagenumber][][romannumerals]
> \definestructureconversionset[bodypart:pagenumber] [][numbers]
>
> \setuplist[chapter][pageconversionset=pagenumber]
There is no need to set the number conversion for list.
> \startsectionblockenvironment[frontpart]
> \setupuserpagenumber[numberconversion=romannumerals]
> \setuppagenumber[number=1]
> \stopsectionblockenvironment
No need for these settings because you already changed the number conversion
for the frontmatter and the counter starts at 1 by default.
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-09-14 12:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-14 11:58 Roman PDF labels Sylvain Hubert via ntg-context
2021-09-14 12:38 ` Pablo Rodriguez via ntg-context
2021-09-14 12:53 ` Wolfgang Schuster via ntg-context
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).