9

In exam class, how to print Answer instead of Solution when using

\begin{solution}

\end{solution}

in question-answer format?

10

Referencing Section 8.3.1 of the manual, you can use, for example,

\renewcommand{\solutiontitle}{\noindent\textbf{Answer}\par\noindent}

Here's a complete MWE:

% arara: pdflatex
\documentclass[answers]{exam}
\renewcommand{\solutiontitle}{\noindent\textbf{Answer}\par\noindent}

\begin{document}

\begin{questions}{}
\question who is this?
\begin{solution}
    it's me
\end{solution}
\end{questions}
\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.