LaTeXML...finition(3)
hey bestie π welcome to the LaTeXML::Core::Definition(3) page, straight out of User Contributed Perl Documentation. it's giving core-TeX-definition energy, and we're gonna walk it together, no cap.
π NAME π
LaTeXML::Core::Definition β control sequence definitions. periodt.
β¨ DESCRIPTION β¨
okay so this is an abstract class. it represents all the different executables that correspond to control sequences β the whole little definition family. if you want the most convenient way to create them, peek at LaTeXML::Package, iykyk.
it extends LaTeXML::Common::Object β inheritance icon behavior, slay.
π Methods π
here are the methods, bestie β every single one, no skipping:
$token = $defn->getCS;β returns the (main) token that is bound to this definition. that's the main-character token, fr fr.$string = $defn->getCSName;β returns the string form of the token bound to this definition, taking into account any alias for this definition. alias awareness = iconic.$defn->readArguments($gullet);β reads the arguments for this$defnfrom the$gullet, returning a list ofLaTeXML::Core::Tokens. gullet does the reading, we love to see it.$parameters = $defn->getParameters;β returns theLaTeXML::Core::Parametersobject representing the formal parameters of the definition. formal parameters are literally the blueprint bestie.@tokens = $defn->invocation(@args);β returns the tokens that would invoke the given definition with the provided arguments. this is used to recreate the TeX code (or its equivalent). it's giving "put the invocation back together" energy.$defn->invoke;β invokes the action of the$defn. for expandable definitions, this is done in the Gullet, and returns a list ofLaTeXML::Core::Tokens. for primitives, it is carried out in the Stomach, and returns a list ofLaTeXML::Core::Boxes. for a constructor, it is also carried out by the Stomach, and returns aLaTeXML::Core::Whatsit. that whatsit will be responsible for constructing the XML document fragment, when theLaTeXML::Core::Documentinvokes$whatsit->beAbsorbed($document);. yes, the arrow is doing its thing π .
primitives and constructors also support before and after daemons β lists of subroutines that are executed before and after digestion. these can be useful for changing modes, etc. lowkey useful for mode changes, no cap.
π SEE ALSO π
go look at these too, bestie β they're the rest of the definition crew:
LaTeXML::Core::Definition::ExpandableLaTeXML::Core::Definition::ConditionalLaTeXML::Core::Definition::PrimitiveLaTeXML::Core::Definition::RegisterLaTeXML::Core::Definition::CharDefLaTeXML::Core::Definition::Constructor
π AUTHOR π
Bruce Miller <bruce.miller@nist.gov> β author credit, periodt.
π¦ COPYRIGHT π¦
Public domain software, produced as part of work done by the United States Government & not subject to copyright in the US.
okay that's the whole page β cute sign-off time: perl v5.42.3, dated 2024-02-26, footer title LaTeXML...finition(3). bye bestie, go define some control sequences πβ¨
π¦ 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