Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mya-mya/texpack
π¦TeX Bundler: Pack .tex Files into Single .tex File
https://github.com/mya-mya/texpack
bundler latex research utility
Last synced: about 2 months ago
JSON representation
π¦TeX Bundler: Pack .tex Files into Single .tex File
- Host: GitHub
- URL: https://github.com/mya-mya/texpack
- Owner: Mya-Mya
- License: mit
- Created: 2024-05-16T03:52:57.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-08-07T14:32:38.000Z (5 months ago)
- Last Synced: 2024-11-14T00:50:21.365Z (about 2 months ago)
- Topics: bundler, latex, research, utility
- Language: Python
- Homepage: https://pypi.org/project/texpack/
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![PyPI version](https://badge.fury.io/py/texpack.svg)](https://badge.fury.io/py/texpack)
# texpack
Pack .tex files into a single .tex file.
This may be useful for arXiv, etc.## Background
When creating LaTeX documents, it's often convenient to split the work into smaller .tex files using commands like `\input` or `\subfile`.
However, platforms like arXiv require submissions as a single .tex file.
This package, texpack, addresses this need by packing multiple .tex files connected via `\input` or `\subfile` into a single .tex file.
The package name is inspired by the JavaScript module [webpack](https://github.com/webpack/webpack), which serves a similar purpose.## Usage
Install the package if you don't have yet.
```bash
python3 -m pip install texpack
```
Move to your LaTeX project directory.
```bash
cd your/LaTeX/project
```
Call our module to execute. In the 1st argument, apply the root tex file of your project.
```bash
python3 -m texpack root-texfile.tex
```
You'll find a new tex file in the same directory as your root tex file.
By default, the file name of the generated file is in the form "texpack-" added to the beginning of the file you have specified.
In the example above, the file "texpack-root-texfile.tex" will be generated.## Custom output file name
You can specify the custom output file name by adding the `-o` argument.
```bash
python3 -m texpack root-texfile.tex -o main.tex
```
In the example above, the file "main.tex" will be generated.