MkIV and LMTX difference in comma list expansion
Hello list, Another difference, perhaps the result of my lack of knowledge, but a difference. The following example produces different results for the fourth sequence, with the index being passed one item under MkIV and two items under LMTX. (The code is stripped out of a much more complex bit to show the issue.) % macros=mkvi \starttexdefinition unexpanded startBlockQuotation \dosingleempty\dostartBlockQuotation \stoptexdefinition \starttexdefinition dostartBlockQuotation [#SETUPS] \getrawparameters[BlockQuotation] [index=,#SETUPS] \expandafter\processcommalist \expandafter[\BlockQuotationindex]\doIndexIt{} \stoptexdefinition \starttexdefinition stopBlockQuotation \stoptexdefinition \starttexdefinition doIndexIt #INDEXTERM indexer sees #INDEXTERM\ \index{#INDEXTERM} \stoptexdefinition \starttext \startBlockQuotation[index=aaa] \startparagraph 1 \quad when indexing aaa. \stopparagraph \stopBlockQuotation \startBlockQuotation[index={aab}] \startparagraph 2 \quad when indexing \{aab\}. \stopparagraph \stopBlockQuotation \startBlockQuotation[index={aac, aad}] \startparagraph 3 \quad when indexing \{aac, aad\}. \stopparagraph \stopBlockQuotation \startBlockQuotation[index={{aae, aaf}}] \startparagraph 4 \quad when indexing \{\{aae, aaf\}\}. \stopparagraph \stopBlockQuotation \startBlockQuotation[index={{{aag, aah}}}] \startparagraph 5 \quad when indexing \{\{\{aag, aah\}\}\}. \stopparagraph \stopBlockQuotation \startBlockQuotation[index={{aai, aaj},{aak, aal}}] \startparagraph 6 \quad when indexing \{\{aai, aaj\},\{aak, aal\}\}. \stopparagraph \stopBlockQuotation \startBlockQuotation[index={{{aam, aan}},{{aao, aap}}}] \startparagraph 7 \quad when indexing \{\{\{aam, aan\}\},\{\{aao, aap\}\}\}. \stopparagraph \stopBlockQuotation \placeindex \stoptext Did I misuse the comma list processing, or is this a bug? -- Rik
Rik Kabel schrieb am 26.10.2020 um 17:34:
Hello list,
Another difference, perhaps the result of my lack of knowledge, but a difference.
The following example produces different results for the fourth sequence, with the index being passed one item under MkIV and two items under LMTX.
(The code is stripped out of a much more complex bit to show the issue.)
[...]
Did I misuse the comma list processing, or is this a bug?
Probably something we missed when the comma list processor was rewritten. In the example below the braces are stripped when there is only a single element (first and second list). \def\CommalistEntry#1{\ruledhbox{\strut#1}} \starttext \dontleavehmode\processcommalist[{aaa}]\CommalistEntry \dontleavehmode\processcommalist[{aaa,bbb}]\CommalistEntry \dontleavehmode\processcommalist[{ccc,ddd},{eee,fff}]\CommalistEntry \stoptext Wolfgang
participants (2)
-
Rik Kabel
-
Wolfgang Schuster