如何使用任务包在每一行后插入“跳过”?

如何使用任务包在每一行后插入“跳过”?

目前,我主要使用tasks包。效果很好。唯一的问题是找到一种方法来使after-skip=6\baselineskip每一行都起作用?

那可能吗?

\documentclass[12pt,a4paper]{article}

\usepackage{amsmath,enumerate}

\usepackage[more]{tasks}

\NewTasks[
counter-format={tsk[a])}, %%a,A,r,R
label-format=\bfseries,
label-width=1.5em,
label-align=left,        %% or right as you wish
label-offset=0.5em,
item-indent=2em,
after-item-skip=0pt,
after-skip=6\baselineskip,
before-skip=-0.5\baselineskip,
resume=false             %% comment this for not to resume
]{problems}[\item](3)    %% (4) here makes all of them in 4 columns

\begin{document}

%% current
\begin{problems}(3)
    \item $730+895+170$
    \item $820-456+280$
    \item $900-456-244$
    \item $89+997$
    \item $103-60$
    \item $458+996$
    \item $876-580+220$
    \item $997+840+260$
    \item $956-197-56$
\end{problems}



%% desired

\begin{problems}(3)
    \item $730+895+170$
    \item $820-456+280$
    \item $900-456-244$
\end{problems}
\begin{problems}[resume=true](3)
    \item $89+997$
    \item $103-60$
    \item $458+996$
\end{problems}
\begin{problems}[resume=true](3)
    \item $876-580+220$
    \item $997+840+260$
    \item $956-197-56$
\end{problems}

\end{document}

答案1

设置after-item-skip为除 之外的其他值0pt,默认值为1ex plus 1ex minus 1ex

相关内容