LaTeXML...il::Pack(3)
π LaTeXML::Util::Pack π
okay bestie, this is the LaTeXML...il::Pack(3) page from the User Contributed Perl Documentation, and we're about to make TeX archives make sense. no cap. β¨
πΈ NAME πΈ
"LaTeXML::Util::Pack" β smart packing and unpacking of TeX archives. That's the whole name, and honestly it ate. π
π¦ DESCRIPTION π¦
This module serves up 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. literally all the user-level ones, no extra import ceremony. π
π METHODS π
π unpack_source
$main_tex_source = unpack_source($archive,$extraction_directory);
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. π
In this regard, we implement a simplified form of the logic in TeX::AutoTeX and particularly arXiv::FileGuess. iykyk. π§
bestie, pay attention: failed main-file detection means the extraction directory gets deleted and you get undef. that's the vibe check. π
π pack_collection
@packed_documents = pack_collection(collection=>\@documents,
whatsout=>'math|fragment|archive', siteDirectory=>$path);
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 chose (the page's spelling, bestie), 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>. iconic. π«Ά
π COPYRIGHT π
Public domain software, produced as part of work done by the United States Government & not subject to copyright in the US. periodt. π
okay that's the whole page, bestie π β it's perl v5.42.3, dated 2024-02-26, and it's the LaTeXML...il::Pack(3) page from the User Contributed Perl Documentation. byeeee β¨π
π¦ where this page comes from
- nixos 26.05: perl5.42.3-LaTeXML 0.8.8
- nixpkgs unstable: perl5.42.3-LaTeXML 0.8.8
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms