{xtemplate} is a high-level interface for declaring document commands, written for the LaTeX3 project. The package provides a mechanism for defining templates, which are parameterised definitions of aspects of document design. Templates are the tool through which document designers can select the features of their document.
Questions tagged [xtemplate]
17 questions
10
votes
1 answer
What's the difference between object, template interface, and template code arguments in xtemplate?
From @cgnieder's very helpful xtemplate article:
Basically there are four commands that are important for the
definition of the structures:
\DeclareObjectType
{⟨object⟩}
{⟨number of args⟩}
\DeclareTemplateInterface
{⟨object⟩}
…
Sean Allred
- 27,421
5
votes
0 answers
xtemplate proposes 'objects,' but are they really objects? How can they be extended to become 'true' objects?
In chat, @cgnieder just pointed me to xtemplate after poking around my own startup ltx3obj.
In section 3, the documentation states (at the time of writing):
An object type (sometimes just "object") is an abstract idea of a document element that…
Sean Allred
- 27,421
2
votes
0 answers
Repeated instance names in xtemplate objects
It appears to be the case that instance names for an object in xtemplate need to be unique, even if these instances are created from different templates. Is this is intended behavior or a bug? I suspect the former, but I couldn't find this issue…
Karl Hagen
- 1,540