The flat-tex package

[Tags:gpl, program]

flatten a latex multi-file latex document: expand all input statements and remove all comments

[Skip to Readme]


Versions 0.3.1
Dependencies base (<5), directory, parsec [details]
License GPL-2
Author Johannes Waldmann
Category Text
Home page
Source repository head: git clone
Uploaded Sun Oct 11 16:58:34 UTC 2015 by JohannesWaldmann
Distributions NixOS:0.3.1
Downloads 98 total (3 in the last 30 days)
0 []
Status Docs not available [build log]
Last success reported on 2016-12-01 [all 5 reports]


Maintainer's Corner

For package maintainers and hackage trustees

Readme for flat-tex

Readme for flat-tex-0.3.1


The use case for this tool is: your paper has been accepted at a conference, and now you have to submit the latex sources for inclusion in the proceedings.

But - your sources contain some information that you don't want to reveal. E.g., it contains \todo{fix proof of previous theorem}.

flat-tex does the following:

  • flatten a multi-file latex document (recursively expanding all \input)
  • remove all \todo{..}, \reminder{..} and comments (% ...)

How \input{foo} is expanded:

  • if the file foo does exist, then it is processed
  • else foo.tex is processed