我正在使用该tasks
软件包构建一组数学测试。有些问题需要放在一列中,有些问题需要放在多列中,因此我使用单独的tasks
环境。但是,每次我结束一个tasks
环境并开始一个新环境时,我都会得到一些我不想要的额外垂直空白。例如:
\documentclass{article}
\usepackage{tasks}
\NewTasks[
counter-format={tsk[1].},
label-format=\bfseries,
label-width=0.25in,
label-align=right,
label-offset=0.1in,
item-indent=0.35in,
after-item-skip=10pt,
resume=true
]{problems}[\prob]
\begin{document}
\begin{problems}
\prob Single-column problem 1
\prob Problem 2
\end{problems}
\begin{problems}(2)
\prob Double-column problems
\prob Problem 4
\end{problems}
\end{document}
这个空白从何而来?消除它的最佳方法是什么?我应该设置after-skip
为负值吗?设置为多少?顺便说一句,我正在使用 ShareLaTeX,看看这是否有区别。
答案1
在最新版本中这不再是问题tasks
:
\documentclass{article}
\usepackage{tasks}[2022-01-08]
\NewTasksEnvironment[
label = \arabic*. ,
label-format = \bfseries ,
label-width = 0.25in ,
label-align = right ,
label-offset = 0.1in ,
item-indent = 0.35in ,
after-item-skip = \topsep,
resume=true
]{problems}[\prob]
\begin{document}
\begin{problems}
\prob Single-column problem 1
\prob Problem 2
\end{problems}
\begin{problems}(2)
\prob Double-column problems
\prob Problem 4
\end{problems}
Or:
\begin{problems}(2)
\prob* Single-column problem 1
\prob* Problem 2
\prob Double-column problems
\prob Problem 4
\end{problems}
\end{document}