* [NTG-context] Re: Bookmark hierarchy
[not found] ` <002401dbecdc$387f51f0$a97df5d0$@mailbox.org>
@ 2025-07-04 13:41 ` John Was
0 siblings, 0 replies; 2+ messages in thread
From: John Was @ 2025-07-04 13:41 UTC (permalink / raw)
To: denismaier; +Cc: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 6799 bytes --]
Dear Denis
Yes, of course - I've been oscillating between no, off, and 0 during
various experimental versions (not just of header setups) and clearly ended
up somewhat confused. It doesn't take much these days...
Best wishes
John *🇪🇺 * Слава Україні!
* 🇺🇦*
Virus-free.www.avg.com
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#m_4165723915530212425_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Fri, 4 Jul 2025 at 13:07, <denismaier@mailbox.org> wrote:
> Sure it does. But using number=off seems to cause some trouble.
>
>
>
> The other thing is: If you don’t want to place the part title manually,
> you can actually show the part title with \setuphead[part][placehead=yes]
>
>
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
>
>
> \setupinteraction
>
> [state=start]
>
> \setupinteractionscreen
>
> [option=bookmark]
>
> \placebookmarks[part,chapter,section]
>
>
>
> \setuphead[part][number=no]
>
> \starttext
>
>
>
> \part[title=Introduction,bookmark=Introduction,number=off] % number=off
> does not work
>
> INTRODUCTION
>
>
>
> \part[title=PART II,bookmark=Part II,number=no] % number=no works
>
> PART II
>
>
>
> \part[title=PART III,bookmark=Part III] % number=no from setuphead works
> as well
>
> PART III
>
> \stoptext
>
>
>
>
>
>
>
> *Von:* John Was <johnoxuk@gmail.com>
> *Gesendet:* Freitag, 4. Juli 2025 13:56
> *An:* mailing list for ConTeXt users <ntg-context@ntg.nl>
> *Cc:* denismaier@mailbox.org
> *Betreff:* Re: [NTG-context] Re: Bookmark hierarchy
>
>
>
> Dear Denis
>
>
>
> Thanks. The [number=no] option doesn't seem to work but I'll look into
> \startpart... \stoppart, which aren't in the (obviously outdated) reference
> manual that I was consulting.
>
>
> Best wishes
>
>
>
> John *🇪🇺 * Слава Україні! *🇺🇦*
>
>
>
>
>
>
> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>
> Virus-free.www.avg.com
> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>
>
>
> On Fri, 4 Jul 2025 at 12:20, Denis Maier via ntg-context <
> ntg-context@ntg.nl> wrote:
>
> Also, \startpart is listed on this page:
> https://wiki.contextgarden.net/Command/_startsection
>
>
>
> *Von:* denismaier@mailbox.org <denismaier@mailbox.org>
> *Gesendet:* Freitag, 4. Juli 2025 13:12
> *An:* 'mailing list for ConTeXt users' <ntg-context@ntg.nl>
> *Betreff:* AW: [NTG-context] Bookmark hierarchy
>
>
>
> Have you tried \setuphead[part][number=no]?
>
>
>
> *Von:* John Was <johnoxuk@gmail.com>
> *Gesendet:* Freitag, 4. Juli 2025 13:00
> *An:* mailing list for ConTeXt users <ntg-context@ntg.nl>
> *Betreff:* [NTG-context] Bookmark hierarchy
>
>
>
> Hello.
>
>
>
> I'm still in the newbie category with ConTeXt, and am getting to grips
> with bookmarking of PDFs for the first time ever. The following example
> gives the correct hierarchy of subordinated bookmarks - part, chapter, and
> section, each progressively indented in the bookmark column at the left.
> However, I don't want the parts to have numbers at all, and I want the
> chapters to be numbered 1, 2, etc. (not 1.1, 1.2, etc.). If I ever go live
> with ConTeXt, the sections won't have any numbers at all (and I can see how
> to set this up), but in this default example I would like them also to
> shift up one decimal place: 1.1., not 1.1.1, and so on. I'm guessing
> there's an option in \part that I should be invoking, but I don't
> immediately see what that is (there doesn't seem to be a
> \startpart...\stoppart to allow the relatively straightforward
> customization that we get with chapters and sections). Here is the example:
>
>
>
> \setupinteraction
>
> [state=start]
>
>
>
> \setupinteractionscreen
>
> [option=bookmark]
>
>
>
> \placebookmarks[part,chapter,section]
>
>
>
> \starttext
>
> \part[title=Introduction,bookmark=Introduction,number=off]
>
> \noheaderandfooterlines
>
> INTRODUCTION
>
> \page
>
> \noheaderandfooterlines
>
> \page[odd]
>
> \startchapter[title=First Chapter]
>
> \noheaderandfooterlines
>
> \input tufte
>
> \startsection[title=First section]
>
> \input knuth
>
> \stopsection
>
> \startsection[title=Second section]
>
> \input zapf
>
> \stopsection
>
> \stopchapter
>
> \page[odd]
>
> \startchapter[title=Second Chapter]
>
> \noheaderandfooterlines
>
> \input tufte
>
> \startsection[title=First section]
>
> \input knuth
>
> \stopsection
>
> \startsection[title=Second section]
>
> \input zapf
>
> \stopsection
>
> \stopchapter
>
> \page[odd]
>
> \part[title=PART II,bookmark=Part II,number=off]
>
> PART II
>
> \noheaderandfooterlines
>
> \page
>
> \noheaderandfooterlines
>
> \page[odd]
>
> \startchapter[title=Third Chapter]
>
> \noheaderandfooterlines
>
> \input tufte
>
> \startsection[title=First section]
>
> \input knuth
>
> \stopsection
>
> \startsection[title=Second section]
>
> \input zapf
>
> \stopsection
>
> \stopchapter
>
> \page[odd]
>
> \startchapter[title=Fourth Chapter]
>
> \noheaderandfooterlines
>
> \input tufte
>
> \startsection[title=First section]
>
> \input knuth
>
> \stopsection
>
> \startsection[title=Second section]
>
> \input zapf
>
> \stopsection
>
> \stopchapter
>
> \stoptext
>
>
>
>
>
>
> Best wishes
>
>
>
> John *🇪🇺 * Слава Україні! *🇺🇦*
>
>
>
>
>
>
> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>
> Virus-free.www.avg.com
> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>
>
>
>
> ___________________________________________________________________________________
> 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: 26504 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* [NTG-context] Re: Bookmark hierarchy
[not found] <CAE0RQymn2N2OiX7iLjB3tKGD8jtop0xXypnDYOUqrtkDo+8W0w@mail.gmail.com>
[not found] ` <00a901dbecd4$9c6f3fc0$d54dbf40$@mailbox.org>
@ 2025-07-04 16:33 ` Wolfgang Schuster
1 sibling, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2025-07-04 16:33 UTC (permalink / raw)
To: ntg-context
Am 04.07.2025 um 13:00 schrieb John Was:
> Hello.
>
> I'm still in the newbie category with ConTeXt, and am getting to grips
> with bookmarking of PDFs for the first time ever. The following example
> gives the correct hierarchy of subordinated bookmarks - part, chapter,
> and section, each progressively indented in the bookmark column at the
> left. However, I don't want the parts to have numbers at all, and I
> want the chapters to be numbered 1, 2, etc. (not 1.1, 1.2, etc.). If I
> ever go live with ConTeXt, the sections won't have any numbers at all
> (and I can see how to set this up), but in this default example I would
> like them also to shift up one decimal place: 1.1., not 1.1.1, and so
> on. I'm guessing there's an option in \part that I should be invoking,
> but I don't immediately see what that is (there doesn't seem to be a
> \startpart...\stoppart to allow the relatively straightforward
> customization that we get with chapters and sections). Here is the example:
1. Numbering
You can set the number range of a heading with the sectionsegments key.
%%%% begin example
\setuphead [part] [placehead=yes]
\setuphead [chapter] [sectionsegments=chapter]
\setuphead [section] [sectionsegments=chapter:section]
\starttext
\part{This is a \tex{part}}
\chapter{This is a \tex{chapter}}
\section{This is a \tex{section}}
\stoptext
%%%% end example
2. Header and footer
You can disable headers and footers on chapter etc. page with the header
and footer keys.
%%%% begin example
\setuphead [chapter] [header=empty]
\starttext
\chapter{This is a \tex{chapter}}
\stoptext
%%%% end example
3. Page break
You can control whether chapters etc. start on an odd, even etc. page
with the page key.
%%%% begin example
\setuphead [chapter] [page=odd]
\starttext
\dorecurse{2}{\chapter{Chapter \convertnumber{word}{#1}}}
\stoptext
%%%% end example
PS. Keep your examples minimal and focus on the problem.
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-07-04 16:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CAE0RQymn2N2OiX7iLjB3tKGD8jtop0xXypnDYOUqrtkDo+8W0w@mail.gmail.com>
[not found] ` <00a901dbecd4$9c6f3fc0$d54dbf40$@mailbox.org>
[not found] ` <CAE0RQynsK_S3QXteVSpDDj1UVweiZEOGNkECmfiDOd3_--G+7Q@mail.gmail.com>
[not found] ` <002401dbecdc$387f51f0$a97df5d0$@mailbox.org>
2025-07-04 13:41 ` [NTG-context] Re: Bookmark hierarchy John Was
2025-07-04 16:33 ` Wolfgang Schuster
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).