[latex3-commits] [latex3/latex2e] develop: Add commalist test for #1523 (ba432b383)
github at latex-project.org
github at latex-project.org
Mon Nov 4 15:50:09 CET 2024
Repository : https://github.com/latex3/latex2e
On branch : develop
Link : https://github.com/latex3/latex2e/commit/ba432b38365dc6e4d6d67c035b01ba3be5bb39e6
>---------------------------------------------------------------
commit ba432b38365dc6e4d6d67c035b01ba3be5bb39e6
Author: Yukai Chou <muzimuzhi at gmail.com>
Date: Mon Nov 4 22:05:21 2024 +0800
Add commalist test for #1523
>---------------------------------------------------------------
ba432b38365dc6e4d6d67c035b01ba3be5bb39e6
base/testfiles-lttemplates/lttemplates005.lvt | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/base/testfiles-lttemplates/lttemplates005.lvt b/base/testfiles-lttemplates/lttemplates005.lvt
index 88c0e2522..40201f2fc 100644
--- a/base/testfiles-lttemplates/lttemplates005.lvt
+++ b/base/testfiles-lttemplates/lttemplates005.lvt
@@ -101,6 +101,7 @@
\OMIT
+ \clist_new:N \clistcode
\dim_new:N \dimcode
\fp_new:N \fpcode
\int_new:N \intcode
@@ -109,6 +110,8 @@
\tl_new:N \tlcode
\DeclareTemplateInterface { test } { std4 } { 0 }
{
+ clist.code : commalist ,
+ code.clist : commalist = \KeyValue { clist.code } ,
dim.code : length ,
code.dim : length = \KeyValue { dim.code } ,
fp.code : real ,
@@ -124,6 +127,8 @@
}
\DeclareTemplateCode { test } { std4 } { 0 }
{
+ clist.code = \clistcode ,
+ code.clist = \clistcode ,
dim.code = \dimcode ,
code.dim = \dimcode ,
fp.code = \fpcode ,
@@ -139,6 +144,7 @@
}
{
\AssignTemplateKeys
+ ( \clist_use:Nn \clistcode { , } )
( \dimeval { \dimcode } )
( \fpeval { \fpcode } )
( \inteval { \intcode } )
@@ -153,6 +159,7 @@
{
\DeclareInstance{ test } { i1 } { std4 }
{
+ clist.code = { a , b , c } ,
dim.code = 1pt ,
fp.code = 1 ,
int.code = 1 ,
@@ -162,6 +169,7 @@
}
\DeclareInstance{ test } { i2 } { std4 }
{
+ code.clist = { a , b , c } ,
code.dim = 1pt ,
code.fp = 1 ,
code.int = 1 ,
More information about the latex3-commits
mailing list.