[Tex/LaTex] Autoformat latex source

cleanupsourcecodetools

Possible Duplicate:
Tool for cleaning LaTeX code

I got a simple question.

I just got hold of a, very "ugly" latex document. By ugly I mean, that the source code is almost unreadable.

Is there a application (or a plugin …) to autoformat latex markup?

Best Answer

Emacs in latex mode does a very good job. Just open the document in Emacs, select it and run C-M-\ (indent-region)

Related Question