LaTeXML...tructor(3)
π¦ LaTeXML::Core::Definition::Constructor π¦
okay so this is a page from User Contributed Perl Documentation (the manual name, folding it in right here so you're not confused later π), all about LaTeXML::Core::Definition::Constructor. yes the header is foreshortened, no we're not gonna worry about it.
β¨ NAME β¨
"LaTeXML::Core::Definition::Constructor" β Control sequence definitions. that's the whole vibe, bestie.
πΈ DESCRIPTION πΈ
So this class represents control sequences that contribute arbitrary XML fragments to the document tree. like, they just show up and drop XML wherever. main character energy fr fr.
During digestion, a "LaTeXML::Core::Definition::Constuctor" (yes that's how it's spelled in the book, no I will not be fixing it π) records the arguments used in the invocation to produce a LaTeXML::Core::Whatsit. The resulting LaTeXML::Core::Whatsit (usually) generates an XML document fragment when absorbed by an instance of LaTeXML::Core::Document. lowkey iconic.
Additionally, a "LaTeXML::Core::Definition::Constructor" may have beforeDigest and afterDigest daemons defined, which are executed for side effect, or for adding additional boxes to the output. side quests, basically π«Ά
It extends LaTeXML::Core::Definition.
More documentation needed, but see LaTeXML::Package for the main user access to these. that's the literal note in here β not me being shady, they said it themselves π
π More about Constructors π
A constructor has as it's "replacement" a subroutine or a string pattern representing the XML fragment it should generate. cute!
In the case of a string pattern, the pattern is compiled into a subroutine on first usage by the internal class "LaTeXML::Core::Definition::ConstructorCompiler". lazy but make it efficient π
Like primitives, constructors may have "beforeDigest" and "afterDigest".
π AUTHOR π
Bruce Miller <bruce.miller@nist.gov> β king behavior, honestly.
π COPYRIGHT π
Public domain software, produced as part of work done by the United States Government & not subject to copyright in the US. periodt. no cap, it's literally public domain π¦
so yeah, that's the whole page π β and this lil tutorial was brought to you by perl v5.42.3, dated 2024-02-26, with the LaTeXML...tructor(3) header/footer flavor living rent free in the background. bye bestie, go read LaTeXML::Package next πβ¨π
π¦ 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