Last active
April 29, 2018 09:09
-
-
Save mooz/ea98bd35ac4b041bef9afa3f7f719954 to your computer and use it in GitHub Desktop.
latex-strip-comments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Usage: latex-strip-comments.sh some_tex_file.tex | |
cat $1 | latexpand --empty-comments - | sed '/^\s*%/d' | cat -s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment