PDF Bookmarks on unnumbered subjects/titles etc
Has anyone managed to get ConTeXt to generate PDF bookmarks for the unnumbered headings such as \title, \subject, etc? I saw the examples on the wiki page but unfortunately they did nothing. http://wiki.contextgarden.net/PDF_Bookmarks_and_Headers \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. Even explicitly placing bookmarks with \bookmark doesn't work: \setupinteraction[state=start] \placebookmarks[chapter] % didn't add subject here as the wiki % says it doesn't work, and it's correct \setupinteractionscreen[option=bookmark] \starttext \subject{some chapter} \bookmark{a title} some text \stoptext The wiki page also has this: \definehead[Title][Chapter] \setuphead[Title][number=no] But that doesn't make the slightest difference. Anybody got any ideas how to get this to work? I'm using: pdfeTeX 3.141592-1.21a-2.2 (Web2C 7.5.4) TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4) context : ver: 2005.01.31 cont-en : ver: 2005.01.31 fmt: 2007.5.21 mes: english Apologies if my replies to this list are apparently nonexistent. So far it seems as if most of them have bounced with a strange "unrouteable address" error. -- mir_ctx@imap.cc -- http://www.fastmail.fm - One of many happy users: http://www.fastmail.fm/docs/quotes.html
2007/12/11, mir_ctx@imap.cc
Has anyone managed to get ConTeXt to generate PDF bookmarks for the unnumbered headings such as \title, \subject, etc?
I saw the examples on the wiki page but unfortunately they did nothing.
http://wiki.contextgarden.net/PDF_Bookmarks_and_Headers
\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. Even explicitly placing bookmarks with \bookmark doesn't work:
\setupinteraction[state=start] \placebookmarks[chapter] % didn't add subject here as the wiki % says it doesn't work, and it's correct \setupinteractionscreen[option=bookmark] \starttext \subject{some chapter} \bookmark{a title} some text \stoptext
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
The wiki page also has this:
\definehead[Title][Chapter] \setuphead[Title][number=no]
But that doesn't make the slightest difference.
Anybody got any ideas how to get this to work? I'm using:
pdfeTeX 3.141592-1.21a-2.2 (Web2C 7.5.4) TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4) context : ver: 2005.01.31 cont-en : ver: 2005.01.31 fmt: 2007.5.21 mes: english
You ConTeXt is ancient and you should update to the current version.
Apologies if my replies to this list are apparently nonexistent. So far it seems as if most of them have bounced with a strange "unrouteable address" error.
Wolfgang
participants (2)
-
mir_ctx@imap.cc
-
Wolfgang Schuster