# How to insert vertical space between paragraphs [duplicate]

Googling didn't give required results. (Many, but not applicable or code doesn't work)

Essentially, what I want to do is the same formatting I just did with this question.

What I use at the moment is \\\\. Being from developers' circle I tend to deal with all kinds of warning. These four slashes give me badboxes. How to produce exactly same correct formatting I just did now with this text.

I appreciate your help.

UPDATE:

I upvoted all the answers, thanks for the contribution. All of your examples work. It seems for two years I never left two empty spaces to break the text...

-
Somehow I think we are missing a few things as you seem to reference something "this question" "this text" but without links to them. A MWE may be of some help here. –  ArTourter Mar 24 '12 at 0:54
Do you mean "end a paragraph and start a new one with some space in between"? –  cgnieder Mar 24 '12 at 0:54
If you just leave a blank line between paragraphs that will start a new paragraph. If it does not for you, please compose a fully compilable MWE that illustrates the problem including the \documentclass and the appropriate packages. –  Peter Grill Mar 24 '12 at 1:03
Please see the updated question, what I tried for long time is reinvent the wheel. Sins of 'word' I guess. Anyway I got bunch of good solutions which I will keep record of. –  Aubergine Mar 24 '12 at 1:21
@Aubergine: This renders my answer rather irrelevant for the question, please consider accepting Peter's answer instead. –  krlmlr Mar 24 '12 at 1:30
show 12 more comments

## marked as duplicate by cmhughes, Thorsten, lockstep, egreg, percusseMar 24 '12 at 12:17

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.

## 3 Answers

Here is the content of your question:

\documentclass{article}
\setlength{\parskip}{\baselineskip}%
\setlength{\parindent}{0pt}%
\begin{document}
Googling didnt give required results.(many, but not applicable or code doesn't work)

Essentially, what I want to do is the same formatting I just did with this question.

I am really sceptical about LaTeX whenever you encounter problem which can't be solved in 30 minutes means that you are unlikely to find correct solution.

What I use at the moment is \verb|'\\\\'|. Being from developers' circle I tend to deal with all kind of warning. These four slashes give me 'badboxes'. How to produce exactly same correct formatting I just did now with this text.

I appreciate your help and not critics. These kind of operations should not be a ritual dance around the fire in the first place.
\end{document}

-
The parskip package is preferable to \parskip=\baselineskip; see tex.stackexchange.com/a/14565/9092. Also, parskip implements the option parfill, which helps to identify paragraph boundaries. –  rdhs Mar 24 '12 at 1:29
add comment

It should hardly ever be necessary in normal text to use \\ (or newline).

If I am right assuming you want a space between paragraphs you can either use the parskip option if you're using a KOMA class (like scrartcl) or set the length \parskip to a value you like, if you're using a standard class. (I just see that Peter Grill already mentioned the latter in his answer so below's just the example for a KOMA class).

Edit: I just learned from here it is better not to set \parskip yourself but use the parskip package with the standard classes.

\documentclass[parskip=full]{scrartcl}
\begin{document}

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita
kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem
ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos
et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea
takimata sanctus est Lorem ipsum dolor sit amet.

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita
kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem
ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos
et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea
takimata sanctus est Lorem ipsum dolor sit amet.

\end{document}

-
add comment

This answers the original question on how to make \\\\ compile properly. The other replies address vertical space between paragraphs.

Option 1: Add a non-breaking space between the line terminators:

\\~\\


Option 2: Introduce additional vertical space:

\\[12pt]


To achieve this for every paragraph, look at the parskip package. If you want to do this for every line, consider using the setspace package.

-
Both slashes should be backslashes. option 1 produces bad box. Option 2 works. Please update your question or justify your forward slashes, so I will accept your question. –  Aubergine Mar 24 '12 at 1:04
Yes of course, thanks. But option 1 worked for me in many cases. Would you mind posting a MWE that shows where it doesn't work? –  krlmlr Mar 24 '12 at 1:06
add comment