修改考試班級成績表,使所有問題的分數相同

修改考試班級成績表,使所有問題的分數相同

是否可以手動更改各個問題點,以便所有問題都有相同的點?

我不想在\question[].?中分配特定點

我知道如何強制總分,但我找不到有關如何手動將所有問題中的所有分更改為同一分的資訊。

我的MWE

\documentclass[addpoints]{exam}
\begin{document}
    
\begin{questions}
\question This is Q1 with no marks.
\question This is Q2 with no marks.
\question This is Q3 with no marks.
\end{questions}

\settabletotalpoints{3}\gradetable % I know how to change the total points in a grade table.
\end{document}

電流輸出: 輸出全為0

期望的輸出: 手動新增全 1 的輸出

答案1

根據包裝手冊您可以設定每個問題的分數顯示格式。看來這就是您想要實現的目標,因為 Q1 沒有顯示分數,但您想分配一個分數。因此,讓我們簡單地使用空的 來刪除它\pointformat{}。我為每個問題分配了一分,這樣我們就可以擺脫總分錶的手動更新。

此外,我還添加了第四個問題來演示如何恢復積分計數器。看看包裝手冊,第 17 頁26 及以下。了解如何根據您的需求設定點顯示的格式。

這是代碼:

\documentclass[addpoints]{exam}
\begin{document}
    
\begin{questions}
\pointformat{}
\question[1] This is Q1 with no marks.
\question[1] This is Q2 with no marks.
\question[1] This is Q3 with no marks.
\pointformat{\fbox{\thepoints}}
\question[4] This is Q4 with  marks.
\end{questions}

\gradetable % I know how to change the total points in a grade table.
\end{document}

這就是它的樣子:

問題-使用考試課程沒有積分

如果您猶豫不決,如果問題有 1 分無標記您可以使用變數作為佔位符。

\documentclass[addpoints]{exam}
\begin{document}
\newcommand{\nopoints}{1}
\begin{questions}
\pointformat{}
\question[\nopoints] This is Q1 with no marks.
\question[\nopoints] This is Q2 with no marks.
\question[\nopoints]
\pointformat{\fbox{\thepoints}}
\question[4] This is Q4 with  marks.
\end{questions}
\gradetable
\end{document}

相關內容