試験クラスのチェックボックスのインデントを減らしたい

試験クラスのチェックボックスのインデントを減らしたい

チェックボックスのインデントが大きすぎます。質問の最初の文字に揃えたいです。

\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

examcheckboxesは、 と呼ばれる環境へのフックを提供します。これにより、環境全体を再定義することなく、環境が呼び出される直前に環境\checkboxeshookに変更を挿入できます。以下では、左マージンに追加されたと水平スキップを削除して、かなりインデントを大きくしています。おそらく、この削除で十分でしょう。checkboxes\labelsep2.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}

関連情報