Thank you very much!
alternative=interactive
*without* interaction=anything
did the trick.
Everything else needed a lot more adjusting, since the ToC entries are also
\item s (see thread "ToC as itemize" in May/June 2018).
Greetlings, Hraban
---
https://www.fiee.net
\setupinteraction[state=start]
\define[3]\ChapterTocEntry
{\maxaligned{#2\hfill#3}}
\setuplist
[chapter]
[alternative=interactive,
before=\endgraf,
after=\endgraf,
command=\ChapterTocEntry]
\usemodule[visual]
\starttext
\placelist[chapter][criterium=all]
\dorecurse{5}{
Still the same problem:
I can’t get a page link in my custom ToC.
What’s wrong?
- >8 -
\setupinteraction[state=start]
\define[3]\ChapterTocEntry{%
% #1-3 is not used, #1/2 are empty, #3 is page number
\currentlistentrytitle\hfill%
%%% goto doesn’t create a link here:
Am 2018-07-23 um 13:06 schrieb Henning Hraban Ramm :
> Dear wizards,
>
> in a list command (i.e. \setuplist[command=\MyCmd]) I use
> \currentlistentrypagenumber to show the page number.
> Now I’d like to make this a link, like in a normal ToC. I didn’t find a
> suitable command. Is there one?
Dear wizards,
in a list command (i.e. \setuplist[command=\MyCmd]) I use
\currentlistentrypagenumber to show the page number.
Now I’d like to make this a link, like in a normal ToC. I didn’t find a
suitable command. Is there one?
Greetlings, Hraban
---
https://www.fiee.net