Questions tagged [l3keys]

111 questions
7
votes
2 answers

Code hook after variable setting actions in l3keys

I am trying out l3keys for the first time and I am encountering the following issue. I have some boolean keys (true/false). For them it looks nice to use .bool_set:N so that I can get automatic validation of the value passed into the key and I also…
callegar
  • 493
3
votes
1 answer

How to append options to an existing .meta:n l3key?

If I have previously set up a .meta:n key with \keys_define:nn { module } { key .meta:n = { … } } then it's easy to replace the key with new values by calling \kerys_define:nn with new meta options. But what if I want to append to the current meta…
David Purton
  • 25,884
2
votes
2 answers

Empty arguments without .initial:n

When the initial values are not set and the arguments are empty, the current values in the variables are used, not necessarily the .initial:n ones. .initial:n only sets the values once at point of use, without adding any way to reset those values…
Ragonese
  • 171
  • 4
2
votes
1 answer

How to turn a LaTeX3 package key fontsize value into a command?

I do not know how to search for this issue as backwards slash or \ in questions has not gleaned anything useful. How can I set a key-value and then use a font size value without having to use a command in the package options please,…
JamesT
  • 3,169
2
votes
0 answers

About unknown keys caught by 'unknown' in 'l3keys'

Is there a way to catch with the key unknown all the unknown keys, including the keys of submodules? For instance, in the following code, the unknown key foo/bar is not caught by the key unknown. \documentclass{article} \begin{document} Some…
F. Pantigny
  • 40,250
2
votes
1 answer

keyval_parse for dummies

This example compiles forever. I must be misusing keyval_parse \documentclass{report} \usepackage{xparse} % Relevant doc: %…
Erwann
  • 2,100
1
vote
1 answer

Using existing values in l3keys

How does the following print Heime Borgia 405 Hilgard Ave Los Angeles California 90095 United States Likku Cirillu 409 Hilgard Ave rather than Heime Borgia 405 Hilgard Ave Los Angeles California 90095 United States Likku Cirillu 409 Hilgard…
Ragonese
  • 171
  • 4
1
vote
3 answers

Initial, Default and User defined Keys

I would like to pass user-defined keys. But when the user does not specify values, the default values are used. I need some explanation on what to do in the \setdimensions command. What does .initial work out exactly…
Ragonese
  • 171
  • 4
0
votes
1 answer

Passing commas to key-value pairs with l3keys

How can I pass commas to key-value pairs when using l3keys ? Have inserted double quotes but the quotes get printed as well, something I do not want to appear. \documentclass[a4paper,12pt]{article} \ExplSyntaxOn \keys_define:nn { adr_keys } { …
Ragonese
  • 171
  • 4
0
votes
1 answer

Resetting l3key values for starred version

I really do not understand the purpose of .initial:n. It is only useful for the first call to a command that does not have user-values, after that the current values are used. Would like to have the starred version always using the initial values…
Ragonese
  • 171
  • 4
0
votes
0 answers

Use of keys_define

I have encountered the following. What are keys about and how are they to be used, for what purpsose. Could I have some examples ? \keys_define:nn { feuds_teorema_keys } { name .tl_set:N = \feuds_teorema_name_tl, label .tl_set:N =…
Veak
  • 1
0
votes
1 answer

l3keys: how to "generate" `.inherit:V` variant of `.inherit:n`

From the documentation, ⟨key⟩ .inherit:n = {⟨parents⟩} Specifies that the ⟨key⟩ path should inherit the keys listed as ⟨parents⟩. Because may parents are collected in \l_MY_parents_clist, I would benefit from ⟨key⟩ .inherit:V =…
0
votes
1 answer

Generating an error message for unknown keys

The code below outputs: ERROR: Package Foo Error: Unknown key, \l_keys_key_tl Why does \l_keys_key_tl expand at Hook 1, not Hook 2? \documentclass{report} \usepackage{xparse} \ExplSyntaxOn \msg_new:nnn {Foo} {generic} {#1} …
Erwann
  • 2,100