Code: Select all
\question[99]
Why is this question worth so many points?
\question[\totalpoints]
\begin{parts}
\part[5]
How old are you?
\part[5]
Why?
\end{parts}Any suggestions?
Thanks,
G
Code: Select all
\question[99]
Why is this question worth so many points?
\question[\totalpoints]
\begin{parts}
\part[5]
How old are you?
\part[5]
Why?
\end{parts}Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
\totalpoints count all the points in the question and the questions before. To avoid this problem, simply add \noaddpoints before \question and \addpoints after.Code: Select all
\noaddpoints
\question[\totalpoints]
\addpoints\qformat command from the exam class, see section 4.4 of the
exam manual. This command allows you to customize your question style, but the text of the question will start on the next line. Here is a Code: Select all
\documentclass[addpoints]{exam}
\begin{document}
\begin{questions}
\qformat{Question \thequestion{} : \totalpoints{} \points \hfill}
\question[99]
Question without parts
\question
Question with parts
\begin{parts}
\part[5] first part
\part[5] second part
\end{parts}
\end{questions}
\end{document}Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis