Skip to main content

strip comments from LaTeX sources.

Project description

texstrip is a small tool that strips (removes) comments from TeX sources. I made this tool to relieve myself from manually deleting comments when submitting TeX sources to [arXiv](

It removes both inline comments (i.e., things between % and the next \n) and comment environments (i.e., things within \begin{comment} and \end{comment}), copies the supplementary files to a new folder for a clean submission.

LaTeX is a complex beast and this tool, despite its humble goal, might fail on corner cases. I fixed many of them during my own use but YMMV. If you do encounter glitches, please submit a PR and let’s make it better together!

Getting texstrip

You’ll need latexpand.

texstrip can be installed from pip by

pip install texstrip


(More text to be added here. For now, refer to the help message.)

texstrip --help
  • TODO: add an example

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for texstrip, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size texstrip-0.0.3-py3-none-any.whl (9.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page