logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

"LaTeXML::Core::Definition::Register" - Control sequence definitions for Registers.

Author

       Bruce Miller <bruce.miller@nist.gov>

Description

       These are set up as a speciallized primitive with a getter and setter to access and store values in the
       Stomach.  See LaTeXML::Package for the most convenient means to create them.

       It extends LaTeXML::Core::Definition::Primitive.

       Registers generally store some value in the current "LaTeXML::Core::State", but are not required to. Like
       TeX's registers, when they are digested, they expect an optional "=", and then a value of the appropriate
       type. Register definitions support these additional methods:

Methods

       "$value = $register->valueOf(@args);"
           Return  the  value  associated with the register, by invoking it's "getter" function.  The additional
           args are used by some registers to index into a set, such as the index to "\count".

       "$register->setValue($value,$scope,@args);"
           Assign a value to the register, by invoking it's "setter" function.

Name

       "LaTeXML::Core::Definition::Register"  - Control sequence definitions for Registers.

See Also