diff options
Diffstat (limited to 'macros/latex/contrib/exam-n/sample')
-rw-r--r-- | macros/latex/contrib/exam-n/sample/Makefile | 25 | ||||
-rw-r--r-- | macros/latex/contrib/exam-n/sample/cosmo1.tex | 37 | ||||
-rw-r--r-- | macros/latex/contrib/exam-n/sample/cosmo2.tex | 8 | ||||
-rw-r--r-- | macros/latex/contrib/exam-n/sample/cosmo3.tex | 4 | ||||
-rw-r--r-- | macros/latex/contrib/exam-n/sample/dynamical1.tex | 8 | ||||
-rw-r--r-- | macros/latex/contrib/exam-n/sample/sample_exam.tex | 46 | ||||
-rw-r--r-- | macros/latex/contrib/exam-n/sample/sample_exam_mcq.tex (renamed from macros/latex/contrib/exam-n/sample/sample_mcq.tex) | 0 | ||||
-rw-r--r-- | macros/latex/contrib/exam-n/sample/sample_exam_solution.tex | 65 |
8 files changed, 91 insertions, 102 deletions
diff --git a/macros/latex/contrib/exam-n/sample/Makefile b/macros/latex/contrib/exam-n/sample/Makefile index 253245e534..91223625a3 100644 --- a/macros/latex/contrib/exam-n/sample/Makefile +++ b/macros/latex/contrib/exam-n/sample/Makefile @@ -1,16 +1,31 @@ +LATEX=pdflatex + +QUESTIONS=cosmo1.tex \ + cosmo2.tex \ + cosmo3.tex \ + dynamical1.tex \ + dynamical2.tex \ + dynamical3.tex \ + excos1.tex \ + numerical1.tex \ + numerical2.tex \ + numerical3.tex + %.pdf: %.tex ../exam-n.cls - TEXINPUTS=..: pdflatex $< - if grep 'Rerun to get cross' ${<:.tex=.log}; then TEXINPUTS=..: pdflatex $<; else :; fi + TEXINPUTS=..: $(LATEX) $< + if grep 'Rerun to get cross' ${<:.tex=.log}; then TEXINPUTS=..: $(LATEX) $<; else :; fi all: sample_exam.pdf -sample_exam.pdf: numerical1-solution.pdf +sample_exam.pdf: numerical1-solution.pdf $(QUESTIONS) -sample_exam_solution.pdf: sample_exam_solution.tex +sample_exam_solution.pdf: sample_exam_solution.tex $(QUESTIONS) sample_exam_solution.tex: sample_exam.tex rm -f $@ - sed '1s/documentclass/documentclass[showsolutions]/' sample_exam.tex >sample_exam_solution.tex + sed -e '1s/documentclass\[/documentclass[showsolutions,/' \ + -e '1s/documentclass{/documentclass[showsolutions]{/' \ + sample_exam.tex >sample_exam_solution.tex # This will depend somehow on the .dtx file in the parent directory, # but expressing that here second-guesses how that file is actually diff --git a/macros/latex/contrib/exam-n/sample/cosmo1.tex b/macros/latex/contrib/exam-n/sample/cosmo1.tex index 27045d026a..a9e13b790b 100644 --- a/macros/latex/contrib/exam-n/sample/cosmo1.tex +++ b/macros/latex/contrib/exam-n/sample/cosmo1.tex @@ -21,21 +21,25 @@ included as a graphic. Fully zenned up? Then let us begin\dots. \caption{\label{f:spiral}A spiral} \end{figure} -\part Show that, under the action of gravity alone, the scale size -of the Universe varies according to +\part Show that, under the action of \textsf{gravity} alone, the scale size +of the Universe (which we should note is larger than \SI1m in +diameter and more massive than \SI{10}{kg}) varies according to \begin{equation} \ddot{R}=-\frac{4\pi G \rho_0}{3R^2} +\partmarks[demonstration]{4} \end{equation} -\partmarks*{4} and that, consequently, \begin{equation*} \dot{R}^2=-\frac{8\pi G \rho_0}{3R}=-K. -\partmarks*{3} +\partmarks[another remarkably long remark]{3} \end{equation*} Express $K$ in terms of the present values of the Hubble constant $H_0$ and of the density parameter $\Omega_0$. -\partmarks{3} +\partmarks[bookwork from a very long and boring book, which goes on + and on at really quite unreasonable length, line after line, + until the reader is adequately cudgelled into intellectual + submission]{3} \begin{solution} This can be solved by \emph{remembering} the solution \partmarks{3} @@ -74,8 +78,14 @@ Finis. Hubble's law: $v=H_0 D$ \end{questiondata} \partmarks{4} +% Test uprightness of \pi +All is geometry: $\mathrm e^{\mathrm{i}\pi} = -1^{x^x}, \forall x=1$, or $E=mc^2$. +% and that \vec produces italic bold, in greek as well as roman +That includes vectors: $\vec v=\Diffl*{\vec x}t + \vec\gamma$. \begin{solution} -Explanations are superfluous; all that is, is. + \tracingmacros=2 \tracingcommands=2 +Explanations are superfluous;\partmarks1 all that is, is. + \tracingmacros=0 \tracingcommands=0 \begin{table} \begin{tabular}{r|l} First rows&are premier\\ @@ -83,11 +93,20 @@ subsequent rows&are of secondary interest \end{tabular} \caption{\label{t:dullnessII}A table o'erbrimming with otioseness} \end{table} -In addition, Table~\ref{t:dullnessII} adds nothing to the discussion, -adds nothing to our understanding of our place in the cosmos, but it +In addition, Table~\ref{t:dullnessII} adds nothing to the discussion,\partmarks{1} +and adds nothing to our understanding of our place in the cosmos, but it \emph{does} contribute slightly to the heat-death of the universe (can you work out how many deuterium nuclei decayed during the typing of -this table?). +this table?).\partmarks1 + +All is geometry\partmarks1 (in here, too): $\mathrm e^{\mathrm{i}\pi} = -1^{x^x}, \forall x=1$, +or $E=mc^2$, or +\begin{align*} +\mathrm e^{\mathrm{i}\pi} &= \cos\pi + i \sin\pi = -1^{x^x}\\ +E&= mc^2\qquad\text{inevitably}. +\end{align*} \end{solution} \end{question} \end{document} + +Here are some further ramblings & rantings. This text should be ignored. diff --git a/macros/latex/contrib/exam-n/sample/cosmo2.tex b/macros/latex/contrib/exam-n/sample/cosmo2.tex index bb6c512b9d..51253d590a 100644 --- a/macros/latex/contrib/exam-n/sample/cosmo2.tex +++ b/macros/latex/contrib/exam-n/sample/cosmo2.tex @@ -12,8 +12,8 @@ distance $r$, observed with radiation flux $\ge F$ is (neglecting other selection and redshift effects) \begin{equation*} N(F)=4\pi\int_0^{(\frac{L}{4\pi F})^{1/2}} n(r) r^2\ddd r. +\partmarks{5} \end{equation*} -\partmarks*{5} Use this to show that for $n=n_1=$constant at $r<r_1$ and $n=n_2=$constant at $r>r_1$, @@ -42,19 +42,19 @@ Reduce these two expressions to the result for a completely uniform density universe with $n_1=n_2=n_0$. \partmarks{3} -% An itemized list followed by partmarks* +% An itemized list containing partmarks Sketch how $n(F)$ would look in universes which are \begin{itemize} \item flat, \item open, \item and closed. +\partmarks3 \end{itemize} -\partmarks*{3} \begin{solution} A sufficiently heavy weight will reduce expressions to completely uniform sheets of paper if it is placed on top of them.\partmarks3 -In a flat universe, $n(F)$ will look like n(F).\partmarks*3 +In a flat universe, $n(F)$ will look like n(F).\partmarks3 \end{solution} \end{question} \end{document} diff --git a/macros/latex/contrib/exam-n/sample/cosmo3.tex b/macros/latex/contrib/exam-n/sample/cosmo3.tex index b7b74c0107..aa3f78868a 100644 --- a/macros/latex/contrib/exam-n/sample/cosmo3.tex +++ b/macros/latex/contrib/exam-n/sample/cosmo3.tex @@ -32,7 +32,7 @@ equivalent to an empty, flat, Universe with a non-zero $\Lambda$. of state with $w = 0$ for $0 < t < t_0$, but which changes to $W=0$ for $t\ge t_0$ without any discontinuity in $H(t)$. Regarding this second stage as driven by a non-zero $\Lambda$ what -is the value of $\Lambda$ if $t_0 = 10^{24}$\units{\mu s}? Define the +is the value of $\Lambda$ if $t_0 = \SI{1e24}{\mu s}$? Define the dimensionless deceleration parameter, $q$, and find its value before and after $t_0$. \shout{Shout it loud: I'm a geek and I'm proud} @@ -40,7 +40,7 @@ before and after $t_0$. Note: that's \[ -t_0=10^{24}\units{\mu s}\qquad\text{with a letter mu: $\mu$}. +t_0=\SI{1e24}{\mu s}\qquad\text{with a letter mu: $\mu$}. \] \part To what extent does this idealized model resemble the currently diff --git a/macros/latex/contrib/exam-n/sample/dynamical1.tex b/macros/latex/contrib/exam-n/sample/dynamical1.tex index e3a51a803b..c371e9f900 100644 --- a/macros/latex/contrib/exam-n/sample/dynamical1.tex +++ b/macros/latex/contrib/exam-n/sample/dynamical1.tex @@ -23,20 +23,20 @@ $a(t)$ is the semimajor axis at time $t$) \begin{equation*} \frac{a(t)}{a_0}=\left[1-\frac{t\Delta V}{2^{1/2}\pi a_0(1-e_0)^{1/2}}\right]^2 +\partmarks{2} \end{equation*} -\partmarks*{2} and \begin{equation*} \frac{T(t)}{T_0}=\left[1-\frac{t\Delta V}{2^{1/2}\pi a_0(1-e_0)^{1/2}}\right]^3 +\partmarks{1} \end{equation*} -\partmarks*{1} and the eccentricity satisfies (with $e_0=e(0)$) \begin{equation*} e(t)=1-\frac{1-e_0}{\left[1-\frac{t\Delta V}{2^{1/2}\pi a_0(1-e_0)^{1/2}}\right]^2}. +\partmarks{2} \end{equation*} -\partmarks*{2} Show that, once the orbit is circular, its radius decays exponentially with time on timescale $m_0/2\dot{m}$ where $m_0$ @@ -62,8 +62,8 @@ passage distances for the system, show that this leads to a natural time $T$ for the system, where \begin{equation*} T\propto\frac{\bar{u}u^2}{m^2\nu\log N}. +\partmarks{5} \end{equation*} -\partmarks*{5} \begin{questiondata} You may assume that the sphere of influence radius of a star is diff --git a/macros/latex/contrib/exam-n/sample/sample_exam.tex b/macros/latex/contrib/exam-n/sample/sample_exam.tex index 98031e6091..4ae4e18f0a 100644 --- a/macros/latex/contrib/exam-n/sample/sample_exam.tex +++ b/macros/latex/contrib/exam-n/sample/sample_exam.tex @@ -1,19 +1,39 @@ -\documentclass{exam-n} +% A suitable documentclass line is the following. +% Change this to [final] for the final version. +% This option enables showing solutions, showing comments, and a few +% other adjustments which seem useful at draft time. The [final] +% option turns all of these off. +\documentclass[stix2,uprightpi]{exam-n} + +% Include a local .clo file like this: +%\documentclass[myclass]{exam-n} +% +% Choose different font sets: +%\documentclass[stix2]{exam-n} +%\documentclass[mtpro2]{exam-n} +%\documentclass[mtpro2,sansserif]{exam-n} +% +% There are some alternatives for those who need special versions +% with large fonts: %\documentclass[largefont]{exam-n} %\documentclass[hugefont,sansserif]{exam-n} -%\documentclass[mtpro2,showsolutions]{exam-n} -%\documentclass[mtpro2,showsolutions,sansserif]{exam-n} -%\documentclass[draft,showsolutions,sansserif]{exam-n} - -% Note: this sample question dates from an earlier phase, in which -% `paper n' would contain a bundle of questions from various courses. -% That's why the \coursetitle doesn't match the broad range of -% subjects being 'examined'. % -% Several of the questions are gibberish. +% It wouldn't make sense for this file, but the files being included +% using \includequestion should start with: +%\documentclass[compose]{exam-n} % -% This collection of questions has in part turned into an informal -% regression test for the class file. +% For discussion of these various class options, and more, see the +% guexam.pdf documentation. +% +% Note: +% +% * Several of the questions are gibberish. +% * This collection of questions has in part turned into an +% informal regression test for the class file. Thus they +% shouldn't necessarily be regarded as canonically best practice. + +% Include a default category for \partmarks +%\defaultpartmarkscategory{category?} \examdate{Wednesday, 23 May 2007} \examtime{9:30 -- 10:45 (1 course)\\9:30 -- 12:00 (2 courses)} @@ -25,7 +45,7 @@ Astrophysics 3\\Theoretical Physics 3M\\Joint Physics 3} \schoolcoursecode{P304D and P304H} \universitycoursecode{PHYS3031 and PHYS4025} -\coursetitle{Quantum Mechanics} +\coursetitle{Quantum Mechanics (and other bits of physics)} \usepackage{pdfpages} diff --git a/macros/latex/contrib/exam-n/sample/sample_mcq.tex b/macros/latex/contrib/exam-n/sample/sample_exam_mcq.tex index 268417ff7d..268417ff7d 100644 --- a/macros/latex/contrib/exam-n/sample/sample_mcq.tex +++ b/macros/latex/contrib/exam-n/sample/sample_exam_mcq.tex diff --git a/macros/latex/contrib/exam-n/sample/sample_exam_solution.tex b/macros/latex/contrib/exam-n/sample/sample_exam_solution.tex deleted file mode 100644 index 853bccbce9..0000000000 --- a/macros/latex/contrib/exam-n/sample/sample_exam_solution.tex +++ /dev/null @@ -1,65 +0,0 @@ -\documentclass[showsolutions]{exam-n} -%\documentclass[largefont]{exam-n} -%\documentclass[hugefont,sansserif]{exam-n} -%\documentclass[mtpro2,showsolutions]{exam-n} -%\documentclass[mtpro2,showsolutions,sansserif]{exam-n} -%\documentclass[draft,showsolutions,sansserif]{exam-n} - -% Note: this sample question dates from an earlier phase, in which -% `paper n' would contain a bundle of questions from various courses. -% That's why the \coursetitle doesn't match the broad range of -% subjects being 'examined'. -% -% Several of the questions are gibberish. -% -% This collection of questions has in part turned into an informal -% regression test for the class file. - -\examdate{Wednesday, 23 May 2007} -\examtime{9:30 -- 10:45 (1 course)\\9:30 -- 12:00 (2 courses)} - -\exambanner{Examination for the degrees of \BSc\, - \MSci\ and \MA\ on the honours standard } - -\degreedescriptions{Physics 3\\Chemical Physics 3\\Physics with - Astrophysics 3\\Theoretical Physics 3M\\Joint Physics 3} -\schoolcoursecode{P304D and P304H} -\universitycoursecode{PHYS3031 and PHYS4025} -\coursetitle{Quantum Mechanics} - -\usepackage{pdfpages} - -\rubric{Candidates should answer Questions 1 and 2 (10~marks each), - \linebreak\textbf{and either} Question 3 \textbf{or} Question 4 (30~marks). - \linebreak The content of this sample exam derives from real - questions, but the result is in many cases test gibberish.} -%\norubric - -\numquestions{13} - -\usepackage{graphicx} % for graphic in dynamical1 - -\begin{document} -\maketitle - -\section{I} -\includequestion{cosmo1} -\includequestion{numerical1} -\includequestion{dynamical1} - -\section{II} -\includequestion{cosmo2} -\subsection{Cosmology question number 3} -\includequestion{cosmo3} -\includequestion{excos1} % four multiple-choice questions - -\section{III} -% Override the question number, to test/demo this -\includequestion[99]{numerical2} -\includequestion{numerical3} - -\section{IV} -\includequestion{dynamical2} -\includequestion{dynamical3} - -\end{document} |