Text FormattingHow to insert a blank line between any two paragraphs???

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
subjugater
Posts: 7
Joined: Sat Nov 28, 2009 8:46 pm

How to insert a blank line between any two paragraphs???

Post by subjugater »

I'm using the following as the start of my code

Code: Select all

\documentclass[a4paper,12pt]{article}
\usepackage{fullpage}
\usepackage{latexsym,amsmath,amssymb}    
\usepackage{graphicx}  
\begin{document}
......
But I have only an indentation at the beginning of each paragraph, which, actually, is not what I want. What should I do if I need to insert a blank line between any two paragraphs? Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

How to insert a blank line between any two paragraphs???

Post by frabjous »

You could try:

Code: Select all

\addtolength{\parskip}{\baselineskip}
...right before \begin{document}.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

How to insert a blank line between any two paragraphs???

Post by localghost »

I would be very careful with the length \parskip. It affects other parts of the document where this might not be desired. The parskip package prevents such undesired effects.

In my opinion an indentation and a blank line in combination do not make sense. There should only be the one or the other. You can add several spaces between paragraphs.

Code: Select all

\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[centering,includeheadfoot,margin=3cm]{geometry}
\usepackage{blindtext}

\begin{document}
  \blindtext

  \smallskip
  \blindtext

  \medskip
  \blindtext

  \bigskip
  \blindtext
\end{document}
These lengths are rubber lengths and can be stretched or compressed. But with space between paragraphs you should set the length \parindent to zero.


Best regards
Thorsten
subjugater
Posts: 7
Joined: Sat Nov 28, 2009 8:46 pm

How to insert a blank line between any two paragraphs???

Post by subjugater »

frabjous wrote:You could try:

Code: Select all

\addtolength{\parskip}{\baselineskip}
...right before \begin{document}.
Thanks, man. The way you suggested works pretty well. Thanks, again. :)
subjugater
Posts: 7
Joined: Sat Nov 28, 2009 8:46 pm

How to insert a blank line between any two paragraphs???

Post by subjugater »

localghost wrote:I would be very careful with the length \parskip. It affects other parts of the document where this might not be desired. The parskip package prevents such undesired effects.

In my opinion an indentation and a blank line in combination do not make sense. There should only be the one or the other. You can add several spaces between paragraphs.

Code: Select all

\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[centering,includeheadfoot,margin=3cm]{geometry}
\usepackage{blindtext}

\begin{document}
  \blindtext

  \smallskip
  \blindtext

  \medskip
  \blindtext

  \bigskip
  \blindtext
\end{document}
These lengths are rubber lengths and can be stretched or compressed. But with space between paragraphs you should set the length \parindent to zero.


Best regards
Thorsten
Thorsten,

Thanks for your post. Yes, you are right. It does not make much sense, if both of an indentation and a blank line are used. I'll take what you suggestion by only using a blank line between paragraphs. Thanks, man :)
Post Reply