LaTeXM...l::Pack(3pm)

πŸ’– NAME πŸ’–

okay so this is the LaTeXM...l::Pack(3pm) page β€” User Contributed Perl Documentation, hiiii ✨ β€” and the module it's hyping is LaTeXML::Util::Pack: smart packing and unpacking of TeX archives. no cap. 🫢

🌸 DESCRIPTION 🌸

bestie, this module is giving you an API and convenience methods for:

  1. Unpacking Zip archives which contain a TeX manuscript. πŸ“¦
  2. Packing the files of a LaTeXML manuscript into a single archive. πŸ—œοΈ
  3. Extracting embeddable fragments, as well as single formulas from LaTeXML documents. 🧚

All user-level methods are unconditionally exported by default. periodt. πŸ’…

πŸ› οΈ METHODS πŸ› οΈ

$main_tex_source = unpack_source($archive,$extraction_directory);

this one unpacks a given $archive into the $extraction_directory. then it does a heuristic analysis to determine, and return, the main file of the TeX manuscript. πŸ•΅οΈβ€β™€οΈβœ¨

⚠️ if the main file cannot be determined, the $extraction_directory is removed and undef is returned. 😭 so like, it cleans up after itself.

in this regard, we implement a simplified form of the logic in TeX::AutoTeX and particularly arXiv::FileGuess. iykyk. πŸ”₯

@packed_documents = pack_collection(collection=>\@documents, whatsout=>'math|fragment|archive', siteDirectory=>$path);

this packs a collection of documents using the packing method specified via the 'whatsout' option. πŸŽ€

  • if 'fragment' or 'math' are chosen, each input document is transformed into an embeddable fragment or a single formula, respectively. 🧩
  • if 'archive' is chosen, all input documents are written into an archive in the specified 'siteDirectory'. πŸ—„οΈ
  • the name of the archive is provided by the 'destination' property of the first provided $document object. 🏷️
  • each document is expected to be a LaTeXML::Post::Document object. πŸ‘‘

πŸ‘‘ AUTHOR πŸ‘‘

Bruce Miller <bruce.miller@nist.gov>, Deyan Ginev <deyan.ginev@nist.gov> 🫢

Public domain software, produced as part of work done by the United States Government & not subject to copyright in the US. 🌈


k bye bestie πŸ’… β€” source/version perl v5.40.1, dated 2025-11-16, and the footer calls it LaTeXM...l::Pack(3pm) 🫢

πŸ“¦ where this page comes from