flat-tex: flatten a latex multi-file latex document and remove all comments

[ gpl, program, text ] [ Propose Tags ] [ Report a vulnerability ]

flatten a latex multi-file latex document and remove all comments


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.3.1, 0.6.0, 0.6.1, 0.7.0, 0.8.0
Dependencies base (<5), directory, parsec [details]
License GPL-2.0-only
Author Johannes Waldmann
Maintainer http://www.imn.htwk-leipzig.de/~waldmann/
Category Text
Home page https://github.com/jwaldmann/flat-tex
Source repo head: git clone https://github.com/jwaldmann/flat-tex
Uploaded by JohannesWaldmann at 2022-03-25T18:57:49Z
Distributions NixOS:0.8.0
Reverse Dependencies 1 direct, 0 indirect [details]
Executables flat-tex
Downloads 2563 total (9 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2022-03-25 [all 1 reports]

Readme for flat-tex-0.8.0

[back to package description]

flat-tex

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 and \bibliography)
  • 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

How \bibliography{...}is expanded:

  • the file top.bbl is processed, where top.tex is the file that contains the \bibliography statement