By reading \topsep, \itemsep, \partopsep and \parsep - what does each of them mean (and what about the bottom)?, I learned how spacing works, therefore I am trying to do some spacing settings/adjusting.
Initially I tried this:
\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[brazil]{babel}
\usepackage[a4paper, margin=2cm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[shortlabels]{enumitem}
\begin{document}
\begin{enumerate}[itemsep=\parsep+\itemsep,parsep=0pt] % <--- Here
\item https://github.com/jbeder/yaml-cpp
Some text.
\item https://github.com/trishume/syntect
\end{enumerate}
\end{document}
But the the compiler seems not liked:
test.tex:12: Missing number, treated as zero. [...rate}[itemsep=\parsep+\itemsep,parsep=0pt]]
test.tex:12: Illegal unit of measure (pt inserted). [...rate}[itemsep=\parsep+\itemsep,parsep=0pt]]
Update
I would like to:
- Sum the
parsep
anditemsep
values - Attribute them to my list option
itemsep
- And set
parsep
to zero.
This is a picture about it from [1]:
\dimexpr\parsep+\itemsep\relax
\usepackage{calc}
but what do you thinkitemsep=\itemsep+\parsep
should give you?parsep
anditemsep
values, attribute them to my listitemsep
and setparsep
to zero. I Updated the question within a picture. Thanks @DavidCarlisle, I tried your expression and it worked!calc
package instead (a bit more LaTeXy).