summaryrefslogtreecommitdiff
path: root/tex/context/base/strc-lst.mkvi
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2012-03-29 13:20:13 +0300
committerMarius <mariausol@gmail.com>2012-03-29 13:20:13 +0300
commita246cd7e53f32097b4fcdd1d851f85ce07530a17 (patch)
treed581b3973863e232394aa2b606eea53cb948e50e /tex/context/base/strc-lst.mkvi
parente444ff22e3ee1c65be5c878511ac4cdd05b9552a (diff)
downloadcontext-a246cd7e53f32097b4fcdd1d851f85ce07530a17.tar.gz
beta 2012.03.29 11:28
Diffstat (limited to 'tex/context/base/strc-lst.mkvi')
-rw-r--r--tex/context/base/strc-lst.mkvi22
1 files changed, 22 insertions, 0 deletions
diff --git a/tex/context/base/strc-lst.mkvi b/tex/context/base/strc-lst.mkvi
index 17babc2ae..2fdbc7cc9 100644
--- a/tex/context/base/strc-lst.mkvi
+++ b/tex/context/base/strc-lst.mkvi
@@ -26,8 +26,11 @@
\unprotect
+% To be added to mult-def.lua:
+
\ifdefined\c!renderingsetup \else \def\c!renderingsetup{renderingsetup} \fi % maybe not interfaced
\ifdefined\c!filler \else \def\c!filler {filler} \fi
+\ifdefined\v!interactive \else \def\v!interactive {interactive} \fi
%D Lists are mostly used for tables of contents but are in fact a rather generic
%D feature of \CONTEXT. We seperate between storage and rendering and the current
@@ -1129,6 +1132,25 @@
\listparameter\c!inbetween
\stopsetups
+%D This is a new one, similar to vertical and horizontal but better suited when
+%D no command is set (WS):
+
+\definelistalternative
+ [\v!interactive]
+ [\c!renderingsetup=\??listrenderings:interactive]
+
+\startsetups[\??listrenderings:interactive]
+ \edef\p_command{\listalternativeparameter\c!command}%
+ \ifx\p_command\empty
+ [\currentlist: \currentlistentrynumber\space -- \currentlistentrytitle\space -- \currentlistentrypagenumber]%
+ \else
+ \listparameter\c!before
+ \hbox \strc_lists_get_reference_attribute\v!all \strc_lists_get_destination_attribute {
+ \p_command\currentlistentrynumber\currentlistentrytitle\currentlistentrypagenumber
+ }
+ \listparameter\c!after
+ \fi
+\stopsetups
%D List elements are packaged in such a way that we can click on them
%D in an interactive document. Here are a few helpers.