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 <golin...@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 ___________________________________________________________________________________