嵌套多列列表中标题之间的垂直间距

嵌套多列列表中标题之间的垂直间距

您好,我有以下 MWE,想知道是否使用\\BP,或者是否有更清晰/更好的方法来实现每个标题之间的间距。也欢迎对此外观的一般意见。

梅威瑟:

\documentclass[12pt]{scrreprt}
\usepackage[a4paper, includehead, left=3.5cm, right=1.7cm, top=2.5cm, bottom=2.0cm]{geometry}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\usepackage{multicol}
\usepackage[onehalfspacing]{setspace}
\usepackage{enumitem}



\begin{document}
\begin{multicols}{2}
    \setlist[itemize]{wide =0pt, leftmargin=*, nosep,before=\KOMAoptions{parskip=false}}
    \begin{enumerate}[topsep=0pt,itemsep=-1ex,partopsep=1ex,parsep=1ex,leftmargin=*]
        \item Heading
        \begin{itemize}
            \item Item 1
            \item Item 2
            \\
        \end{itemize}
        \item Heading
        \begin{itemize}
            \item Item 1
            \item Item 1
            \item Item 1
            \\
        \end{itemize}
        \item Heading
        \begin{itemize}
            \item Item 1
            \item Item 1
            \item Item 1
            \item Item 1
            \vfill\null
            \columnbreak
        \end{itemize}
    \item Heading
        \begin{itemize}
        \item Item 1
        \item Item 1
        \item Item 1
        \item Item 1
        \\
        \end{itemize}
    \item Heading
        \begin{itemize}
        \item Item 1
        \item Item 1
        \item Item 1
        \item Item 1
        \\
        \end{itemize}
    \end{enumerate}
\end{multicols}

\end{document}

答案1

更改parsep3.5ex似乎可以实现您想要的,而无需添加空行\\

\documentclass[12pt]{scrreprt}
\usepackage[a4paper, includehead, left=3.5cm, right=1.7cm, top=2.5cm, bottom=2.0cm]{geometry}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\usepackage{multicol}
\usepackage[onehalfspacing]{setspace}
\usepackage{enumitem}



\begin{document}
\begin{multicols}{2}
    \setlist[itemize]{wide =0pt, leftmargin=*, nosep,before=\KOMAoptions{parskip=false}}
    \begin{enumerate}[topsep=0pt,itemsep=-1ex,partopsep=1ex,parsep=3.5ex,leftmargin=*]
        \item Heading
        \begin{itemize}
            \item Item 1
            \item Item 2
        \end{itemize}
        \item Heading
        \begin{itemize}
            \item Item 1
            \item Item 1
            \item Item 1
        \end{itemize}
        \item Heading
        \begin{itemize}
            \item Item 1
            \item Item 1
            \item Item 1
            \item Item 1
            \vfill\null
            \columnbreak
        \end{itemize}
    \item Heading
        \begin{itemize}
        \item Item 1
        \item Item 1
        \item Item 1
        \item Item 1
        \end{itemize}
    \item Heading
        \begin{itemize}
        \item Item 1
        \item Item 1
        \item Item 1
        \item Item 1
        \end{itemize}
    \end{enumerate}
\end{multicols}

\end{document}

在此处输入图片描述

相关内容