2

Possible Duplicate:
Tool for cleaning LaTeX code

This might not be a TeX question, strictly speaking but I'm sure this is the right forum to ask this: Is there a tool that can format the (La)TeX source documents? To clarify, I'm not trying to typeset TeX sourcecode in output documents -- I have listings, algorithms and minted for that. I'm trying to find a tool that can format my source .tex documents so that they have better indentation etc.

recluze
  • 4,201
  • emacs doesn't do too badly. indent-region is the command you want. I find the 'LaTeX' mode to format code much better than 'TeX' mode. – Justin Bailey Jan 15 '12 at 07:20
  • Thanks but I was hoping for a more general tool as I don't use emacs. (I'm on TeXstudio) – recluze Jan 15 '12 at 07:24
  • Latexindent is cross platform, cross editor, conda enabled, docker enabled, pre-commit enabled – cmhughes Jul 07 '22 at 12:31

0 Answers0