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.

Filter by
Sorted by
Tagged with
2
votes
0answers
26 views

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 ...
3
votes
0answers
107 views

Software Architecture and xtemplate

When writing a package, there may be the situation that several things need to interact to make a complete product. When using xtemplate, I can define each part as an object. This means that the ...
4
votes
1answer
80 views

Making Environments Using xtemplate

The examples for xtemplate show how to make document commands, but I haven’t seen anything involving environments. If I were to define an environment using xtemplate, what would the best approach be? ...
5
votes
1answer
1k views

Acro package provides “! Missing number, treated as zero.” after update to acro-v2.7b

I ran an update on texlive 2017 (via tlmgr) and I got an error for the acro package that I have not experienced before. I have provided a MWE: \documentclass{article} \usepackage{acro} \...
2
votes
1answer
178 views

How to patch result of \DeclareTemplateCode (for custom acro list style)

In trying to create a custom acro list style with a longtable and repeating heading, I started working my way through some LaTeX3 code more than I have in the past. I am used to patching with ...
7
votes
1answer
362 views

How should I create complex objects using xtemplate?

Consider the following trivial example: \documentclass{article} \usepackage{xtemplate} \ExplSyntaxOn \DeclareObjectType { test } { 10 } \ExplSyntaxOff \begin{document} oh, nose! \end{document} ...
9
votes
1answer
243 views

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⟩...
2
votes
1answer
485 views

LaTeX template for 3 ring binder tabs

I have a three ring binder and it has eight page dividers. On each page divider is a clear slot to enter a tab for the name of the subject. The tabs are 0.5 inches by 1.5 inches. Is there a way to ...
8
votes
1answer
203 views

What's so bad about xtemplate collections?

The xtemplate documentation describes (briefly and a little unhelpfully) the concept of 'collections' in xtemplate. It goes on to say, However, while the idea of switchable instances is a useful ...
5
votes
0answers
83 views

xtemplate proposes 'objects,' but are they really objects? How can they be extended to become 'true' objects? [closed]

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") ...
40
votes
4answers
2k views

Using LaTeX3’s xtemplate

Relevant are the answers to Moving to LaTeX3 for package authors and What new bits have already been implemented in LaTeX3? Will my current documents (with many packages) still compile with LaTeX3? ...