summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/exams/exam.cfg
blob: 73c0c06738de1a4d70441e72074672b839d594eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
% EXAMPLE OF CFG-FILE -- SHOWS CUSTOMIZING
%
% fontchanges; e.g. instead of Computer Modern either Lucida or MathTime:
%\RequirePackage[expert]{lucbr}
%\RequirePackage{mathtime}
%
% Copyright notice found here:
\providecommand{\Copyright}{%
	\InputIfFileExists{\commonfolder copyrightnotice.tex }%
	{\mbox{}}{\mbox{}}}
%
% macros can be localized:
\newcommand\fullanswer{Geef de volledige afleiding;
  slechts het antwoord vermelden wordt \emph{niet} goed gerekend.}
	\let\opgavedatum=\problemdate
	\let\parameteropgave=\parameterproblem
	\let\opgave=\problem
	\let\endopgave=\endproblem
	\let\vraag=\question
	\let\endvraag=\endquestion
	\let\keuze=\choice
	\let\endkeuze=\endchoice
	\let\tentamen=\exam
	\let\endtentamen=\endexam
	\let\foutmerk=\badmark
	\let\goedmerk=\goodmark
	\let\foutitem=\baditem
	\let\goeditem=\gooditem
	\let\kortantwoord=\shortanswer
	\let\antwoordblok=\longanswer
	\let\endantwoordblok=\endlonganswer
	\let\antwoord=\answer
	\let\altantwoord=\altanswer
	\let\volledigantwoord=\fullanswer
	\let\opmerking=\remark
%
\pagestyle{examheadings}
%
\addtolength{\topmargin}{-15mm}
\addtolength{\textheight}{35mm}
\addtolength{\oddsidemargin}{-10mm}
\addtolength{\textwidth}{20mm}
\setlength{\parindent}{0pt}
\tolerance=2000
\hbadness=2000
\emergencystretch=2mm
\interlinepenalty=1000
\widowpenalty 1000
% see lost characters (possibly wrong font/encoding)
\tracingonline=1 \tracinglostchars=1
%
%
% The titlepage is set by a redefined \maketitle. Of course it 
% needs to be suppressed if the notitlepage option is given
% on the \documentclass call. Provide two versions, one
% for a real exam and one for collections and/or answers.
%
\if@titlepage
\renewcommand\maketitle{%
\begin{titlepage}
  \begin{center}\titlefont
    \vspace*{1cm}%
    \mbox{}\rule{2cm}{0.4pt}\mbox{}\par
    \addvspace{1cm}%
    \begin{Large}
      \textbf{\ifseries\Collection\else\Exam\fi}\\[10mm]
    \end{Large}
    \begin{large}
      \@title\\[5mm]
      \ifseries\@author\else\@target\fi\\[5mm]
      \@date\\[10mm]
    \end{large}
    \mbox{}\rule{2cm}{0.4pt}\mbox{}\par
    \addvspace{2cm}%
  \ifseries
    \vfill\vfill
    \begin{flushleft}\Copyright\end{flushleft}%
  \else\ifanswers
      \begin{huge}\Answers\end{huge}\par
    \else
      \begin{minipage}{.75\textwidth}%
      \raggedright\parindent\medskipamount
        Naam:\enspace\dotfill\strut\par
        Adres:\enspace\dotfill\strut\par
        Plaats:\enspace\dotfill\strut\par
        Collegekaart:\enspace\dotfill\strut\par
        \vspace{1cm}%
        \begin{itemize}%
        \item Zonder geldige collegekaart wordt geen
          tentamenbriefje uitgereikt.
        \item U wordt met nadruk verzocht om een
          \emph{leesbaar} schrift; wat niet leesbaar
          is, wordt fout gerekend.
        \item Denk erom losse vellen tentamenpapier
          van Uw naam en collegekaartnummer te voorzien;
          gebruik blokletters voor de leesbaarheid.
        \item Dit tentamen telt \theproblemnum\ opgaven
        \end{itemize}%
      \end{minipage}\\[10mm]
      Succes!\par
    \fi
  \fi
  \end{center}%
\end{titlepage}\let\maketitle=\relax}
\else
\let\maketitle=\relax
\fi
\renewcommand\answerstart{\noindent\sffamily\emph{\Answer}:\enspace}
%
\endinput