Re: [NTG-context] Custom list layout with PDF bookmarks
> Am 17.05.2020 um 13:38 schrieb Bruce Horrocks : > > >> On 16 May 2020, at 12:02, Henning Hraban Ramm wrote: >> >>> >>> Am 16.05.2020 um 08:30 schrieb Wolfgang Schuster >>> : >>> >>> Bruce Horrocks schrieb am 16.05.2020 um 00:47: 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? > [snip] >>> alternative=command : Cutsom TOC without hyperlinks >>> >>> alternative=interactive : Custom TOC with hyperlinks >> >> Thank you! Wikified: https://wiki.contextgarden.net/Command/setuplist > > Thank-you Wolfgang for the quick reply and also Hraban for beating me to it > on the Wiki - I was going to (honest!) I was interested in the subject anyway and used the opportunity to add a section about list alternatives to my ConTeXt book (now at 260 pages, and still no end in sight). Best, Hraban ___ 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 ___
Re: [NTG-context] Custom list layout with PDF bookmarks
> On 16 May 2020, at 12:02, Henning Hraban Ramm wrote: > >> >> Am 16.05.2020 um 08:30 schrieb Wolfgang Schuster >> : >> >> Bruce Horrocks schrieb am 16.05.2020 um 00:47: >>> 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? [snip] >> alternative=command : Cutsom TOC without hyperlinks >> >> alternative=interactive : Custom TOC with hyperlinks > > Thank you! Wikified: https://wiki.contextgarden.net/Command/setuplist Thank-you Wolfgang for the quick reply and also Hraban for beating me to it on the Wiki - I was going to (honest!) -- 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 ___
Re: [NTG-context] Custom list layout with PDF bookmarks
> Am 16.05.2020 um 08:30 schrieb Wolfgang Schuster > : > > Bruce Horrocks schrieb am 16.05.2020 um 00:47: >> 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] > > alternative=command : Cutsom TOC without hyperlinks > > alternative=interactive : Custom TOC with hyperlinks Thank you! Wikified: https://wiki.contextgarden.net/Command/setuplist Hraban ___ 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 ___
Re: [NTG-context] Custom list layout with PDF bookmarks
Bruce Horrocks schrieb am 16.05.2020 um 00:47: 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] alternative=command : Cutsom TOC without hyperlinks alternative=interactive : Custom TOC with hyperlinks begin example \define[3]\SectionListEntry {\hbox\bgroup \hbox to 2em{#1}% \hfill \vtop{\hsize\dimexpr\textwidth-3em\relax#2}% \egroup} \setuplist [section] [alternative=interactive, command=\SectionListEntry, before=\endgraf, after=\endgraf] end example 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Custom list layout with PDF bookmarks
> Am 16.05.2020 um 00:47 schrieb Bruce Horrocks : > > 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] Should be \placebookmarks[chapter,section]. Move it in front of \starttext. But that still doesn’t set chapter bookmarks - strange. Hraban ___ 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 ___
[NTG-context] Custom list layout with PDF bookmarks
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 ___