![我想减少考试类别中复选框的缩进量](https://linux22.com/image/476516/%E6%88%91%E6%83%B3%E5%87%8F%E5%B0%91%E8%80%83%E8%AF%95%E7%B1%BB%E5%88%AB%E4%B8%AD%E5%A4%8D%E9%80%89%E6%A1%86%E7%9A%84%E7%BC%A9%E8%BF%9B%E9%87%8F.png)
复选框的缩进太大了。我希望它与问题的首字母对齐。
\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}