diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex3/template/template-test.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex3/template/template-test.tex | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex3/template/template-test.tex b/Master/texmf-dist/doc/latex3/template/template-test.tex new file mode 100644 index 00000000000..6a234e1010d --- /dev/null +++ b/Master/texmf-dist/doc/latex3/template/template-test.tex @@ -0,0 +1,39 @@ +\RequirePackage{template} + +\DeclareTemplateType{xxx}{0} + +\DeclareTemplate{xxx}{test}{0} + { + xkey=n \xkey, + key =i {yyy} \value + } + { + \DoParameterAssignments + \show\xkey + \show\value + \value + } + +\DeclareTemplateType{yyy}{0} + +\DeclareTemplate{yyy}{foo}{0} + { + keya =L \foo + } + { + \DoParameterAssignments + \show\foo + } + + +\DeclareInstance{xxx}{bar}{test} + { + xkey = \UseTemplate{yyy}{foo}{ keya = 20pt }, + key = \UseTemplate{yyy}{foo}{ keya = 10pt } + } + +\ShowInstance{xxx}{bar} + +\UseInstance{xxx}{bar} + +\stop |