LaTeXM...hatsit(3pm)
π NAME π
Okay bestie, welcome to the user-contributed Perl documentation for LaTeXM...hatsit(3pm) β aka LaTeXML::Core::Whatsit, which is literally the representations of digested objects. β¨
β¨ DESCRIPTION β¨
So LaTeXML::Core::Whatsit represents a digested object that can generate arbitrary elements in the XML Document. It extends LaTeXML::Core::Box. That's the vibe check, no cap. π¦
π οΈ METHODS π οΈ
Quick heads-up before we get into the method tour: note that the font is stored in the data properties under 'font'. π
$defn = $whatsit->getDefinition;β returns theLaTeXML::Core::Definitionresponsible for creating$whatsit. Iconic behavior, fr fr.$value = $whatsit->getProperty($key);β returns the value associated with$keyin the$whatsit's property list. Obsessed with how direct that is.$whatsit->setProperty($key,$value);β sets the$valueassociated with the$keyin the$whatsit's property list. Slay.$props = $whatsit->getProperties();β returns the hash of properties stored on this Whatsit. (Note that this hash is modifiable). Main character hash energy, lowkey.$props = $whatsit->setProperties(%keysvalues);β sets several properties, likesetProperty. Group-chat batch update vibes.$list = $whatsit->getArg($n);β returns the$n-th argument (starting from 1) for this$whatsit. Counting starts at 1, bestie, don't come for me.@args = $whatsit->getArgs;β returns the list of arguments for this$whatsit. The whole squad. π«Ά$whatsit->setArgs(@args);β sets the list of arguments for this$whatsitto@args(each arg should be aLaTeXML::Core::List). Respect the type, periodt.$list = $whatsit->getBody;β returns the body for this$whatsit. This is only defined for environments or top-level math formula. The body is stored in the properties under'body'. Very niche, very valid. π$whatsit->setBody(@body);β sets the body of the$whatsitto the boxes in@body. The last$boxin@bodyis assumed to represent thetrailer, that is the result of the invocation that closed the environment or math. It is stored separately in the properties under'trailer'. Trailer separately? We love a dedicated storage moment. π$list = $whatsit->getTrailer;β returns the trailer for this$whatsit. SeesetBody. Iykyk.
π AUTHOR π
Written by Bruce Miller <bruce.miller@nist.gov>. Legend behavior. π
π COPYRIGHT π
Public domain software, produced as part of work done by the United States Government & not subject to copyright in the US. That's the legal tea, bestie. β
Okay that's the page! It's from perl v5.40.1, dated 2025-11-16 β bye bestie, go slay some XML π
β¨
π¦ where this page comes from
- ubuntu resolute: latexml 0.8.8-4 Β· PD
- ubuntu stonking: latexml 0.8.8-4 Β· PD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms