我正在使用mcexam
套餐。如何去除图片中黄色的空间?
\documentclass[11pt]{article}
% Packages
\usepackage[a4paper,margin=1.5cm, portrait]{geometry}
\usepackage{amsmath}
\usepackage[T1, T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[output=exam]{mcexam}
% Document
\begin{document}
\begin{mcquestions}
\question Test question I
\begin{mcanswerslist}
\answer answer a
\answer[correct] answer b
\answer answer c
\answer answer d
\end{mcanswerslist}
\question Test question II
\begin{mcanswerslist}
\answer answer a
\answer answer b
\answer answer c
\answer[correct] answer d
\end{mcanswerslist}
\question Test question III
\begin{mcanswerslist}
\answer answer a
\answer answer b
\answer answer c
\answer[correct] answer d
\end{mcanswerslist}
\question Test question IV
\begin{mcanswerslist}
\answer answer a
\answer answer b
\answer answer c
\answer[correct] answer d
\end{mcanswerslist}
\end{mcquestions}
\end{document}
答案1
列表mcexam
定义使用enumitem
,间距可以使用其命令调整setlist
。从文档的mcexam
,我认为您想要减少间距的列表称为setmcquestions
,其默认设置(如文档第 14 页所述)是
\setlist[setmcquestions]{label=\mcquestionlabelfmt{*}.,
ref=\mcquestionlabelfmt{*},
itemsep=2\baselineskip,
topsep=2\baselineskip}
您认为过大的间距是不同项目之间的间距,它由 的值给出itemsep
。设置较低的值将减小间距。
在下面的例子中,我将间距减小到.5\baselineskip
。
\documentclass[11pt]{article}
% Packages
\usepackage[a4paper,margin=1.5cm, portrait]{geometry}
\usepackage{amsmath}
\usepackage[T1, T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[output=exam]{mcexam}
\setlist[setmcquestions]{
label=\mcquestionlabelfmt{*}.,
ref=\mcquestionlabelfmt{*},
itemsep=.5\baselineskip,
topsep=2\baselineskip}
% Document
\begin{document}
\begin{mcquestions}
\question Test question I
\begin{mcanswerslist}
\answer answer a
\answer[correct] answer b
\answer answer c
\answer answer d
\end{mcanswerslist}
\question Test question II
\begin{mcanswerslist}
\answer answer a
\answer answer b
\answer answer c
\answer[correct] answer d
\end{mcanswerslist}
\question Test question III
\begin{mcanswerslist}
\answer answer a
\answer answer b
\answer answer c
\answer[correct] answer d
\end{mcanswerslist}
\question Test question IV
\begin{mcanswerslist}
\answer answer a
\answer answer b
\answer answer c
\answer[correct] answer d
\end{mcanswerslist}
\end{mcquestions}
\end{document}