General ⇒ LaTeX formatter like HTML Tidy?
LaTeX formatter like HTML Tidy?
Is there a program that can bring messy (but correct) LaTeX code in a more readable form? I have some huge formulas that could use a standartized spacing, extra spaces before and after braces etc.
NEW: TikZ book now 40% off at Amazon.com for a short time.

Re: LaTeX formatter like HTML Tidy?
I would also be interested in such a tool...
Any help?
Any help?
-
- Posts: 1
- Joined: Tue Aug 30, 2011 11:02 am
LaTeX formatter like HTML Tidy?
I did some googling and there seem to be two options to pretty print/tidy/beautify LaTeX code:
- TextMate seems to have this functionality, but TextMate is only for Mac OS X
- There is a Perl script made by Eric Hsu here, though as he himself says: it's simple and naive.
Running the Perl script requires an installation of Perl (obviously) and can be run in Windows via console by typingCode: Select all
type inputfile.tex|perl LaTeXTidy-0.31.pl>outputfile.tex
Re: LaTeX formatter like HTML Tidy?
I'm also interested in something like this, especially if it's Linux compatible.
Re: LaTeX formatter like HTML Tidy?
Excuse the resurrection of an old thread. But I just created an online tool to format LaTeX code like HTML Tidy. I have not yet implemented personal preference of tab vs space. But It does most basic formatting.
http://c.albert-thompson.com/latex-pretty/
http://c.albert-thompson.com/latex-pretty/