Is there any indentation tool for (la)tex?
I currently use TexShop under Mac OSX, so I can either use a TexShop plugin or a command line tool.
Is there any indentation tool for (la)tex?
I currently use TexShop under Mac OSX, so I can either use a TexShop plugin or a command line tool.
Just have a look to latexindent.pl. In my opinion an interesting tool. Have a look at LaTeX code sniffer and/or beautifier? for details.
command ]to indent, andcommand [to unindent. Not very automated, but does work, and that way I have control of what it looks like. – Peter Grill Feb 23 '13 at 17:13command ]on the first line, then all lines following will retain that indent (at least inTeXShop). Similarly if you are coming out of an indented block, usecommand [. For text that already exist select the block you want to indent and applycommand ]. Any automated tool won't easily be able to work with custom environments or macros without some configuration set up. – Peter Grill Feb 23 '13 at 18:25