使双列列表与其部分从同一行开始

使双列列表与其部分从同一行开始

按照此:使列表与其部分从同一行开始我现在有两列,而不是四列,但事情没有奏效,你自己看看(你res可以Latex 格式的简历):

\documentclass[margin,line]{res}
\usepackage[inline]{enumitem}
\setlist[itemize]{leftmargin=*}

\usepackage{multicol}

\begin{document}

    Combine the good characteristics from both approaches; I want the first list to start at the same height as ``Languages".

    \section{\sc Languages}
    \begin{multicols}{2}
        \begin{itemize}[leftmargin=*]
            \item English (C2)
            \item German (B1)
            \item Italian (A1)
            \item Greek (native)
        \end{itemize}
    \end{multicols}

    Other solution, which does that, but doesn't vertically align the li's and minimizes the space between the two lines, which is ugly.
    \section{\sc Languages}
    \begin{itemize*}[leftmargin=*,itemjoin={\quad}]
        \item English (C2)
        \item German (B1) \\   % I break the line here
        \item Italian (A1)
        \item Greek (native)
    \end{itemize*}
\end{document}

输出:

在此处输入图片描述

有什么想法可以解决这个问题吗?

答案1

这是使用 的解决方案tasks。如果您希望部分内容采用小写字母,则可以\sectionfont在序言中重新定义。请注意,语法\sc\bfit已被弃用,应使用开关\scshape、或命令、、\bfseries来替换。\itshape\textsc{…}\textbf{…}\textit{…}

\documentclass[margin,line]{res}
\usepackage[inline]{enumitem}
\setlist[itemize]{leftmargin=*}
\def\sectionfont{\scshape}

 \usepackage{tasks}

\begin{document}

    Combine the good characteristics from both approaches; I want the first list to start at the same height as ``Languages".

    \section{Languages}
     \begin{tasks}[label = \textbullet,  after-item-skip = 0.5ex plus 0.5ex](2)
        \task English (C2)
        \task German (B1) %
        \task Italian (A1)
        \task Greek (native)
    \end{tasks}
\end{document} 

在此处输入图片描述

相关内容