Skip to main content

Questions tagged [l3keys]

5 votes
4 answers
437 views

Just as an exercise I'm trying to make a keyval interface to amsthm's \newtheoremstyle in the manner of thmtools, but using the kernel's \DeclareKeys instead of keyval and kvsetkeys. Every argument of ...
mbert's user avatar
  • 12.1k
2 votes
1 answer
275 views

This example compiles forever. I must be misusing keyval_parse \documentclass{report} \usepackage{xparse} % Relevant doc: % http://www.texdoc.net/texmf-dist/doc/latex/l3kernel/interface3.pdf#part.21 ...
Erwann's user avatar
  • 2,404
7 votes
1 answer
384 views

Im setting up a command with some options via l3keys. One of the options is tikz-options and it should take a list of TikZ options and pass them to a {tikzpicture}. \documentclass{article} \...
Tobi's user avatar
  • 58.2k
6 votes
1 answer
662 views

When defining choice keys with l3keys2e there are two possible ways and I use the one with sub-keys in a new package. When defining watch each value should do interface3.pdf says that I can use .code ...
Tobi's user avatar
  • 58.2k
4 votes
1 answer
239 views

Just like the title described, we know in tikz, the name of the key color could be omitted, that is \tikz \draw [color = red] (0,0) -- (1,0); equals to \tikz \draw [red] (0,0) -- (1,0); I'd like to ...
myhsia's user avatar
  • 2,103
3 votes
1 answer
110 views

Desired Outcome Taking inspiration from muzimuchi Z's answer to my question on making tcolorbox's 'connect', I want to define \newkeytheorem's (e.g. theorem) with the resultant syntax \begin{theorem}(&...
Grass's user avatar
  • 1,038
13 votes
3 answers
671 views

expl3 includes the o, f, and x argument specifiers for one-level and the two kinds of full expansion, respectively, before passing the argument to the base function. What is the preferred way of ...
Henry DeYoung's user avatar
11 votes
1 answer
187 views

Using l3keys, is there any way to inspect the keys currently in a (sub)module? I'm looking for something like \clist_show, but for keys. \keys_show sounded promising, but requires that you already ...
Sean Allred's user avatar
  • 27.8k
10 votes
2 answers
294 views

What is the recommended way to emulate pgfkeys' /.code 2 args (or more generally /.code n args) handler with l3keys? For example, with pgfkeys one can do \documentclass{article} \usepackage{pgfkeys} ...
mbert's user avatar
  • 12.1k
8 votes
2 answers
705 views

I’ve created a simple package with options settable via l3keys2e. I was able to figure out how to make the syntax \usepackage[format = international]{phone} work, but I’d like to make the syntax \...
J. C. Salomon's user avatar
6 votes
1 answer
746 views

In a comment of this question,David Carlisle wrote: [l3keys2e] should be considerd legacy now, the new built in option code is based on the same core expl3 code but extended and improved so hopefully ...
Jinwen's user avatar
  • 9,396
6 votes
2 answers
352 views

Is there a good way to store the key of an unknown key-val in expl3? I can get \l_keys_key_tl, but it gets overwritten before it's expanded. I suppose I need to expand it when I store it, but I'm ...
goodmami's user avatar
  • 215
6 votes
1 answer
362 views

I have a question about naming variables. In expl3, the variable naming convention is the following: \<scope>_<module>_<description>_<type>. The <scope> can be l, g, or c,...
User23456234's user avatar
  • 2,418
6 votes
1 answer
164 views

I try to create a key normanius in the following way: Each key is mapped to an own variable \l__normanius_*_tl so that I can use those variables in some subsequent code. \documentclass{article} \...
normanius's user avatar
  • 503
5 votes
2 answers
449 views

This is a general and documented feature of latex3, but I shall still provide an MWE in order to illustrate the problem, see below. Suppose I have a function which uses the l3keys key-value interface, ...
Betta George's user avatar

15 30 50 per page