ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Florent Michel <florent.m42@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: Example for switching page numbering from roman to numeric in PDF outline
Date: Tue, 24 Sep 2024 19:50:31 +0100	[thread overview]
Message-ID: <CALOhoeJVxfRUPrY-yfJP=RQWrjDAbnOtzXa=UD6ZSzwBkUNBCA@mail.gmail.com> (raw)
In-Reply-To: <CALJ_jGQzCYfp0Y58P5tf=qChQhxUUcrG-GK13dWeC=m9VqY-ag@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1773 bytes --]

Hi,

I do not know how to do that properly (if someone has a solution, I'd also
be interested), but here is something which seems to give a partial
solution:

```
\usemodule[ipsum]

\starttext

\placecontent

\section{Section 1}

\dorecurse {6} \ipsum

\pagebreak

\section{Section 2}

\def\romanpage{\convertnumber{romannumerals}{\userpage}}
\setupuserpagenumber[
    numberconversion=romannumerals,
    viewerprefix=\romanpage -,
]

\dorecurse {6} \ipsum

\stoptext
```

In section 2, pages are shown with roman numerals in the document and as
(roman numerals)-(arabic numerals) in the outline with Okular and Evince. I
don't know how to get only the first part, though.

Best regards,
Florent

Le mar. 24 sept. 2024 à 17:20, Shiv Shankar Dayal <
shivshankar.dayal@gmail.com> a écrit :

> > Did you try a different PDF viewer? The display of the PDF outline
> > probably depends on the viewer.
>
> I used Evince and Okular(I am on Linux) and both work for LaTeX
> generated pdfs.
>
> > Maybe try
> > \enabledirectives[references.bookmarks.preroll]
> > or
> > \setupheads[expansion=yes]
>
> Tried both but they do not work.
>
> --
> Respect,
> Shiv Shankar Dayal
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki     : https://wiki.contextgarden.net
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 2703 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2024-09-24 18:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-24 12:05 [NTG-context] " Shiv Shankar Dayal
2024-09-24 14:02 ` [NTG-context] " Henning Hraban Ramm
2024-09-24 14:14   ` Shiv Shankar Dayal
2024-09-24 14:24     ` Henning Hraban Ramm
2024-09-24 16:19       ` Shiv Shankar Dayal
2024-09-24 18:50         ` Florent Michel [this message]
2024-09-24 22:17           ` Florent Michel
2024-09-25 11:58             ` Shiv Shankar Dayal
2024-09-25 18:04               ` Florent Michel
2024-09-25 18:11             ` Wolfgang Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CALOhoeJVxfRUPrY-yfJP=RQWrjDAbnOtzXa=UD6ZSzwBkUNBCA@mail.gmail.com' \
    --to=florent.m42@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).