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} Wolfgang
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]}} ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
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
participants (2)
-
Hans Hagen
-
Wolfgang Schuster