LaTeXML...::KeyVal(3)
π¦ LaTeXML::Core::KeyVal π¦
okay so welcome to the LaTeXML...::KeyVal(3) page from User Contributed Perl Documentation β yes bestie, the manual name is literally in the header, and weβre folding it in right here so the terminal vibe check passes. π
π NAME π
LaTeXML::Core::KeyVal β Key-Value Definitions in LaTeXML. periodt.
β¨ DESCRIPTION β¨
This absolutely provides an interface to define and access KeyVal definition. Itβs used in conjunction with LaTeXML::Core::KeyVals to fully implement KeyVal pairs. It extends LaTeXML::Common::Object. no cap.
π«Ά Exposed Methods
DefKeyVal(keyset, key, type, default, %options);β Defines a new KeyVal Parameter in the givenkeyset,key, with the optional prefixoption{prefix}. For descriptions of further parameters, seeLaTeXML::Core::KeyVal::define. πHasKeyVal(prefix, keyset, key);β Checks if the given KeyVal pair exists. simple as that, bestie.DisableKeyVal(prefix, keyset, key);β Disables the given KeyVal so that it can not be used. bye bye key π
π§ Constructors
"<LaTeXML::Core::KeyVal-"new(preset, keyset, key); >>β the constructor line as printed on the page. It creates a new KeyVal object. This serves as a simple reference to the given KeyVal object, regardless of its existence or not. lowkey iconic.
π KeyVal Key Definition π
$keyval->define($type, $default, %options);β (Re-)defines this Key of kind'kind'. Defines a keyword key used in keyval arguments for the setkeyset, and if the optioncodeis given, defines appropriate macros when used with the keyval package (or extensions thereof).
If type is given, it defines the type of value that must be supplied, such as 'Dimension'. If default is given, that value will be used when key is used without an equals and explicit value in a keyvals argument.
A scope option can be given, which can be used to define the key-value pair globally instead of in the current scope.
Several more options can be given. These implement the behaviour of the xkeyval package.
The prefix parameter can be used to configure a custom prefix for the macros to be defined. The kind parameter can be used to configure special types of xkeyval pairs.
The 'ordinary' kind behaves like a normal keyval parameter.
The 'command' kind defines a command key, that when run stores the value of the key in a special macro, which can be further specified by the macroprefix option.
The 'choice' kind defines a choice key, which takes additional options choices (to specify which choices are valid values), mismatch (to be run if an invalid choice is made) and bin (see xkeyval documentation for details).
The 'boolean' kind defines a special choice key that takes possible values true and false, and defines a new Conditional according to the assumed value. The name of this conditional can be specified with the macroprefix option.
The kind parameter only takes effect when code is given, otherwise only meta-data is stored. fr fr.
$keyval->defineOrdinary($code);β Helper function to define$STATEnecessary for an ordinary key. π«Ά$keyval->defineCommand($code, $macroprefix);β Helper function to define$STATEnecessary for a command key. π$keyval->defineChoice($code, $mismatch, $choices, $normalize, $bin);β Helper function to define$STATEnecessary for a choice key. β¨$keyval->defineBoolean($code, $mismatch, $macroprefix);β Helper function to define$STATEnecessary for a boolean key. π¦
πΈ AUTHOR πΈ
Tom Wiesing β <tom.wiesing@gmail.com>
π COPYRIGHT π
Public domain software, produced as part of work done by the United States Government & not subject to copyright in the US.
π ok thatβs the whole page, bestie. this was perl v5.42.3, dated 2024-02-26, for LaTeXML...::KeyVal(3). mwah π
π¦ where this page comes from
- nixos 26.05: perl5.42.3-LaTeXML 0.8.8
- nixpkgs unstable: perl5.42.3-LaTeXML 0.8.8
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms