At 04:42 PM 3/18/2002 -0500, you wrote:
>In pdftex and eplain I can create a clickable TOC entry with
>some macros like:
>
>\countdef\linkno=29
>\linkno=0
>...and
>
>\def\tocsubsubsectionentry#1#2#3{\line{\rm%
>\pdfannotlink
>attr{/C [1 1 1] /Border [0 0 0]}
>goto num #2\Blue #1\pdfendlink
>\Black \dotfill\ #3}
>}%
>...and
>
>\def\subsubsection#1{\advance\linkno by 1%
>\writenumberedtocentry{subsubsection}{#1}{\the\linkno}
>\mbf #1\rm\hfil\break
>\pdfdest num \the\linkno fit
>}
>...and
>
>\readtocfile
>
>--------------------------
>The TOC entry is blue, and if you click on it you go to
>the page where the subsection exists. \mbf refers to
>a font. The information is passed to the TOC file by the
>eplain \writenumberedtocentry macro and read back in by
>the eplain \readtocfile macro.
>
>I am reasonably certain there is some such mechanism for
>making clickable TOC entries in Context but I can't
>figure out what it is. Can someone offer a working example?

\setupoutput[pdftex]

\setupinteraction[state=start]

\starttext

\placelist[chapter][interaction=all] % or page|text|number

\chapter{Does} \chapter{This} \chapter{Work?}

\stoptext
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                                   fall-back web server: 
www.pragma-ade.nl
-------------------------------------------------------------------------

Reply via email to