126

I'm using a template that I can't/shouldn't modify. This template forces that every time a new paragraph begins, there is an indentation added. In some rare cases this is just looking really ugly and that's why I'd like to avoid this indentation. Is there any way to do this without changing the template?

133

You can avoid the paragraph indention for specific paragraphs with the \noindent macro. If you want to disable it globally you could use \setlength{\parindent}{0pt}. However, I would not recommend changing it globally in your case, because that's effectively changes the template, even if the actual file isn't modified.

  • 11
    It might be useful to note that, if used inside curly brackets, \setlength{\parindent}{0pt} can disable indentation limited to the bracketed portion of the document. – mmj Sep 25 '15 at 2:43
  • 4
    @mmj: True, but this should be basic knownledge for anyone except early beginners. Every change except explicite global one are limited to the current group. – Martin Scharrer Sep 27 '15 at 18:39
80

The parskip package turns off the indentation and adds a little bit of (stretchable) space in between paragraphs. It might be an option if you don't mind the inter-paragraph spacing. Simply add \usepackage{parskip} to your preamble to use the package. Martin's last sentence applies to this solution as well, of course.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.