-
This example changes the marks so that they are displayed in sans-serif
and aligns them flushright instead of in the margin.
\documentclass{ueatest}
\course{CMPS-MC22}{Mathematics and Algorithms for Bioinformatics}
\lecturer{SJH/GCC}
\renewcommand{\markformat}{\hfill\textsf{\marklabel}}
\begin{document}
\begin{enumerate}
\item First question.\marks{10}
\item Second question.
\begin{enumerate}
\item First part.\marks{5}
\item Second part.\marks{5}
\end{enumerate}
\end{enumerate}
\end{document}
- In this example, the marks were originally out of 20,
but it was then decided to change them to percentages. This
is easily done by setting \markscale to 5, and redefining
\marklabel
\documentclass{ueatest}
\course{CMPS-MC22}{Mathematics and Algorithms for Bioinformatics}
\lecturer{SJH/GCC}
\renewcommand{\marklabel}{[\themark\%]}
\renewcommand{\markscale}{5}
\begin{document}
\begin{enumerate}
\item First question.\marks{20}
\item Second question.
\begin{enumerate}
\item First part.\marks{10}
\item Second part.\marks{5}
\item Third part.\marks{5}
\end{enumerate}
\end{enumerate}
\end{document}
- In this example, the marks were originally out of 75.
To turn the marks into a percentage, they need to be multiplied
by 4 and divided by 3. (This isn't guaranteed to work as integer
division can cause rounding errors.)
\documentclass{ueatest}
\course{CMPS-MC22}{Mathematics and Algorithms for Bioinformatics}
\lecturer{SJH/GCC}
\renewcommand{\marklabel}{[\themark\%]}
\renewcommand{\markscale}{4}
\renewcommand{\markfrac}{3}
\begin{document}
\begin{enumerate}
\item First question.\marks{75}
\item Second question.
\begin{enumerate}
\item First part.\marks{51}
\item Second part.\marks{18}
\item Third part.\marks{6}
\end{enumerate}
\end{enumerate}
\end{document}