tripos:aLATEX class for typesetting exam papers - The Computer ...
tripos:aLATEX class for typesetting exam papers - The Computer ...
tripos:aLATEX class for typesetting exam papers - The Computer ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
\document<strong>class</strong>{<strong>tripos</strong>} % Do not add any commands here<br />
\begin{document}<br />
% outside the "question" environment!<br />
\begin{question}[CSTpartIB,year=2038,paper=3,question=4,author=MGK]{Exam Tools}<br />
Consider the design of the \texttt{<strong>tripos</strong>} document <strong>class</strong>.<br />
\begin{enumerate}<br />
\item \label{easy}\topic{usability} Is it easy to use \fullmarks{5}<br />
\begin{answer}<br />
Yes, very easy.<br />
\end{answer}<br />
\item Prove the correctness of your answer to part~\ref{easy}. \fullmarks{15}<br />
\end{enumerate}<br />
\begin{answer}<br />
\includegraphics{2038-p03-q04-mgk-fig}<br />
\end{answer}<br />
\end{question}<br />
\end{document}<br />
Figure 1: Source file 2038-p03-q04-mgk.tex <strong>for</strong> a simple <strong>exam</strong>ple question. This file<br />
includes text <strong>for</strong> solution notes (answer environment), which will not be typeset by default.<br />
\document<strong>class</strong>{<strong>tripos</strong>}<br />
\begin{document}<br />
\begin{solutionnotes}<br />
\input{2038-p03-q04-mgk}<br />
\end{solutionnotes}<br />
\end{document}<br />
Figure 2: Source file 2038-p03-q04-mgk-solutions.tex is a simple wrapper <strong>for</strong> <strong>typesetting</strong><br />
the solution-notes version of the question file 2038-p03-q04-mgk.tex (fig. 1).<br />
an <strong>exam</strong>iner assembling the final version of a paper, please fix them by copying recent<br />
versions from the above URL or from CTAN into your working directory.<br />
Use by Tripos question setters<br />
Tripos <strong>exam</strong>iners usually ask question setters to provide them with a separate *.tex<br />
source file <strong>for</strong> each question. A simple <strong>exam</strong>ple of such a question file is shown in figure 1.<br />
If you typeset such a question file with latex or pdflatex, the question will be typeset<br />
almost exactly like in the <strong>exam</strong> paper, however additional metadata that you provide as<br />
parameters to the question environment will be added to the headings, to help with<br />
reviewing questions.<br />
document<br />
Never add anything of your own directly be<strong>for</strong>e or after the \begin{document} line in<br />
such a question file. Anything found in the preamble be<strong>for</strong>e \begin{document} will be<br />
discarded by the method that the <strong>exam</strong>iners use to integrate your file into the whole paper.<br />
In particular do not try to use the \usepackage command to load additional packages.<br />
You can only use the packages and associated options that are always loaded <strong>for</strong> you by<br />
the <strong>tripos</strong> <strong>class</strong>:<br />
\usepackage{graphicx}<br />
2