选项之间的垂直对齐

选项之间的垂直对齐

我想调整 A 和 D,B 和 E 之间的垂直对齐。

在此处输入图片描述

我希望它是这样的: 在此处输入图片描述

\documentclass[a4paper]{article}
\usepackage[margin=4.cm]{geometry}
\usepackage{amsmath}
\usepackage{ragged2e}
\usepackage{tasks}
\usepackage{enumitem}
\newlength{\taskindent}
\settowidth{\taskindent}{\text{m)}}
\settasks{
    item-indent=\taskindent,
    label-format=\MakeUppercase, 
    after-skip = 3ex,
}

\begin{document}
        \textbf{I want to adjust the vertical alignment between A and D, B and E.}
\begin{tasks}(5)
                \task*(2) text
                \task*(2) text
                \task text
                \task*(2) text
                \task text
\end{tasks}
\end{document}

答案1

用于after-item-skip行之间的距离:

\documentclass[a4paper]{article}
\usepackage[margin=4.cm]{geometry}
\usepackage{tasks}

\settasks{
  item-indent = 15pt ,
  label-width = 12pt ,
  column-sep = 10em ,  % <<< maybe use this instead of empty columns?
  label = \Alph*) ,
  after-skip = 3ex ,
  after-item-skip = 2cm % <<< between rows
}

\begin{document}

\begin{tasks}(3)
  \task text
  \task text
  \task text
  \task text
  \task text
\end{tasks}

\end{document}

在此处输入图片描述

相关内容