Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

At the moment my document displays the marks for a bonus questions as, e.g. (3 (bonus)). I don't want the bonus to be there; I just want (3).

I'm using the command \bonuspointpoints{mark}{marks} but it seems to be being ignored and the marks still appear with (bonus) in brackets.

Any suggestions?

\documentclass[12pt,a4paper,bothsides]{exam}
\pagestyle{headandfoot}
\marksnotpoints
\pointsinrightmargin
\addpoints
\totalformat{{\bf (\totalpoints \, marks)}}
\bonustotalformat{{\bf (\totalbonuspoints \, marks)}}
\bonuspointpoints{mark}{marks}

\begin{document}
\begin{questions}
\bonusquestion[3] What is my name?
\end{questions}
\end{document}
share|improve this question
    
Providing a minimum working example (MWE) will enable us answer your question better. See here and here how to provide an MWE. –  Masroor Jun 27 '13 at 11:38

2 Answers 2

up vote 3 down vote accepted

Looks like you have to tweak at two places,

  1. \bonuspointname{\relax} will reset the word bonus. Try playing putting other words in place of \relax.

  2. \bonuspointformat controls the actual format how the actual points are displayed. You can get your intended format using \bonuspointformat{[\thepoints]}.

So, your minimal example becomes,

\documentclass[12pt,a4paper,bothsides]{exam}
\pagestyle{headandfoot}
\marksnotpoints
\pointsinrightmargin
\addpoints
\totalformat{{\bf (\totalpoints \, marks)}}
\bonustotalformat{{\bf (\totalbonuspoints \, marks)}}

\begin{document}

\bonuspointname{\relax}
\bonuspointformat{[\thepoints]}


\begin{questions}
\bonusquestion[3] What is your name?
\end{questions}
\end{document}

I did not know about this package before, so answering your question was an introduction to a very useful package.

share|improve this answer
    
Absolutely brilliant. It works perfectly. Thank you so much. –  Fly by Night Jun 27 '13 at 15:48

The \bonuspointpoints macro only seems to affect marks that are not placed in the right margin. To achieve the effect that you want, use \marginbonuspointname.

\documentclass[12pt,a4paper]{exam}
\pointsinrightmargin
\marginbonuspointname{}
\begin{document}
\begin{questions}
\bonusquestion[3] What is my name?
\end{questions}
\end{document}

That said, I don't think using bonus points that are not clearly marked as such is a good idea.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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