In the text editor that I'm using (Atom), it automatically indents when I use \begin{...}. In some cases, it seems to increase the readability of the document, but otherwise seems unnecessary. Is it better to indent or not indent in a TeX file?

closed as primarily opinion-based by Torbjørn T., gernot, egreg, Zarko, Stefan Pinnow Mar 4 '17 at 23:45

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    really it's a matter of personal style, but don't fight your editor, if your editor wants to format/indent the file, either accept that or change the layout options in the editor, if you manually have to keep re-correcting indentation as you and the editor disagree on good style, then it just causes pain. – David Carlisle Feb 19 '17 at 21:46
  • possibly a duplicate of tex.stackexchange.com/questions/65997/… (even though the title mentions vim, neither question nor answer are vim specific) – David Carlisle Feb 19 '17 at 21:48
  • Personally I find that often distract more that it help, specially if this cause a line too long, so you lost the end in the right border or you get a soft line break if wrapping is activated. Anyway, the result is the same, so ... is better as you want. – Fran Feb 19 '17 at 22:21
  • @DavidCarlisle But small disagreements are tolerable, if you like the editor otherwise and can't find a better one ;). Mine wants to indent everything in the document environment, which I don't like. But you only have to correct the first line. So that's annoying but manageable. (Not its most annoying feature, anyway.) – cfr Feb 19 '17 at 22:21
  • It makes it easier to find errors. For me, anyway, if environments are indented as they nest. You've got a visual representation of the nesting. – cfr Feb 19 '17 at 22:23