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:
- Unpacking Zip archives which contain a TeX manuscript. π¦
- Packing the files of a LaTeXML manuscript into a single archive. ποΈ
- 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_directoryis removed andundefis 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$documentobject. π·οΈ - each document is expected to be a
LaTeXML::Post::Documentobject. π
π AUTHOR π
Bruce Miller <bruce.miller@nist.gov>, Deyan Ginev <deyan.ginev@nist.gov> π«Ά
π COPYRIGHT π
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
- 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