100

Possible Duplicate:
Is there an easy way to have my whole document with a space between paragraphs rather than indentation?

I am sure that this must be a dup, but I can't find the right keywords to search for. So I am posting.

Right now my latex paragraphs look like this:

The paragraph does not start out with
an indent.  But when you make a new 
paragraph there is an indent.  
     This is a new paragraph.  Can 
you see the indent?  
     This is another paragraph. 

I would like to have no indenting but and an empty line between paragraphs.
This is what I am using to remove the indents:

\setlength{\parindent}{0}

But I am not sure how to add in new lines. I think it is something like this:

\setlength{\parskip}{1}

Happy Canada Day!

marked as duplicate by lockstep, egreg, barbara beeton, clemens, diabonas Sep 26 '12 at 17:41

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

migrated from stackoverflow.com Sep 26 '12 at 12:58

This question came from our site for professional and enthusiast programmers.

145

Just include the following before \begin{document}

\usepackage[parfill]{parskip}
  • 2
    +1 for this, much better to include a package than to fiddle round with parskip or noindent. – pwaring May 7 '11 at 10:05
  • Before I put this in the preamble, I had been using this code to create a heading: \null\hfill\begin{tabular}[t]{r@{}} Name \\ \today \end{tabular} Now it is no longer flushed right, but set to the left of the right margin a bit. How can I fix this? – Eric Auld Sep 20 '16 at 12:33
  • What does "parfill" do ? I can't see the difference. – 6005 Feb 2 '18 at 3:34
  • Note that when using the amsthm package to include theorems or definitions in your document, the above solution removes the blank line before a theorem. – Abby Apr 26 '18 at 11:37
32

Use the \noindent command.

Example:

This is my paragraph.

\noindent My second paragraph

Check the following out for more detail: LaTeX:Layout guide

  • 7
    Note that \noindent is only for occasional special effects. The correct way to do this is by using the \parindent and \parskip parameters mentioned elsewhere in this thread and in the duplicate answer. – Norman Gray Jul 2 '10 at 7:56
9

Single line

\parskip = \baselineskip

Two lines

\parskip = \baselineskip
\multiply \parskip by 2

or

\parskip = 2\baselineskip % no shrink and no stretch

Fixed vertical space

\parskip = 1cm % Or 1 mm or 1in, for example

Stretchable and shrinkable space

\parskip = 12pt plus 6pt minus 4pt

Zero space

\parskip = 0pt
  • This still leaves me with an indentation after an extra line. How could I remove that indent? – Vishal Gupta Jan 3 '17 at 13:02
2

One solution if it's only locally you want this is to add \newline at the end of a paragraph to get the empty line between the paragraphs and \noindent at the beginning of the next i.e.

The first paragraph start out without an indent. \newline

\noindent This is a new paragraph without indent.

However, if you want the new lines between the paragraphs throughout the document this solution is tedious...

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