复选框的缩进太大了。我希望它与问题的首字母对齐。
\documentclass[11pt,a4paper,addpoints]{exam}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{geometry}
\geometry{margin=1in}
\usepackage[dutch]{babel}
\usepackage{amssymb}
\pointpoints{punt}{punten}
\pointsinmargin
\boxedpoints
\begin{document}
\checkboxchar{$\Box$}
\begin{questions}
\question[1] Een brekingsindex wordt uitgedrukt in
\begin{checkboxes}
\choice Graden
\choice Graden/meter
\CorrectChoice Heeft geen eenheid
\end{checkboxes}
\end{questions}
\end{document}
答案1
exam
checkboxes
为名为 的环境提供了挂钩\checkboxeshook
。这允许您在调用环境之前插入对checkboxes
环境的更改,而无需重新定义整个环境。下面我删除了添加到左边距的\labelsep
水平2.5em
跳过,使其缩进相当远。也许这个删除就足够了:
\documentclass{exam}
\usepackage{amsmath,amssymb}
\usepackage[margin=1in]{geometry}
\pointpoints{punt}{punten}
\pointsinmargin
\boxedpoints
\renewcommand{\checkboxeshook}{%
\settowidth{\leftmargin}{W.}% Included an additional \labelsep + 2.5em skip (now removed)
\labelwidth\leftmargin\advance\labelwidth-\labelsep%
}
\begin{document}
\checkboxchar{$\Box$}
\begin{questions}
\question[1] Een brekingsindex wordt uitgedrukt in
\begin{checkboxes}
\choice Graden
\choice Graden/meter
\CorrectChoice Heeft geen eenheid
\end{checkboxes}
\end{questions}
\end{document}