Issue
I am trying to set spacing between paragraphs using \parskip
but it also affects section titles and "breaks" formatting.
Question
How can I set up a skip between paragraphs without having it influence section formating?
Bonus question
The frame around the title in the screenshot without parksip
is closer to the top than to the bottom of the text. Why is that and how can I fix it?
Demo
- Default
- With
parskip
MWE
\documentclass{article}
\usepackage{mwe}
\usepackage{titlesec}
\setlength{\parskip}{1em}
\titlespacing*{\section}{0pt}{0pt}{0pt}
\titleformat{\section}
[frame]
{\normalfont}
{}
{0pt}
{\quad \Large \bfseries \Roman{section}. \enskip \MakeUppercase}
\begin{document}
\section{Section 1}\label{sec:section-1}
\lipsum[1]
\subsection{Subsection}\label{sec:subsection}
\lipsum[2]
\lipsum[3]
\end{document}