[dev-context] strc-lst.mkvi
Wolfgang Schuster
schuster.wolfgang at googlemail.com
Tue Mar 27 21:42:57 CEST 2012
Hi Hans,
can you make the change below to permit back references from the heading to the list entry.
\startsetups[\??listrenderings:generic]
\listparameter\c!before % can be \hskip
\edef\p_command{\listalternativeparameter\c!command}
\ifx\p_command\empty
\listalternativeparameter\c!before
\vbox {
\forgetall
\hbox \strc_lists_get_reference_attribute\v!all {
\ifconditional\c_lists_show_number
% \ifconditional\c_lists_has_page
\hbox \strc_lists_get_reference_attribute\v!number {
\strc_lists_set_style_color\c!numberstyle\c!numbercolor\v!number
\listparameter\c!numbercommand\currentlistsymbol
}
% \fi
\fi
\hbox \strc_lists_get_reference_attribute\v!text {
\strc_lists_set_style_color\c!textstyle\c!textcolor\v!text
\the\t_lists_every_renderingtext
\listparameter\c!textcommand\currentlistentrytitle
}
\ifconditional\c_lists_show_page
\ifconditional\c_lists_has_page
\hbox \strc_lists_get_reference_attribute\v!pagenumber {
\strc_lists_set_style_color\c!pagestyle\c!pagecolor\v!pagenumber
\listparameter\c!pagecommand\currentlistentrypagenumber
}
\fi
\fi
}
}
\listalternativeparameter\c!after
\else
- \hbox \strc_lists_get_reference_attribute\v!all {
+ \hbox \strc_lists_get_reference_attribute\v!all \strc_lists_get_destination_attribute {
\p_command\currentlistentrynumber\currentlistentrytitle\currentlistentrypagenumber
}
\fi
\listparameter\c!after
\stopsetups
Wolfgang
More information about the dev-context
mailing list