ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan BRASLAU <alan.braslau@cea.fr>
To: "Michał Goliński" <golinski@amu.edu.pl>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Structure of titles in MkIV
Date: Sun, 19 Oct 2014 17:03:49 +0200	[thread overview]
Message-ID: <20141019170349.7e0adc30@iram-ha-003587.extra.cea.fr> (raw)
In-Reply-To: <66853e535fc7f809fbf1c6a560a32550@amu.edu.pl>

The following seems to work well for me.

Unfortunately, I do not remember what references.bookmarks.preroll
accomplishes but searching the sources (and the mailing list archives)
should help answer this question...

%
% make chapter bookmarks visible when opening document
%
\setupinteraction[state=start,option=bookmark,contrastcolor=interactioncolor]
\setupinteractionscreen[option=bookmark]
\placebookmarks[part,chapter,title,section,subject,subsection][part,chapter,title]
\enabledirectives[references.bookmarks.preroll]


I must point-out that whereas adobe reader handles bookmarks, many
other pdf viewers do not.

Alan




On Sat, 18 Oct 2014 13:57:23 +0200
Michał Goliński <golinski@amu.edu.pl> wrote:

> Thank you very much for the example. Indeed, now the structure of the 
> table of contents looks OK. Unfortunately, it breaks the PDF
> bookmarks (which was initially my main concern). For this file (based
> on your MWE), I get only Prologue in the bookmarks, although the
> links in the table of contents work perfectly:
> 
> \setupinteraction[state=start]
> \placebookmarks[part,chapter][part,chapter][number=no]
> 
> \starttext
> \placecontent
> 
> \startfrontmatter
>   \startchapter[title=Prologue]
>   \input knuth
>   \stopchapter
> \stopfrontmatter
> 
> \startpart[title={Part A}]
>   \startchapter[title=One]
>   \input knuth
>   \stopchapter
> \stoppart
> 
> \startbackmatter
>   \startchapter[title=Epilogue]
>   \input knuth
>   \stopchapter
> \stopbackmatter
> 
> \stoptext
> 
> 
> Regards
> Michał
> 
> W dniu 2014-10-15 14:25, Keith Schultz napisał(a):
> > 
> > Below I have a MWE to show the FLAW.
> > 
> > MWE:
> > 
> > \starttext
> > \placecontent
> > 
> >  %\startfrontmatter  % uncomment line to show what you would expect
> > 
> > 
> > \startchapter[title=Prologue]
> > \input knuth
> > \stopchapter
> > 
> > %\stopfrontmatter % uncomment line to show what you would expect
> > 
> > \startpart[title={Part A}]
> >  \startchapter[title=One]
> >  \input knuth
> >  \stopchapter
> > \stoppart
> > 
> > % FLAW: sectioned under Part A should expect sectioning  level 1
> > % or throw error that part needed here!
> > \startchapter[title={not at top level}]
> > \input knuth
> > \stopchapter
> > 
> > \startpart[title={Part B}]
> >  \startchapter[title=One]
> >  \input knuth
> >  \stopchapter
> > \stoppart
> > 
> > % \startbackmatter  % uncomment line to show what you would expect
> > 
> > 
> > % FLAW:  sectioned under Part B should expect sectioning  level 1
> > % or throw error that part needed here!
> > \startchapter[title=Epilogue]
> > \input knuth
> > \stopchapter
> > 
> > 
> > %\stopbackmatter % uncomment line to show what you would expect
> > 
> > \stoptext
> > 
> > regards
> > 	Keith.
___________________________________________________________________________________
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
___________________________________________________________________________________

      reply	other threads:[~2014-10-19 15:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-14 11:49 Michał Goliński
2014-10-15  7:42 ` Alan BRASLAU
2014-10-15  7:45   ` Alan BRASLAU
2014-10-15 12:25   ` Keith Schultz
2014-10-15 14:10     ` Alan BRASLAU
2014-10-16  9:32       ` Keith J. Schultz
2014-10-16 11:25         ` Hans Hagen
2014-10-16 13:34           ` Keith Schultz
2014-10-17  9:13         ` Alan BRASLAU
2014-10-18 11:57     ` Michał Goliński
2014-10-19 15:03       ` Alan BRASLAU [this message]

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=20141019170349.7e0adc30@iram-ha-003587.extra.cea.fr \
    --to=alan.braslau@cea.fr \
    --cc=golinski@amu.edu.pl \
    --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).