LaTeX Formatter
Beautify LaTeX indentation and run a syntax check.
About this tool
Paste LaTeX and get indented source followed by a comment block with the syntax-check result, so you format and check in one step.
How to use
How it works
The formatter runs the beautifier and then the syntax checker, appending the report as % comment lines so the result can be pasted straight into a file. Remove the comment block when you are happy. The same caveat applies as in the checker: text environments unknown to KaTeX can be reported even if LaTeX accepts them.
result = beautify(source) + "% --- check ---" + report as % comments
Worked example
A clean align block
- Input
- \begin{align} x&=1\\ y&=2 \end{align}
- Output
- \begin{align} x&=1\\ y&=2 \end{align} % --- check --- % OK, no issues found.
- Walkthrough
- The align block is indented, then the checker found nothing to report.
Limitations
- Whitespace and report only; no structural fixes.
- Text-mode environments such as itemize can trigger a KaTeX note in the report.
Questions
What is the difference from the Beautifier?
Can I paste the result into my file?
Does it fix errors it reports?
Features
- Indent plus check
- Comment report
- Runs in your browser
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
PDF, What is it FOR?
Computerphile
Papers and appendices often ship as fixed PDF packets.
Watch on YouTubeHTML Crash Course For Absolute Beginners
Traversy Media
Web writing basics for paper and citation helpers.
Watch on YouTube
- MLA citations by format
MLA Style Center
MLA works-cited patterns for academic tools.
- Chicago citation quick guide
CMOS
Notes-bibliography and author-date quick reference.