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 = \feuds_teorema_label_tl,
shared .tl_set:N = \feuds_teorema_shared_tl,
parent .tl_set:N = \feuds_teorema_parent_tl,
pigment .tl_set:N = \feuds_teorema_pigment_tl,
}
\includegraphics[width=3cm, clip=false]{somefile}with the values (for width and clip here) being saved as macros and passed to the implementation of the main macro (\includegraphicshere).\includegraphicsuses an older key system (keyvalpackage) but idea is basically the same. – David Carlisle Sep 28 '23 at 18:54nameis used, its value is assigned to the token list variable\feuds_teorema_name_tl? – Veak Sep 28 '23 at 19:10\feuds_teorema_pigment_tl,? – Veak Sep 28 '23 at 19:11name=Janeis used, the valueJaneis assigned to the token list. The last comma is not necessary, but better an extra comma than a missing one – lukeflo Sep 28 '23 at 19:17widthandclipwould then correspond tonameandlabelin the aforementioned example ? – Veak Sep 28 '23 at 19:17widthis similar used asname. – lukeflo Sep 28 '23 at 19:18\keys_define:nn {as well) if you don't have an actual question and just look for examples, a simple search would answer this. – David Carlisle Sep 28 '23 at 19:22\feuds_teorema_name_tlbe ? When a user passes the value, would the value exist in\feuds_teorema_name_tl. Looks as if the name value would be assigned to\feuds_teorema_name_tl. – Veak Sep 28 '23 at 19:27_tlis a token list i.e. a variable which can hold a list of zero or more tokens. – cfr Sep 28 '23 at 20:11name .tl_set:N = \feuds_teorema_name_tl,means thatname=wibbleis syntactic sugar for a user command that does\def\feuds_teorema_name_tl{wibble}that's all it does, what happens then depends how you use\feuds_teorema_name_tl– David Carlisle Sep 28 '23 at 20:19