4

I'd like to remove the indentation that appears before the question content.

\documentclass[addpoints]{exam}
\pointname{\ p}
\qformat{\textbf{Question \thequestion .} \hfill \textsl{(\thepoints)}} 

\begin{document}

\begin{questions}
  
  \question[3] What is your favourite color?
\end{questions}

\end{document}

enter image description here

and I'd like something like that

enter image description here

1 Answer 1

7

From the exam documentation, page 33, you need to add the following code to your preamble:

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

Then you get the following:

enter image description here

\documentclass[addpoints]{exam}
\pointname{\ p}
\qformat{\textbf{Question \thequestion .} \hfill \textsl{(\thepoints)}} 
\renewcommand{\questionshook}{%
\setlength{\leftmargin}{0pt}%
\setlength{\labelwidth}{-\labelsep}%
}

\begin{document}

\begin{questions}

\question[3] What is your favourite color?

\end{questions}

\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .