# 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.
Raw data
{
"_id": null,
"home_page": "https://github.com/Mya-Mya/texpack",
"name": "texpack",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "LaTeX, tex, academic",
"author": "Mya-Mya",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/cf/77/5c53784724c2bd8bf056ea07da3d7c1bd056e5574c42fdea304d632da823/texpack-1.0.0a1.tar.gz",
"platform": null,
"description": "# texpack\nPack .tex files into a single .tex file.\nThis may be useful for arXiv, etc.\n\n\n## Background\nWhen creating LaTeX documents, it's often convenient to split the work into smaller .tex files using commands like `\\input` or `\\subfile`. \nHowever, platforms like arXiv require submissions as a single .tex file.\nThis package, texpack, addresses this need by packing multiple .tex files connected via `\\input` or `\\subfile` into a single .tex file. \nThe package name is inspired by the JavaScript module [webpack](https://github.com/webpack/webpack), which serves a similar purpose.\n\n## Usage\nInstall the package if you don't have yet.\n```bash\npython3 -m pip install texpack\n```\nMove to your LaTeX project directory.\n```bash\ncd your/LaTeX/project\n```\nCall our module to execute. In the 1st argument, apply the root tex file of your project.\n```bash\npython3 -m texpack root-texfile.tex\n```\nYou'll find a new tex file in the same directory as your root tex file.\nBy default, the file name of the generated file is in the form \"texpack-\" added to the beginning of the file you have specified.\nIn the example above, the file \"texpack-root-texfile.tex\" will be generated.\n\n## Custom output file name\nYou can specify the custom output file name by adding the `-o` argument.\n```bash\npython3 -m texpack root-texfile.tex -o main.tex\n```\nIn the example above, the file \"main.tex\" will be generated.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Pack LaTeX Files into Single .tex File",
"version": "1.0.0a1",
"project_urls": {
"Homepage": "https://github.com/Mya-Mya/texpack"
},
"split_keywords": [
"latex",
" tex",
" academic"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "cf775c53784724c2bd8bf056ea07da3d7c1bd056e5574c42fdea304d632da823",
"md5": "3ebac1cc925f5df43d058b1150dcfc95",
"sha256": "1c977bd5d07b87363a500c5d948809673a6a31399f94480c64fd83a066cf69c8"
},
"downloads": -1,
"filename": "texpack-1.0.0a1.tar.gz",
"has_sig": false,
"md5_digest": "3ebac1cc925f5df43d058b1150dcfc95",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4124,
"upload_time": "2024-08-07T13:53:23",
"upload_time_iso_8601": "2024-08-07T13:53:23.482413Z",
"url": "https://files.pythonhosted.org/packages/cf/77/5c53784724c2bd8bf056ea07da3d7c1bd056e5574c42fdea304d632da823/texpack-1.0.0a1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-07 13:53:23",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Mya-Mya",
"github_project": "texpack",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "texpack"
}