GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
LaTeXML::Core::KeyVal(3) User Contributed Perl Documentation LaTeXML::Core::KeyVal(3)

"LaTeXML::Core::KeyVal" - Key-Value Definitions in LaTeXML

Provides an interface to define and access KeyVal definition. Used in conjunction with "LaTeXML::Core::KeyVals" to fully implement KeyVal pairs. It extends LaTeXML::Common::Object.

"DefKeyVal(keyset, key, type, default, %options); "
Defines a new KeyVal Parameter in the given keyset, key and with optional prefix option{prefix}. For descriptions of further parameters, see LaTeXML::Core::KeyVal::define.
"HasKeyVal(prefix, keyset, key); "
Checks if the given KeyVal pair exists.
"DisableKeyVal(prefix, keyset, key); "
Disables the given KeyVal so that it can not be used.

"<LaTeXML::Core::KeyVal-"new(preset, keyset, key); >>
Creates a new KeyVal object. This serves as a simple reference to the given KeyVal object, regardless of its existence or not.

"$keyval->define($type, $default, %options);"
(Re-)defines this Key of kind 'kind'. Defines a keyword key used in keyval arguments for the set keyset and, and if the option code is 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 defined 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 specefied 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.

"$keyval->defineOrdinary($code);"
Helper function to define $STATE neccesary for an ordinary key.
"$keyval->defineCommand($code, $macroprefix);"
Helper function to define $STATE neccesary for a command key.
"$keyval->defineChoice($code, $mismatch, $choices, $normalize, $bin);"
Helper function to define $STATE neccesary for an choice key.
"$keyval->defineBoolean($code, $mismatch, $macroprefix);"
Helper function to define $STATE neccesary for a boolean key.

Tom Wiesing <tom.wiesing@gmail.com>

Public domain software, produced as part of work done by the United States Government & not subject to copyright in the US.
2021-08-26 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.