diff options
author | Karl Berry <karl@freefriends.org> | 2014-05-05 22:02:58 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-05-05 22:02:58 +0000 |
commit | c2e26b130cd3c16ddba1e50bd65f8ff334ba8acc (patch) | |
tree | b1e3190b569092239516018cca8b73c918accb9f /Master/texmf-dist/source/latex/exam-n/exam-n.drv | |
parent | e6a0a4076d4c6d8eb715a0350a499642c68164df (diff) |
exam-n (5may14)
git-svn-id: svn://tug.org/texlive/trunk@33862 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/exam-n/exam-n.drv')
-rw-r--r-- | Master/texmf-dist/source/latex/exam-n/exam-n.drv | 114 |
1 files changed, 114 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/exam-n/exam-n.drv b/Master/texmf-dist/source/latex/exam-n/exam-n.drv new file mode 100644 index 00000000000..95836a54824 --- /dev/null +++ b/Master/texmf-dist/source/latex/exam-n/exam-n.drv @@ -0,0 +1,114 @@ +%% +%% This is file `exam-n.drv', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% exam-n.dtx (with options: `driver') +%% exam-n: format exam questions +%% Release version 1.1, 2014 May 03. +%% +%%%% File: exam-n.dtx +%%%% Copyright 2005--2014, Norman Gray +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Norman Gray <http://nxg.me.uk> +%% +%% This work consists of the files exam-n.dtx and exam-n.ins, +%% the derived file exam-n.cls, +%% and the associated *.clo files. + +%%%% Source: Mercurial revision 6f818b549982, 2014-05-03 13:42 +0100, tag 1.1 + 0 +%% + +\documentclass{ltxdoc} +\title{exam-n: exam papers} +\author{Norman Gray\\(\texttt{norman@astro.gla.ac.uk})} +\date{Release 1.1} +\usepackage{url} +\newcommand\Lopt[1]{\textsf {#1}} % options +\newcommand\file[1]{\texttt {#1}} +\newcommand\Lcount[1]{\textsl {\small#1}} +\newcommand\Lenv[1]{\texttt{\{#1\}}} %environments +\newcommand\Lpackage[1]{\{\textsf{#1}\}} %packages +{\catcode`\<=\active + \gdef<#1>{{\ensuremath\langle\normalfont\textsl{#1}\ensuremath\rangle}}} +\def\cmd{\begingroup + \catcode`\\=12 \catcode`\{=12 \catcode`\}=12 + \catcode`\<=\active \catcode`\|=12 + \docmd} +\def\docmd|#1|{\texttt{#1}\endgroup} +%%% \url macro (url.sty does this better) + +\def\bs{$\backslash$} +\makeatletter +\newcommand\BSc{B.Sc.{}} +\newcommand\MSci{M.Sci.{}} +\newcommand\MSc{M.Sc.{}} +\newcommand\MA{M.A.{}} +\newcommand\MEng{M.Eng.{}} +\newcommand\BEng{B.Eng.{}} +\newcommand{\dd}{\mathrm{d}} +\newcommand{\ddd}{\,\mathrm{d}} % inside an integral, including thinspace + +\def\Diffl{\@ifstar\@Difflflat\@Diffl} +\def\Partial{\@ifstar\@Partialflat\@Partial} +\def\@Partial{\@ifnextchar[{\@@Diffl\partial}{\@@Diffl\partial[]}} +\def\@Partialflat{\@ifnextchar[{\@@Difflflat\partial}{\@@Difflflat\partial[]}} +\def\@Diffl{\@ifnextchar[{\@@Diffl\dd}{\@@Diffl\dd[]}} +\def\@Difflflat{\@ifnextchar[{\@@Difflflat\dd}{\@@Difflflat\dd[]}} +\def\@@Diffl#1[#2]#3#4{% + \def\@tempa{#2}% + \ifx\@tempa\empty + \frac{#1#3}{#1#4}% + \else + \frac{{#1}^{#2}#3}{#1{#4}^{#2}}% + \fi} +\def\@@Difflflat#1[#2]#3#4{% + \def\@tempa{#2}% + \ifx\@tempa\empty + #1#3\mskip-0.8mu/\mskip-1.2mu #1#4% + \else + {#1}^{#2}#3\mskip-0.8mu /\mskip-1.2mu #1{#4}^{#2}% + \fi} +\def\e{{\mathrm e}} +\def\units{\begingroup + \catcode`\.=\active + \@ifstar{\let\un@tsspace\relax \un@ts}% + {\let\un@tsspace\thinspace\un@ts}} +\begingroup + \catcode`\.=\active + \gdef\un@ts#1{\let~\thinspace\let.\thinspace + \ifmmode + \un@tsspace\mathrm{#1}% + \else + \nobreak$\un@tsspace\mathrm{#1}$% + \fi + \endgroup} +\endgroup +\def\au{au} +\def\lambdabar{\setbox\@tempboxa\hbox{$\lambda$}% + \hbox to 0pt{\hbox to \wd\@tempboxa{\hss$\bar{}$\hss}\hss}\box\@tempboxa} +\makeatother + +\begin{document} +\maketitle +\tableofcontents +\bigskip +\DocInput{exam-n.dtx} +\end{document} + + + +\endinput +%% +%% End of file `exam-n.drv'. |