Bundle a LaTeX project (resolve input includes, collect figures and auxiliary files) into a zip archive.
Project description
LaTeX2Bundle
LaTeX2Bundle packages a LaTeX project into a single ZIP archive.
It resolves \\input{} and \\include{}, collects figures and auxiliary files (e.g. .bib, .cls), optionally reduces bibliographies to cited entries, and produces a ready-to-share bundle.
Features
- Resolves
\\input{}and\\include{}directives - Copies figures and auxiliary files into a self-contained directory
- Optionally reduces
.bibfiles to only cited entries - Optionally renames figures for portability
- Produces a single ZIP archive
Usage
latex2bundle path/to/main.tex [options]
Options
-
-c, --copy-files <files...>Include additional files (e.g.extra.bib myclass.cls) -
-t, --target-dir <dir>Output directory (defaults to the main file’s directory) -
-vVerbose logging -
--no-reduce-bibKeep full.bibfiles (disable citation-based reduction) -
--no-rename-figuresKeep original figure filenames
Examples
# Basic: bundle main.tex into ./bundle and create main.zip
latex2bundle path/to/main.tex
# Include extra files with verbose output
latex2bundle path/to/main.tex -c extra.bib myclass.cls -v
# Write bundle to a specific directory
latex2bundle path/to/main.tex -t /tmp/output
# Disable bibliography reduction and figure renaming
latex2bundle path/to/main.tex --no-reduce-bib --no-rename-figures
Packaging & Publishing
Build source and wheel:
python -m pip install --upgrade build twine
python -m build
Upload to PyPI (test first):
python -m twine upload --repository testpypi dist/*
# Production
python -m twine upload dist/*
License
See LICENSE.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file latex2bundle-0.1.0.tar.gz.
File metadata
- Download URL: latex2bundle-0.1.0.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cda2cedceae67fd388d79c16f9211693bf2ed279d26c916fc7eb065ff480f81d
|
|
| MD5 |
d9bc8b7327c7b680b6332ab5b7a745ec
|
|
| BLAKE2b-256 |
0f4d4253d207d8580f2218109e21e7a0c156425d737a513c35a6b35fa3ba5da5
|
File details
Details for the file latex2bundle-0.1.0-py3-none-any.whl.
File metadata
- Download URL: latex2bundle-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
959017f303cc996ae078b9b97a388953de541ed902d8848fff261bc33015f69c
|
|
| MD5 |
de11814ec4544335dcb199b3e6cb6c3e
|
|
| BLAKE2b-256 |
a2cbad91015964d7704b2e4d5e106b147cf13f8d3eca47671c992d88603d00ff
|