Skip to main content

Pack LaTeX Files into Single .tex File

Project description

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, which serves a similar purpose.

Usage

Install the package if you don't have yet.

python3 -m pip install texpack

Move to your LaTeX project directory.

cd your/LaTeX/project

Call our module to execute. In the 1st argument, apply the root tex file of your project.

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.

python3 -m texpack root-texfile.tex -o main.tex

In the example above, the file "main.tex" will be generated.

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

texpack-1.0.0a1.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file texpack-1.0.0a1.tar.gz.

File metadata

  • Download URL: texpack-1.0.0a1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for texpack-1.0.0a1.tar.gz
Algorithm Hash digest
SHA256 1c977bd5d07b87363a500c5d948809673a6a31399f94480c64fd83a066cf69c8
MD5 3ebac1cc925f5df43d058b1150dcfc95
BLAKE2b-256 cf775c53784724c2bd8bf056ea07da3d7c1bd056e5574c42fdea304d632da823

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page