I want to use the exam class for a project and have already learned that using multiple questions environments causes some problems. Therefore, I wanted to include everything inside of one questions environment. Now I got some problems with the resulting margins, which you can see using the following snippet:
\documentclass[]{exam}
\firstpageheadrule
\runningheadrule
\begin{document}
\begin{questions}
\section{Name}
\question What is the value of $x$ in $x^2 = 4$?
\section{Next Section}
\question Bob has 2 apples, what is the temperature of the sun?
\end{questions}
\end{document}
In general, I want the sections to align with the header rule. One solution would be that the number of the questions (main questions, not subquestions) is inside the margin so that the section and the text of the questions align with the rule. Another solution would be to shift the questions so that the number of the questions and the sections align, and both also align with the head rule. Sadly I am not able to create any of those solutions. Can you help me?
So far, I tried solutions with \fullwidth
, EnvFullwidth
and changing the hoffset
/offsidemargin
, but none of my attempts led to a satisfying solution.
\fullwidth{\section{Name}}
aligns with the header rule (on the left). What was your problem iwth it?\fullwidth{}
, because I get an error, if I put everything inside the document environment inside this command?\newcommand{\fullwidth}[1]{#1}
.