Search code examples
r-exams

How can I print one question per page in exams2pdf?


I am writing an exam using exams2pdf. Is there a way to get each question on a new page?

I did not find an option in the manual so far.


Solution

  • This is explained in this thread in the R-Forge forum: https://R-Forge.R-project.org/forum/message.php?msg_id=48478&group_id=1337

    Just redefine the {question} environment in the LaTeX template file:

    \renewenvironment{question}{\item}{\newpage}
    

    This adds a \newpage at the end of the question so that the next one starts on a new page. See vignette("exams", package = "exams") for more details about how to set up a LaTeX template file.