
我想建立一個exam
課堂文檔,其中的問題採用「問題 1」或「問題 1」的形式,並在左邊距中列出要點。
更改 qformat 會完全消除這些點,除非我將它們包含在新的 qformat 中。例如以下
\qformat {Problem~\thequestiontitle. \hfill}
\pointsinmargin
根本不產生點值。我可以\thepoints
在 qformat 中的某個位置添加它們,它們將會出現,但不會出現在頁邊距中。
以下 MWE 將點(應位於頁邊空白中)標記在問題標籤的正上方。
\documentclass [addpoints, letterpaper, 12pt] {exam}
\renewcommand {\questionlabel} {\textbf{Problem}~\thequestiontitle.}
\bracketedpoints
\pointsinmargin
\begin {document}
\begin {questions}
\question [20] Some text.
\end {questions}
\end {document}
考試課程似乎設計得很好並且有很好的記錄,所以我猜我錯過了這個問題的一個很好的解決方案。但我只能透過添加 \hspace* 等來產生稍微更好的結果。
編輯:我希望「問題 1」與文本的其餘部分齊平,而不是像透過這個答案。