如何在考试题目行号和实际题目之间留空格

如何在考试题目行号和实际题目之间留空格

在考试中通过 \qformat 格式化考试问题编号时,如何强制问题编号文本和实际问题之间留出垂直空间?

\documentclass[a4paper,12pt,addpoints]{exam} 
\usepackage[margin=2.5cm]{geometry}

\begin{document} 
This is what happens by default when configuing question layout in the exam format
\begin{questions}
\qformat{Question \thequestion{}  \hfill}
\question[3]What time is it?
\end{questions}

\par\noindent\rule{\textwidth}{1mm}
\par\vspace*{0.5cm}
\par ... when what I really want is
\newline
\par\noindent \vspace*{1cm}
Question 2

What is the time?
\par\noindent\rule{\textwidth}{1mm}
\par\vspace*{0.5cm}
So the question is how do you configure the question to leave a vertical space between the question number line and the actual question? 
\end{document}

答案1

这是一种方法。 A

\qformat{\parbox{\textwidth}{Question \thequestion{}  \hfill  \vspace*{0.5cm}}} 

将添加0.5cm的空白。

\documentclass[a4paper,12pt,addpoints]{exam} 
\usepackage[margin=2.5cm]{geometry}

\begin{document} 
    This is what happens by default when configuring  question layout in the exam format    
    
    \qformat{\parbox{\textwidth}{Question \thequestion{}  \hfill  \vspace*{0.5cm}}}
            
    \begin{questions}   
        \question[3]What time is it?
    \end{questions}

\end{document}

相关内容