[Tex/LaTex] Reduce the spacing between paragraphs

paragraphsspacing

The problem I have is that the spacing between the paragraphs are too large. I have tried the \setlength{\parskip}{0.1mm} command but it does not give the correct spacing that I want.

I have also tried \raggedbottom but neither does that work.

Here is some example code:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\usepackage{titling}
\usepackage{blindtext}
\usepackage[a4paper, top=1cm]{geometry}
%\usepackage{parskip}

\setlength{\parskip}{0.1mm}
\raggedbottom

\title{Open Source och Licenser}
\author{Martin}

\begin{document}

\maketitle

\paragraph{}
\blindtext
\paragraph{}
\blindtext

\end{document}

I read in another thread that the parskip package would be good to use for this kind of problem, but I did not get it to work. As you can see I have commented the \usepackage{parskip} because all it does in my document is reducing the spacing between the title and the author lines.

Here is an image of how the document looks:

enter image description here

What I want to do is to reduce the spacing between the paragraphs so it is almost non existent. Is there any easy way to do that?

Best Answer

\paragraph{} doesn't have to be issued to start a paragraph. It is actually a sectional unit (level 4, in fact) used to set a heading for a paragraph (usually run-in). Here's an example:

enter image description here

\documentclass{article}

\usepackage{blindtext}

\begin{document}
\paragraph{First paragraph}
\blindtext
\paragraph{Second paragraph}
\blindtext

\end{document}

Since \paragraph sets a heading it also adds some space before it to separate it from the regular paragraph text. Without it, leave a blank line or insert an explicit \par to separate a paragraph:

enter image description here

\documentclass{article}

\usepackage{blindtext}

\begin{document}

\blindtext

\blindtext

\end{document}
Related Question