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)Verbose 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
### Mode examples
The `--mode` flag controls what artifacts are produced. Valid values:
- `both` (default): create the cleaned bundle directory and a ZIP archive containing it.
- `zip-only`: create only the ZIP archive and remove the temporary bundle directory.
- `bundle-only`: create and keep the bundle directory but do not create a ZIP file.
Examples:
```bash
# Create both the bundle and the ZIP (default)
latex2bundle path/to/main.tex --mode both
# Produce only the ZIP and remove the bundle directory
latex2bundle path/to/main.tex --mode zip-only
# Produce only the bundle directory without creating a ZIP
latex2bundle path/to/main.tex --mode bundle-only
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
---
## 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.2.tar.gz.
File metadata
- Download URL: latex2bundle-0.1.2.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cb7b0604da41f4f72edebfe3b6419ba8c30010a9f8c81be2b60404b83609d16
|
|
| MD5 |
31f4e61e666ffc2eb6d6ac0566725a09
|
|
| BLAKE2b-256 |
bce09d66715ca4f38bce0b8764fc54699e7315e631b1505fecb9d4e15fe4bd8e
|
File details
Details for the file latex2bundle-0.1.2-py3-none-any.whl.
File metadata
- Download URL: latex2bundle-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.7 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 |
b851061abd7f4d709893b43c0336f18f93bf088e5732ecf960b07833351bcdbe
|
|
| MD5 |
955e8539a6ff0d435c3c8605dbcb6f91
|
|
| BLAKE2b-256 |
00c95d016b0c0049a3b08c6acd1edc970459e072e406401ca1d2827c5f5bd167
|