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.

0 votes
1 answer
48 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
135 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.7k
0 votes
0 answers
77 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.5k
11 votes
0 answers
236 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
166 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
787 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
120 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,404
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
5 votes
0 answers
216 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
231 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
407 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
8 votes
1 answer
632 views

Consider the following trivial example: \documentclass{article} \usepackage{xtemplate} \ExplSyntaxOn \DeclareObjectType { test } { 10 } \ExplSyntaxOff \begin{document} oh, nose! \end{document} ...
Sean Allred's user avatar
  • 27.8k

15 30 50 per page