Debian Codegraph @

texmf-dist/doc/latex/exam-n/sample/sample_exam.tex

raw
1 % A suitable documentclass line is the following.
2 % Change this to [final] for the final version.
3 % This option enables showing solutions, showing comments, and a few
4 % other adjustments which seem useful at draft time. The [final]
5 % option turns all of these off.
6 \documentclass[stix2,uprightpi]{exam-n}
7
8 % Include a local .clo file like this:
9 %\documentclass[myclass]{exam-n}
10 %
11 % Choose different font sets:
12 %\documentclass[stix2]{exam-n}
13 %\documentclass[mtpro2]{exam-n}
14 %\documentclass[mtpro2,sansserif]{exam-n}
15 %
16 % There are some alternatives for those who need special versions
17 % with large fonts:
18 %\documentclass[largefont]{exam-n}
19 %\documentclass[hugefont,sansserif]{exam-n}
20 %
21 % It wouldn't make sense for this file, but the files being included
22 % using \includequestion should start with:
23 %\documentclass[compose]{exam-n}
24 %
25 % For discussion of these various class options, and more, see the
26 % guexam.pdf documentation.
27 %
28 % Note:
29 %
30 % * Several of the questions are gibberish.
31 % * This collection of questions has in part turned into an
32 % informal regression test for the class file. Thus they
33 % shouldn't necessarily be regarded as canonically best practice.
34
35 % Include a default category for \partmarks
36 %\defaultpartmarkscategory{category?}
37
38 \examdate{Wednesday, 23 May 2007}
39 \examtime{9:30 -- 10:45 (1 course)\\9:30 -- 12:00 (2 courses)}
40
41 \exambanner{Examination for the degrees of \BSc\,
42 \MSci\ and \MA\ on the honours standard }
43
44 \degreedescriptions{Physics 3\\Chemical Physics 3\\Physics with
45 Astrophysics 3\\Theoretical Physics 3M\\Joint Physics 3}
46 \schoolcoursecode{P304D and P304H}
47 \universitycoursecode{PHYS3031 and PHYS4025}
48 \coursetitle{Quantum Mechanics (and other bits of physics)}
49
50 \usepackage{pdfpages}
51
52 \rubric{Candidates should answer Questions 1 and 2 (10~marks each),
53 \linebreak\textbf{and either} Question 3 \textbf{or} Question 4 (30~marks).
54 \linebreak The content of this sample exam derives from real
55 questions, but the result is in many cases test gibberish.}
56 %\norubric
57
58 \numquestions{13}
59
60 \usepackage{graphicx} % for graphic in dynamical1
61
62 \begin{document}
63 \maketitle
64
65 \section{I}
66 \includequestion{cosmo1}
67 \includequestion{numerical1}
68 \includequestion{dynamical1}
69
70 \section{II}
71 \includequestion{cosmo2}
72 \subsection{Cosmology question number 3}
73 \includequestion{cosmo3}
74 \includequestion{excos1} % four multiple-choice questions
75
76 \section{III}
77 % Override the question number, to test/demo this
78 \includequestion[99]{numerical2}
79 \includequestion{numerical3}
80
81 \section{IV}
82 \includequestion{dynamical2}
83 \includequestion{dynamical3}
84
85 \end{document}