latexrevise version (return code: 0)
Can't open version: No such file or directory at /usr/bin/latexrevise line 118.
Use of uninitialized value $text in index at /usr/bin/latexrevise line 313.
Use of uninitialized value $text in index at /usr/bin/latexrevise line 314.
Old Document not a complete latex file. Assuming it is a tex file with no preamble.
Use of uninitialized value $body in print at /usr/bin/latexrevise line 282.
latexrevise --help (return code: 255)
Usage: /usr/bin/latexrevise [OPTIONS] [diff.tex] > revised.tex
Read a file diff.tex (output of latexdiff), and remove its markup.
If no filename is given read from standard input. The command can be used
in ACCEPT, DECLINE, or SIMPLIFY mode, and be used to remove user-defined
latex commands from the input (see options -c, -e, -m, -n below).
In ACCEPT mode, all appended text fragments (or preamble lines)
are kept, and all discarded text fragments (or preamble lines) are
deleted.
In DECLINE mode, all discarded text fragments are kept, and all appended
text fragments are deleted.
If you wish to keep some changes, edit the diff.tex file in
advance, and manually remove those tokens which would otherwise be
deleted. Note that latexrevise only pays attention to the \DIFaddbegin,
\DIFaddend, \DIFdelbegin, and \DIFdelend tokens and corresponding FL
varieties. All \DIFadd and \DIFdel commands (but not their content) are
simply deleted. The commands added by latexdiff to the preamble are also
removed.
In SIMPLIFY mode all latexdiff markup is removed from the body of the text (after
\begin{document}) except for \DIFaddbegin, \DIFaddend, \DIFdelbegin, \DIFdelend
tokens and the corresponding FL varieties of those commands. The result
will not in general be valid latex-code but might be easier to read and edit in
preparation for a subsequent run in ACCEPT or DECLINE mode.
In SIMPLIFY mode the preamble is left unmodified.
-a
--accept Run in ACCEPT mode (delete all blocks marked by \DIFdelbegin
and \DIFdelend).
-d
--decline Run in DECLINE mode (delete all blocks marked by \DIFaddbegin
and \DIFaddend).
-s
--simplify Run in SIMPLIFY mode (Keep all \DIFaddbegin, \DIFaddend,
\DIFdelbegin, \DIFdelend tokens, but remove all other latexdiff
markup from body.
Note that the three mode options are mutually exclusive. If no mode option is given,
latexrevise simply removes user annotations and markup according to the following four
options.
-c cmd
--comment=cmd Remove \cmd{...}. cmd is supposed to mark some explicit
anotations which should be removed from the file before
release.
-e envir
--comment-environment=envir
Remove explicit annotation environments from the text, i.e. remove
\begin{envir}
...
\end{envir}
blocks.
-m cmd
--markup=cmd Remove the markup command cmd but leave its argument, i.e.
turn \cmd{abc} into abc.
-n envir
--markup-environment=envir
Similarly, remove \begin{envir} and \end{envir} commands,
but leave content of the environment in the text.
-q
--no-warnings Do not warn users about \DIDadd{..} or \DIFdel statements
which should not be there anymore
-V
--verbose Verbose output