1

I would like to assign and tally up points on LaTeX.

Here is a snip it of my exam paper.

\documentclass{exam}
\begin{document}
\begin{enumerate}[label=\textbf{\arabic*}\hspace{4mm}]

\item Given $z=\displaystyle2(\cos(\frac{\pi}{3})+i\sin(\frac{\pi}{3}))$, which expression is equal to $(\bar{z})^{-1}$?

\item Simplify $i^{2019}$.\begin{enumerate}[label=(\Alph*),leftmargin=0.85cm,itemsep=2ex] \item $1$\item $i$\item $-i$\item $-1$ \end{enumerate}\vskip 9mm

\end{enumerate}

How do I create a counter and add some command in front or the end of my questions (\item) so that I can tally up the total marks at the end.

To be honest, I looked around the web but I couldn't find any commands that allows me to create my own counter and then display the final results.

Thank you

7
  • 1
    Welcome to TeX.SX. Please have a look at package xsim. It should do what you want, and provides even some more nice features.
    – Johannes_B
    Commented Dec 8, 2019 at 4:24
  • @Johannes_B I am having a look at it right now. Thanks
    – Alan Jones
    Commented Dec 8, 2019 at 4:24
  • 2
    This class allows you to add the points, you can use \documentclass[addpoints]{exam} and then retrieve the points for a question and so on.
    – user194703
    Commented Dec 8, 2019 at 4:51
  • @Schrödinger'scat that requires me to use commands like \question to all my questions. at the moment, all my questions are setup based on \item.
    – Alan Jones
    Commented Dec 8, 2019 at 5:02
  • 2
    I see. But why do you then use the exam class, i.e. which of its features are you using?
    – user194703
    Commented Dec 8, 2019 at 5:10

0

You must log in to answer this question.

Browse other questions tagged .