Questions tagged [xtemplate]

{xtemplate} is a high-level interface for declaring document commands, written for the LaTeX3 project. The pack­age pro­vides a mech­a­nism for defin­ing tem­plates, which are pa­ram­e­terised def­i­ni­tions of as­pects of doc­u­ment de­sign. Tem­plates are the tool through which doc­u­ment de­sign­ers can se­lect the fea­tures of their doc­u­ment.

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