Re: [NTG-context] PDF Bookmarks on unnumbered subjects/titles etc
Dear Wolfgang, 3 years ago, you wrote:
[...] \setupinteraction[state=start] \placebookmarks[chapter] \setupinteractionscreen[option=bookmark] \starttext \chapter{some chapter} \bookmark{a title} some text \stoptext
The above example correctly generates bookmarks in the PDF.
I can't, however, get the same thing to work when using \subject. [...]
You can to play with the following code, I don't know why it produce multiple bookmark entries and even more with text between the headers but it's funny.
\setupinteraction[state=start] \def\sectionbookmark#1{\bookmark[section]{#1}#1} \def\subjectbookmark#1{\bookmark[subject]{#1}#1} \setuphead[section][deeptextcommand=\sectionbookmark] \setuphead[subject][deeptextcommand=\subjectbookmark] \placebookmarks[chapter,section,subject] \setupinteractionscreen[option=bookmark] \starttext \chapter{Chapter} \section{Section} \subject{Subject} \section{Another section} \chapter{Second Chapter} text \section{First section in second chapter} text \subject{Another Subject} text \section{Last section} text \stoptext
This minimal example gives me an error. Are there other/better means to achieve the same thing today? Best, Florian
participants (1)
-
Florian Wobbe