I have a big bunch of old to new LaTeX documents written by several independent people. I have to bring them up to date, modern and consistent, standardized LaTeX code. In these documents there are a lot of common "mistakes" or quirks. For example:
\begin{equation}
a = b
\nonumber
\end{equation}
instead of just
\[
a = b
\]
and similar cases (eqnarray instead of align and so on). Or completly random code linebreaks in text (no output changing breaks, like paragraphs) that could be joined.
What tools are recommended to automate such kind of tasks? Mainly to change code snippets to other code snippets without changing the raw content of the snippet. A find-and-replace that takes care of LaTeX syntax/semantic, so to speak.
Are there such tools? I'm working on Windows.