Dear list,
I’m struggling with an alternative list setup:
\showframe
\setupinteraction
[state=start,
style=,
focus=standard]
\enabledirectives[references.border=red]
\definelistalternative
[pmcols] [renderingsetup=pmcol]
\startsetups [pmcol]
\ifnum\modulonumber{3}{\currentlistentrylocation} = 1
\dontleavehmode%
\rlap{\[\currentlistentrynumber\]\nbsp\nbsp\nbsp%
\currentlistentrypagenumber\narrownobreakspace·%
\narrownobreakspace\the\numexpr1+\currentlistentrypagenumber\relax}
\orelse\ifnum\modulonumber{3}{\currentlistentrylocation} = 2
\hfill\[\currentlistentrynumber\]\nbsp\nbsp\nbsp%
\currentlistentrypagenumber\narrownobreakspace·%
\narrownobreakspace\the\numexpr1+\currentlistentrypagenumber\relax
\else
\hfill\llap{\[\currentlistentrynumber\]\nbsp\nbsp\nbsp%
\currentlistentrypagenumber\narrownobreakspace·\narrownobreakspace%
\the\numexpr1+\currentlistentrypagenumber\relax}\crlf
\fi
\stopsetups
\definestructureconversionset[rom][n,R]
\setuphead[title]
[page=yes]
\setuphead[chapter]
[page=even,
sectionconversionset=rom]
\starttext
\placelist [chapter] [alternative=pmcols,
criterium=all, interaction=all]
\dorecurse{100}
{\startchapter
\samplefile{zapf}
\stopchapter}
\stoptext
The sample above works only here, not in my real world document.
The main reason is that \currentlistentrylocation doesn’t give the same
number as \currentlistentrynumber.
Is there any way (considering the sample above, where chapter has to be
in Roman capital numbers) to get the pure number value of
\currentlistentrynumber?
BTW, I wonder also how could I get a link to the corresponding chapter
(as standard lists always have with interaction enabled).
Many thanks for your help,
Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________