42

I am finding this very inefficient, every time I type up something MiKTeX just indents for me and I have to enclose everything in \noindent{...}.

Is there a quick way of going past this?

4
  • 9
    \noindent is a switch, not a macro that takes an argument. Therefore, you don't need the braces.
    – Werner
    May 9, 2012 at 3:24
  • I do...if I don't the next sentence in my document just keeps indenting without my permission.
    – Lemon
    May 9, 2012 at 3:28
  • Maybe indentation helps recognising the paragraphs?
    – user10274
    Nov 10, 2016 at 8:47
  • Of course normally typeset text has paragraph indent. What kind of text is it that you are writing where you don't want paragraph indentation? Maybe the real solution is that you use a document class that is meant for the type of text you are writing.
    – pst
    Feb 5, 2021 at 17:33

1 Answer 1

59

If you don't want any indent, anywhere in your document, add \setlength{\parindent}{0pt} in your document preamble. This quick-fix works, but it is better to include the parskip package. It manages the two lengths \parskip and \parindent together:

\usepackage{parskip}% http://ctan.org/pkg/parskip

From the parskip documentation:

Package to be used with any document class at any size. It produces the following Paragraph Layout:

Zero \parindent and non-zero \parskip. The stretchable glue in \parskip helps LaTeX in finding the best place for page breaks.

In addition, the package adjusts the skips between list items. With package option parfill, the package also adjusts \parfillskip to impose a minimum space at the end of the last line of a paragraph.

memoir and KOMA-script classes provide similar functionality.

15
  • 5
    @jak Especially because you are new to this game, you should use Werner's second solution. Use the parskip package, instead of just changing the \parindent length.
    – Alan Munn
    May 9, 2012 at 3:30
  • 7
    @jak: The parskip package does more than just \setlength{\parindent}{0pt}. It also maintains other lengths that "interact with \parindent" (like lists).
    – Werner
    May 9, 2012 at 3:39
  • 2
    @jak: "Changing \parindent and \parskip is considered as one of the deadly sins", as per Too much white space before enumerate. May 9, 2012 at 15:26
  • 1
    @PeterGrill it seems the reference I mention above is against the combination of \setlength{\parindent}{0pt} and \setlength{\parskip}{\baselineskip}, because of the side effects of \parskip. It seems \setlength{\parindent}{0pt} in isolation is harmless. If you know more, I would like to hear your thoughts. Dec 24, 2015 at 9:56
  • 2
    \usepackage{parskip} adds vertical spacing between elements throughout the document. \setlength{\parindent}{0pt} solves it without side-effects.
    – qubodup
    May 24, 2016 at 20:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .