On 20/10/15 22:28, ***@gmail.com wrote:
> On Monday, July 30, 1990 at 4:55:48 PM UTC-7, ***@violet.berkeley.edu wrote:
>> Is there a tool to assist in coding TeX and LaTeX documents and
>> macros? I have in mind something like "indent" for C. Among other
>> things, it indents program blocks, breaks lines and checks some of the
>> Geraldo Veiga
> Excuse the bump but this post is high so it seems that people actually visit this often.
> I have created one https://c.albert-thompson.com/latex-pretty/ It focuses on indenting blocks. It does not check syntax though.
The answer is much the same as it was in 1990: most [La]TeX-sensitive
editors do something like this already. Emacs is possibly the locus
In any case, indentation routines should use a small default indent (2
spaces, maybe 3) because many people write complex code which means many
indent levels. Having the default indent set to 7 or 8 is way too much.
The amount should of course be configurable anyway. Using TAB characters
to indent is strictly a no-no.