Skip to main content

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.

6 votes
1 answer
75 views

in developing a class I have come to use the so called templates documented in lttemplate. It is a expl3-Class therefore I looked at ways to define Template Types, Templates and Instances in expl3 ...
Noiv's user avatar
  • 159
0 votes
1 answer
55 views

I'm trying to emulate l3keys meta-property (.meta:n) in lttemplates. However, the implementation offered by the kernel does not meet my needs. At least I think so ... But maybe I've just got not the ...
chrispi_cookie's user avatar
4 votes
1 answer
149 views

Traditionally in LaTeX, a lot of things are built on the \list macro. This structure provides a standard way to adjast margins and vertical spacing for blocks of text. But with the move to accesible ...
David Purton's user avatar
  • 28.8k
0 votes
0 answers
78 views

Here is the mwe: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{xtemplate} \begin{document} \ExplSyntaxOn % 1. create a new object type \DeclareObjectType{ObjA}{2} % 2. create a new ...
zpding's user avatar
  • 842
1 vote
0 answers
127 views

Here's a MWE which is a small example of the use of xtemplate. This lines will be used in my first public package I'm working on; in my package, the call of \UseTemplate will be done by standard LaTeX ...
projetmbc's user avatar
  • 15.6k
12 votes
0 answers
241 views

Suppose I'd like to create a LaTeX class based on another one (say article), with e.g. quotations or theorems with specific designs (say as tcolorbox boxes): is it still nowadays recommended to rely ...
Denis Bitouzé's user avatar
1 vote
1 answer
167 views

I just switched from overleaf to using vim for latex and executing everything on the commandline. My code previously compiled without errors in Overleaf, but now i am getting a problem with acro. MWE: ...
Tom's user avatar
  • 127
1 vote
2 answers
808 views

I recently discovered the diffcoef package and the power of xtemplate. The first one encompasses almost everything I was doing with personal macros for derivative operators. However, I was wondering ...
R. N's user avatar
  • 1,320
2 votes
1 answer
125 views

Here's basic example showing a) "instance will set some key in the template", and b) "The key–value list of⟨parameters⟩applies in the⟨new template⟩and cannot be changed whencreating an ...
Erwann's user avatar
  • 2,658
1 vote
0 answers
132 views

I came across a problem in xtemplate with using \KeyValue for keys of type instance. Instance key-types haven't been documented yet, so I could just be doing it wrong. Here's the smallest example I ...
Subhaneil Lahiri's user avatar
2 votes
0 answers
82 views

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 ...
Karl Hagen's user avatar
  • 1,568
6 votes
0 answers
218 views

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 ...
Kelly Smith's user avatar
5 votes
1 answer
233 views

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? ...
Kelly Smith's user avatar
5 votes
1 answer
1k views

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} \...
Hanspeter Höschle's user avatar
3 votes
1 answer
412 views

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 ...
cslstr's user avatar
  • 6,635

15 30 50 per page