Re: [NTG-context] PDF Bookmarks on unnumbered subjects/titles etc

2011-01-09 Thread Florian Wobbe
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

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] PDF Bookmarks on unnumbered subjects/titles etc

2007-12-12 Thread Wolfgang Schuster
2007/12/11, [EMAIL PROTECTED] [EMAIL PROTECTED]:
 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
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] PDF Bookmarks on unnumbered subjects/titles etc

2007-12-11 Thread mir_ctx
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.
-- 
  
  [EMAIL PROTECTED]

-- 
http://www.fastmail.fm - One of many happy users:
  http://www.fastmail.fm/docs/quotes.html

___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___