Reputation: 687
In LaTeX, it's easy to control the vertical spacing in an itemized list by using \setlength\itemsep{1em}
:
\begin{itemize}
\setlength\itemsep{1em}
\item one
\item two
\item three
\end{itemize}
How would I control this in Quarto / RMarkdown? If I write an itemized list using just markdown, I can't control the spacing, e.g.:
1. one
2. two
3. three
Is there a way to set a "global" spacing setting for all itemized or bullet lists? That would work.
Otherwise, is there a way to set the vertical spacing for a markdown list?
Edit:
This is the header I'm using for a Quarto PDF document (I didn't realize the solutions might be sensitive to the document class):
---
format:
pdf:
documentclass: scrartcl
papersize: letter
pdf-engine: xelatex
geometry:
- margin=1in
- heightrounded
include-in-header:
- preamble.tex
---
Upvotes: 3
Views: 1175
Reputation: 38818
Assuming your are using the quarto pdf format, you could do something like this:
---
format: pdf
header-includes:
- \apptocmd{\tightlist}{\setlength{\itemsep}{10pt}}{}{}
---
1. one
2. two
3. three
Upvotes: 4