9 Oct
2014
9 Oct
'14
6:24 p.m.
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