考试:如何在题头中添加垂直跳跃并删除其正文缩进?

考试:如何在题头中添加垂直跳跃并删除其正文缩进?

对于以下 MWE,

\documentclass[addpoints]{exam}

\begin{document}
    \setlength{\parindent}{0pt}
    \qformat{\textbf{\underline{Question (\thequestion) [\totalpoints\ Marks]}}\hfill}

    \begin{questions}
        \question[15]
        \vspace{\baselineskip}% doesn't increase the spacing between the head and body
        question body
    \end{questions}
\end{document}

我怎么能够:

1- 增加问题头和问题主体之间的间距(除了理解为什么vspace不按预期工作)

2- 将问题主体与问题头部左对齐?

enter image description here

答案1

这里是:

\documentclass[addpoints]{exam}

% Remove margins
\renewcommand{\questionshook}{%
  \setlength{\leftmargin}{0pt}%
  \setlength{\labelwidth}{-\labelsep}%
}

\begin{document}
    %\setlength{\parindent}{0pt}
    \qformat{\textbf{\underline{Question (\thequestion) [\totalpoints\ Marks]}}\hfill}

    \begin{questions}
        \question[15] \hspace*{0pt}\vspace*{\baselineskip}

        question body

        \question[10] \hspace*{0pt}\vspace*{\baselineskip}

        question body

    \end{questions}
\end{document}

output

相关内容