LaTeXML::Core::Box(3)

πŸ“¦ version 0.8.8, in nixos 26.05, nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, this is the LaTeXML::Core::Box(3) page from the User Contributed Perl Documentation, and the main character is "LaTeXML::Core::Box" β€” representations of digested objects. It extends LaTeXML::Common::Object. slay. ✨

✨ Exported Functions ✨

  • $box = Box($string,$font,$locator,$tokens); β€” Creates a Box representing the $string in the given $font. The $locator records the document source position. The $tokens is a Tokens list containing the TeX that created (or could have) the Box. If $font or $locator are undef, they are obtained from the currently active LaTeXML::Core::State.
Heads-up bestie: $string can be undef, which contributes nothing to the generated document, but it does record the TeX code (in $tokens). No cap. 🫢

πŸ¦‹ METHODS πŸ¦‹

  • $font = $digested->getFont; β€” Returns the font used by $digested.
  • $boole = $digested->isMath; β€” Returns whether $digested was created in math mode.
  • @boxes = $digested->unlist; β€” Returns a list of the boxes contained in $digested. It is also defined for the Boxes and Whatsit (which just return themselves) so they can stand-in for a List.
  • $string = $digested->toString; β€” Returns a string representing this $digested.
  • $string = $digested->revert; β€” Reverts the box to the list of "Token"s that created (or could have created) it.
  • $string = $digested->getLocator; β€” Get an object describing the location in the original source that gave rise to $digested.
  • $digested->beAbsorbed($document); β€” $digested should get itself absorbed into the $document in whatever way is apppropriate.
  • $string = $box->getString; β€” Returns the string part of the $box.

πŸ‘‘ AUTHOR πŸ‘‘

Bruce Miller <bruce.miller@nist.gov> πŸ’Œ


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 vibe check πŸ’… This page says perl v5.42.3 at the bottom, dated 2024-02-26, and yes bestie, it's still LaTeXML::Core::Box(3) β€” periodt. πŸŽ€

πŸ“¦ where this page comes from