平均能量损失
\documentclass[13pt]{scrartcl}
\usepackage[no-files]{xsim}
\usepackage{tasks}
\DeclareExerciseEnvironmentTemplate{main-task}{
\par
\textit{\GetExerciseName}
\GetExerciseProperty{counter}.
}
{\par}
\xsimsetup{
exercise/the-counter = \thesection.\arabic{exercise},
exercise/within = section,
exercise/name = Exercise,
exercise/template = main-task,
solution/template = main-task,
}
\settasks{
label-format = \bfseries,
before-skip = -\parskip,
after-skip = -\parskip,
after-item-skip = -\parskip
}
\begin{document}
This is a simple text before exercise.This is a simple text before exercise.This is a simple text before exercise.This is a simple text before exercise.This is a simple text before exercise.
\begin{exercise}
This is a simple text for exercise.
\end{exercise}
\begin{exercise}
This is a simple text for exercise.
\begin{tasks}(2)
\task This is a simple text for exercise.
\task This is a simple text for exercise.
\task This is a simple text for exercise.
\task This is a simple text for exercise.
\end{tasks}
\end{exercise}
\begin{exercise}
This is a simple text for exercise.
\end{exercise}
This is a simple text for exercise.This is a simple text before exercise.This is a simple text before exercise.This is a simple text before exercise.This is a simple text before exercise.
\begin{exercise}
\begin{tasks}
\task This is a simple text for exercise.
\task This is a simple text for exercise.
\task This is a simple text for exercise.
\end{tasks}
\end{exercise}
\begin{exercise}
\begin{tasks}
\task This is a simple text for exercise.
\task This is a simple text for exercise.
\task This is a simple text for exercise.
\end{tasks}
\end{exercise}
\end{document}
这就是它的作用
我不喜欢以下几件事:
- 运动前的小垂直空间 0.1
- 练习 0.2 的描述及其各部分之间的垂直间距较大
- 运动后垂直空间较小 0.2
- 练习 0.4 中带有空描述的部分的对齐方式。部分内容应从标有“练习 0.4”的行开始,并且所有项目标签应水平等距移动。
我该怎么做?提前致谢