ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Custom list layout with PDF bookmarks
@ 2020-05-15 22:47 Bruce Horrocks
  2020-05-16  6:15 ` Henning Hraban Ramm
  2020-05-16  6:30 ` Wolfgang Schuster
  0 siblings, 2 replies; 9+ messages in thread
From: Bruce Horrocks @ 2020-05-15 22:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

When I customise the table of contents layout I lose the automatic hyperlinks. Is there a simple configuration option that I have missed or do I need to create my own links somehow?

Example:

\setupinteraction[state=start]
\setupinteractionscreen[option=bookmark] 

\define[3]\SectionListEntry
  {\par \leftaligned\bgroup
     \hbox to 2em{#3}%
         \hskip   1em
         \vtop{\hsize\dimexpr\textwidth-3em\relax#2}
  \egroup \par}

% Comment out this next line to regain section hyperlinks in the ToC
\setuplist[section][alternative=command,command=\SectionListEntry]

\starttext
Table of Contents
\placecontent[criterium=all]
\placebookmarks[chapter,subject]

\chapter{Tufte}
\section{Section 1}
\input tufte
\page
\section{Section 2}
\input tufte
\page
\section{Section 3}
\input tufte
\page
\stoptext


Thanks in advance.
--
Bruce Horrocks
Hampshire, UK

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-05-17 19:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-15 22:47 Custom list layout with PDF bookmarks Bruce Horrocks
2020-05-16  6:15 ` Henning Hraban Ramm
2020-05-16  6:30 ` Wolfgang Schuster
2020-05-16 11:02   ` Henning Hraban Ramm
2020-05-17 11:38     ` Bruce Horrocks
2020-05-17 19:40       ` Henning Hraban Ramm
2020-05-17 11:47     ` Problem with \vfill in extreme table Bruce Horrocks
2020-05-17 15:00       ` Wolfgang Schuster
2020-05-17 19:56         ` Hans Hagen

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).