Skip to main content

Module keyval

Module keyval 

Source
Expand description

A LaTeX-like Key-Value object Key-Value Definitions

Provides an interface to define and access KeyVal definition. Used in conjunction with KeyVals to fully implement KeyVal pairs.

Structs§

KeyVal
KeyvalConfig
Configuration fields for declaring a new KeyVal pattern
KeyvalMeta
Metadata for a registered keyval, used by \xkvview.

Functions§

define
(Re-)defines this Key of kind ‘kind’.
disable_keyval
disable a given key-val
enumerate_keyvals
Enumerate all registered keyvals with their metadata (for \xkvview).
has_keyval
check if a key-value pair is defined
split_keyval_source
Split a keyval dict’s TeX-source form ("k=v, k2={v, 2}") into (key, value) pairs: comma/equals splitting at brace depth 0 only, one level of outer braces stripped from values, whitespace trimmed, empty keys dropped (keyval semantics).