Hans Hagen schrieb am 20.11.2020 um 20:10:
On 11/20/2020 3:42 PM, Wolfgang Schuster wrote:
Hi,
combined lists with title are broken because they use the wrong function.
\permanent\tolerant\protected\def\definecombinedlist[#tag]#spacer[#list]#spacer[#settings]%
{\definelist[#tag][\c!criterium=\v!local,\c!reference=,\c!alternative=,\c!list={#list},#settings]% inherits from root \frozen\instance\setvalue{\e!setup#tag\e!endsetup}{\setupcombinedlist[#tag]}%
\frozen\instance\setvalue{\e!place#tag}{\placecombinedlist[#tag]}% - \frozen\instance\setvalue{\e!complete#tag}{\strc_lists_complete[#tag]}} + \frozen\instance\setvalue{\e!complete#tag}{\strc_lists_combined_complete[#tag]}}
% \completecombinedlist ?
+\permanent\tolerant\def\strc_lists_combined_complete[#tag]#spacer[#settings]%
+ {\normalexpanded{\startnamedsection[\v!title][\c!title={\headtext{#tag}},\c!reference=#tag]}%
+ \placecombinedlist[#tag][#settings]% + \stopnamedsection}
or two times [#tag]:
\frozen\instance\setvalue{\e!complete#tag}{\strc_lists_complete[#tag][#tag]}}
This doesn't work for *combined* lists because you pass the name of the list (e.g. content) but not the entries. Wolfgang