[NTG-context] Error with alternative (interactive) TOC

Thangalin thangalin at gmail.com
Thu Oct 9 20:24:36 CEST 2014


Hi,

How do you make a custom TOC entry that links to the correct page?

In the following example, the last TOC item is not hyperlinked, and
all the section hyperlinks are incorrect (off by one). Note that the
chapters and sections are separate pages.

\setupinteraction[state=start,]
\setuphead[chapter,section][page=yes,continue=no,]

\define[3]\SectionTOC{#3 #2}

% Using alternative causes the cross-reference to be off-by-one.
\setuplist[section][
  alternative=interactive,
  command=\SectionTOC,
]

\starttext
  \placecontent

  \startchapter[title=Chapter]
    \dorecurse{4}{
      \startsection[title=Section]
        Level \recurselevel.
      \stopsection
    }
  \stopchapter
\stoptext


More information about the ntg-context mailing list