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 the LaTeXML::Core::Definition responsible for creating $whatsit. Iconic behavior, fr fr.
  • $value = $whatsit->getProperty($key); β€” returns the value associated with $key in the $whatsit's property list. Obsessed with how direct that is.
  • $whatsit->setProperty($key,$value); β€” sets the $value associated with the $key in 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, like setProperty. 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 $whatsit to @args (each arg should be a LaTeXML::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 $whatsit to the boxes in @body. The last $box in @body is assumed to represent the trailer, 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. See setBody. Iykyk.

πŸ‘‘ AUTHOR πŸ‘‘

Written by Bruce Miller <bruce.miller@nist.gov>. Legend behavior. 🌟

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