diff --git a/data/templates/linear-algebra/base/exam.tex b/data/templates/linear-algebra/base/exam.tex index f5eed6f..f3806f8 100644 --- a/data/templates/linear-algebra/base/exam.tex +++ b/data/templates/linear-algebra/base/exam.tex @@ -1,56 +1,61 @@ \documentclass[a4paper]{article} \usepackage[utf8]{inputenc} %Unicode \usepackage[T1]{fontenc} \usepackage{xcolor} \usepackage{fix-cm} \usepackage[lang=#LANG#,bloc]{automultiplechoice} % Color used for signature box \definecolor{light-Gray}{gray}{0.95} %%% Default packages \input{./packages.tex} % #COMMON_PACKAGES# % Common packages for all exams % #EXTRA_PACKAGES# % Extra packages for this exam %%% Formating specific to EPFL \input{./style_extra.tex} \input{./true-false.tex} % Language dependent ! \input{./question-text.tex} % Language dependent ! %%% Professor specific imports \input{./professor.tex} \input{./style_professor.tex} %%% New commands (or renewed) % #COMMON_COMMANDS# % Common commands for all exams % #EXTRA_COMMANDS# % Extra commands for this exam %%% Randomseed \input{./random-seed.tex} +%%% increase the space between header and bottom for AMC control dots +\renewcommand{\baselinestretch}{1.20}% ESPACEMENT VERTICAL +\geometry{includeheadfoot,hmargin=2.75cm,headheight=2cm,headsep=0.2cm} +\geometry{footskip=.8cm,top=.5cm,bottom=1.1cm,paper=a4paper} + \begin{document} %%% Import sections \input{./sections.tex} \newcommand{\sujet}{ \onecopy{1}{ %%% debut de l'en-tête des copies : \input{./first_page.tex} \input{./random-sections.tex} % #EXTRA_SECTION# % Extra section for this exam % Make sure that all the exams have the same number of pages (otherwise Repro will not be able to print!) \loop \ifnum \thepage < \totalPages \clearpage ~ \repeat \AMCassociation{\ID} } } \csvreader[head to column names]{./students.csv}{}{\sujet} \end{document} diff --git a/data/templates/linear-algebra/base/style_extra.tex b/data/templates/linear-algebra/base/style_extra.tex index 6795dd5..4b3769c 100644 --- a/data/templates/linear-algebra/base/style_extra.tex +++ b/data/templates/linear-algebra/base/style_extra.tex @@ -1,101 +1,104 @@ +%%Package for tabular in openquestion +\usepackage{array} + %% Default values for open questions: \AMCopenOpts{lines=10,lineheight=2ex,framerulecol=black,dots=false} \newcommand{\letter}{A} \makeatletter \renewcommand{\theenumi}{\alph{enumi}} \renewcommand{\labelenumi}{(\theenumi)} \makeatother %% OpenBox commands ============================ \newcommand{\OpenBox}[1]{ \noindent \fbox{ \centering \begin{minipage}{1.0\textwidth} ~ \vspace{#1} ~ \end{minipage} } } \newcommand{\FullPageOpenBox}{ \clearpage \OpenBox{23cm} } %% OpenGrid commands ============================ \newcommand{\OpenGrid}[1]{ \noindent \begin{tikzpicture} \draw[step=.5cm,lightgray] (0cm,0cm) grid (15.5cm,#1); \end{tikzpicture} } \newcommand{\FullPageOpenGrid}{ \clearpage \OpenGrid{23cm} } \newcommand{\FullPageOpenGridForever}{ \loop \ifnum \thepage < \totalPages \FullPageOpenGrid \repeat } \newcommand{\FullPageOpenBoxForever}{ \loop \ifnum \thepage < \totalPages \FullPageOpenBox \repeat } %% ============================================== % Single points \newcommand{\openquestionmax}{1} \newcommand{\correctorPointsPerGroup}[1]{ \renewcommand{\openquestionmax}{#1} } \newcommand{\correctorChoices}{\correctchoice[0]{}\scoring{b=0}\correctchoice[Y]{}\scoring{b=\openquestionmax/4}\correctchoice[X]{}\scoring{b=\openquestionmax/2}\correctchoice[W]{}\scoring{b=\openquestionmax*3/4}\correctchoice[V]{\qquad}\scoring{b=\openquestionmax}} \newcommand{\correctorOne}[3][0]{ \par \noindent \begin{questionmultx}{#2}\bareme{MAX=\openquestionmax} #3~\\ \noindent\AMCOpen{lines=#1,boxframerulecol=lightgray,framerulecol=white}{\correctorChoices\makebox[218.6pt][c]{}} \end{questionmultx} \vspace{-55pt}~ \par } \newcommand{\correctorTwo}[3][0]{ \par \noindent\begin{questionmultx}{#2}\bareme{MAX=\openquestionmax*2} #3~\\ \noindent\AMCOpen{lines=#1,boxframerulecol=lightgray,framerulecol=white}{\correctorChoices\correctorChoices\makebox[109.8pt][c]{}} \end{questionmultx} \vspace{-55pt}~ \par } \newcommand{\correctorThree}[3][0]{ \par \noindent \begin{questionmultx}{#2}\bareme{MAX=\openquestionmax*3} #3~\\ \noindent\AMCOpen{lines=#1,boxframerulecol=lightgray,framerulecol=white}{\correctorChoices\correctorChoices\correctorChoices\makebox[1pt][c]{}} \end{questionmultx} \vspace{-55pt}~ \par } \newcommand{\correctorStop}{ \bigskip \noindent } diff --git a/data/templates/linear-algebra/de/first_page.tex b/data/templates/linear-algebra/de/first_page.tex index ab8f70e..583e4f3 100644 --- a/data/templates/linear-algebra/de/first_page.tex +++ b/data/templates/linear-algebra/de/first_page.tex @@ -1,51 +1,51 @@ % First page - GERMAN \noindent \begin{minipage}[c]{350pt} \bf \prof~-~\ExamName~-~\SECTION \\ ~ \\ \bf \ExamDate~-~Dauer: \Time \end{minipage} \begin{minipage}[c]{100pt} \includegraphics[scale=0.24]{Logo_EPFL} \end{minipage} \vfill \begin{minipage}[c]{\textwidth} \noindent \hfill\fontsize{100}{120}{\selectfont{\ID{}}}\hfill \vspace{1cm} \par \noindent \begin{center} \fontsize{40}{48}{\selectfont{\NAME{}}} \end{center} \end{minipage} \vfill \noindent \namefield{SCIPER: {\Large \bf \SCIPER{} }}%SIGNATURE \hfill Unterschrift:~\textcolor{light-Gray}{\rule{5cm}{1.5cm}} \\ ~ \\ \noindent \textbf{Drehen Sie diese Seite nicht um, bevor Sie dazu aufgefordert werden.} \textbf{Jedes Blatt hat eine Vorder- und eine R\"uckseite. Es gibt \totalPages\ Seiten, die letzten sind m\"oglicherweise leer.} \textbf{L\"osen Sie nicht die Heftklammern.} \begin{itemize} \item[--] Legen Sie Ihren Studentenausweis auf den Tisch. \item[--] Es sind \textbf{keine} weiteren Unterlagen zugelassen. \item[--] Die Nutzung eines \textbf{Taschenrechners} oder jedes anderen elektronischen Hilfsmittels ist w\"ahrend der Pr\"ufung nicht gestattet. \item[--] F\"ur die \textbf{Multiple Choice} Fragen erh\"alt man: \begin{itemize} \item [$+3$] Punkte, wenn die Antwort richtig ist, \item [$0$] Punkte, wenn die Frage nicht beantwortet ist oder mehrere M\"oglichkeiten angekreuzt sind, und \item [$-1$] Punkt, wenn die Antwort falsch ist. \end{itemize} \item[--] Benutzen Sie einen \textbf{Kugelschreiber mit schwarzer oder blauer Tinte} und verwenden Sie Korrekturfl\"ussigkeit (z.B. Tipp-Ex) um bei Bedarf Ihre Antwort zu \"andern. \item[--] Falls eine Fragestellung einen Fehler enth{\"a}lt, darf der/die Unterrichtende die entsprechende Frage annulieren. \item[--] Beachten Sie bitte die unten stehenden Richtlinien zum Markieren \textbf{der Antworten}: \end{itemize} -\hfill \hspace{-40px}\includegraphics[scale=0.2]{good_bad_square} \hfill +\hfill \hspace{-22px}\includegraphics[scale=0.18]{good_bad_square} \hfill % End of first page diff --git a/data/templates/linear-algebra/en/first_page.tex b/data/templates/linear-algebra/en/first_page.tex index 7b517f3..0aa81b6 100644 --- a/data/templates/linear-algebra/en/first_page.tex +++ b/data/templates/linear-algebra/en/first_page.tex @@ -1,52 +1,52 @@ % First page - ENGLISH \noindent \begin{minipage}[c]{350pt} \bf \prof~-~\ExamName~-~\SECTION \\ ~ \\ \bf \ExamDate~-~duration: \Time \end{minipage} \begin{minipage}[c]{100pt} \includegraphics[scale=0.24]{Logo_EPFL} \end{minipage} \vfill \begin{minipage}[c]{\textwidth} \noindent \hfill\fontsize{100}{120}{\selectfont{\ID{}}}\hfill \vspace{1cm} \par \noindent \begin{center} \fontsize{40}{48}{\selectfont{\NAME{}}} \end{center} \end{minipage} \vfill \noindent \namefield{SCIPER: {\Large \bf \SCIPER{} }}%SIGNATURE \hfill Signature:~\textcolor{light-Gray}{\rule{5cm}{1.5cm}} \\ ~ \\ \noindent \textbf{Do not turn the page before the start of the exam.} \textbf{This document is double-sided, has \totalPages\ pages, the last ones possibly blank.} \textbf{Do not unstaple.} \medskip \begin{itemize} \item[--] Place your student card on your table. \item[--] \textbf{No other paper materials} are allowed to be used during the exam. \item[--] Using a \textbf{calculator} or any electronic device is not permitted during the exam. \item[--] For the \textbf{multiple choice} questions, we give \begin{itemize} \item [$+3$] points if your answer is correct, \item [$0$] points if you give no answer or more than one, \item [$-1$] points if your answer is incorrect. \end{itemize} \item[--] Use a \textbf{black or dark blue ballpen} and clearly erase with \textbf{correction fluid} if necessary. \item[--] If a question is wrong, the teacher may decide to nullify it. \item[--] Observe these guidelines when \textbf{recording your answers}: \end{itemize} -\hfill \hspace{-40px}\includegraphics[scale=0.2]{good_bad_square} \hfill +\hfill \hspace{-22px}\includegraphics[scale=0.18]{good_bad_square} \hfill % End of first page diff --git a/data/templates/linear-algebra/fr/first_page.tex b/data/templates/linear-algebra/fr/first_page.tex index f5977db..e677db6 100644 --- a/data/templates/linear-algebra/fr/first_page.tex +++ b/data/templates/linear-algebra/fr/first_page.tex @@ -1,53 +1,53 @@ % First page - FRENCH \noindent \begin{minipage}[c]{350pt} \bf \prof~-~\ExamName~-~\SECTION \\ ~ \\ \bf \ExamDate~-~durée\,: \Time \end{minipage} \begin{minipage}[c]{100pt} \includegraphics[scale=0.24]{Logo_EPFL} \end{minipage} \vfill \begin{minipage}[c]{\textwidth} \noindent \hfill\fontsize{100}{120}{\selectfont{\ID{}}}\hfill \vspace{1cm} \par \noindent \begin{center} \fontsize{40}{48}{\selectfont{\NAME{}}} \end{center} %\hfill\fontsize{40}{48}{\selectfont{\NAME{}}}\hfill~ \end{minipage} \vfill \noindent \namefield{SCIPER\,: {\Large \bf \SCIPER{} }}%SIGNATURE \hfill Signature\,:~\textcolor{light-Gray}{\rule{5cm}{1.5cm}} \\ ~ \\ \noindent \textbf{Attendez le d\'ebut de l'\'epreuve avant de tourner la page.} \textbf{Ce document est imprim\'e recto-verso, il contient \totalPages\ pages, les derni\`eres pouvant \^etre vides.} \textbf{Ne~pas d\'egrafer.} \medskip \begin{itemize} \item[--] Posez votre carte d'\'etudiant sur la table. \item[--] \textbf{Aucun} document n'est autoris\'{e}. \item[--] L'utilisation d'une \textbf{calculatrice} et de tout outil \'electronique est interdite pendant l'\'epreuve. \item[--] Pour les questions \`a \textbf{choix multiple}, on comptera\,: \begin{itemize} \item [$+3$] points si la r\'eponse est correcte, \item [$0$] point si la question n'est pas r\'epondue ou s'il y a plusieurs croix, \item [$-1$] point si la r\'eponse est incorrecte. \end{itemize} \item[--] Utilisez un \textbf{stylo} \`a encre \textbf{noire ou bleu fonc\'e} et effacez proprement avec du\linebreak\textbf{correcteur blanc} si n\'ecessaire. \item[--] Si une question est erronée, l'enseignant se réserve le droit de l'annuler. \item[--] Respectez les consignes suivantes pour \textbf{marquer vos réponses}\,: \end{itemize} -\hfill \hspace{-40px}\includegraphics[scale=0.2]{good_bad_square} \hfill +\hfill \hspace{-22px}\includegraphics[scale=0.18]{good_bad_square} \hfill %% End of first page