Debian Codegraph @

texmf-dist/doc/latex/expkv-bundle/impatient.tex

raw
1 \addsec{\expkvbundle\ for the Impatient}
2
3 This section gives a very brief and non-exhaustive overview over the contents of
4 the \expkvbundle. For more information (and more functionality) you'll have to
5 read the sections of the packages you're interested in.
6
7 \expkvbundle\ supports expansion control in \kv\ lists. The corresponding
8 syntax and features are documented in \autoref{sec:expkv:expansion}.
9
10 The following user interface macros (and more) are available in the different
11 packages of the bundle:
12 \paragraph{Defining keys}
13 \begin{itemize}
14 \item \cs[no-index]{ekvdefinekeys}\marg{set}\texttt{\kvarg}
15 defines the keys in the \kv\ list, many common key types are available
16 (\autoref{sec:d:macros} and for the types \autoref{sec:d:types}).
17 \item \cs[no-index]{ekvdef}\marg{set}\marg{key}\marg{code}
18 defines the behaviour of a \Vkey\ (\autoref{sec:expkv:setup}).
19 \item \cs[no-index]{ekvdefNoVal}\marg{set}\marg{key}\marg{code}
20 defines the behaviour of a \Nkey\ (\autoref{sec:expkv:setup}).
21 \end{itemize}
22 \paragraph{Parsing \kv\ lists}
23 \begin{itemize}
24 \item \cs[no-index]{ekvset}\marg{set}\texttt{\kvarg}
25 sets defined keys (\autoref{sec:expkv:set}).
26 \item \cs[no-index]{ekvparse}\marg{k-code}\marg{kv-code}\texttt{\kvarg}
27 parses the \kv\ list and runs \meta{k-code} or \meta{kv-code} on the
28 elements (\autoref{sec:expkv:parse}).
29 \end{itemize}
30 \paragraph{Defining expandable \kv\ macros}
31 \begin{itemize}
32 \item \cs[no-index]{ekvcSplit}\meta{cs}\texttt{\kvarg}\marg{code}
33 defines a fully expandable macro with the keys in the \kv\ list,
34 values are accessed by |#1| to |#9| (\autoref{sec:c:split}).
35 \item \cs[no-index]{ekvcHash}\meta{cs}\texttt{\kvarg}\marg{code}
36 defines a fully expandable macro with the keys in the \kv\ list,
37 values are accessed using \cs[no-index]{ekvcValue}\hskip0pt\marg{key}|{#1}|
38 (\autoref{sec:c:hash}).
39 \item \cs[no-index]{ekvcSecondaryKeys}\meta{cs}\texttt{\kvarg}
40 defines additional keys of predefined types for a \meta{cs} defined with
41 \cs[no-index]{ekvcSplit} or \cs[no-index]{ekvcHash}
42 (\autoref{sec:c:secondary} and for the types
43 \autoref{sec:c:secondarytypes}).
44 \end{itemize}
45 \paragraph{Parsing options} (\autoref{sec:o:macros})
46 \begin{itemize}
47 \item \cs[no-index]{ekvoProcessOptions}\marg{set}
48 processes the global options, and the options given to the current and
49 all future calls of the package.
50 \item \cs[no-index]{ekvoProcessGlobalOptions}\marg{set}
51 processes the global options.
52 \item \cs[no-index]{ekvoProcessLocalOptions}\marg{set}
53 processes the local options of a package or class.
54 \item \cs[no-index]{ekvoProcessFutureOptions}\marg{set}
55 processes the options of future calls of the package.
56 \end{itemize}