145 lines
3.1 KiB
TeX
145 lines
3.1 KiB
TeX
\documentclass[a4paper,12pt,addpoints]{exam}
|
|
|
|
% Font
|
|
\usepackage[T1]{fontenc}
|
|
\renewcommand{\familydefault}{\sfdefault}
|
|
\usepackage{microtype}
|
|
|
|
% Languages
|
|
\usepackage[french]{babel}
|
|
\frenchsetup{SmallCapsFigTabCaptions=false}
|
|
\usepackage{csquotes}
|
|
\MakeOuterQuote{"}
|
|
|
|
% Change page dimensions
|
|
%\usepackage[
|
|
% a4paper,
|
|
% left=20mm,
|
|
% top=20mm,
|
|
%]{geometry}
|
|
|
|
% Code integration
|
|
%\usepackage{minted}
|
|
%\usemintedstyle{emacs}
|
|
|
|
% Metadatas
|
|
\def\docTitle{TITLE}
|
|
\def\authorMail{mailto:place@holder.com}
|
|
\def\docSubject{SUBJECT}
|
|
\def\docLocation{LOCATION}
|
|
\def\docTimeAllocated{1 h 30}
|
|
|
|
\usepackage[
|
|
pdfauthor={\docLocation}, % author metadata
|
|
pdftitle={\docTitle}, % title metadata
|
|
pdfsubject={\docSubject}, % subject metadata
|
|
pdfkeywords={examen, test, \docSubject},
|
|
]{hyperref}
|
|
|
|
% Style marks
|
|
\pointsinrightmargin
|
|
%\usepackage{color}
|
|
%\colorsolutionboxes
|
|
|
|
% Style head an foot
|
|
\pagestyle{headandfoot}
|
|
\runningheadrule
|
|
\firstpageheader{\docSubject}{}{\docLocation}
|
|
\runningheader{\docSubject}{\docTitle}{\docLocation}
|
|
\cfoot{\thepage}
|
|
|
|
% Style question
|
|
\renewcommand\questionlabel{\textbf{Exercice \Roman{question}.}}
|
|
%\renewcommand\questionshook{\setlength{\labelwidth}{1in}} % realign points
|
|
\renewcommand\partlabel{\arabic{partno}.}
|
|
\renewcommand\subpartlabel{\alph{subpart}.}
|
|
\renewcommand\subsubpartlabel{\greeknum{subsubpart}.}
|
|
|
|
% Show answers
|
|
%\printanswers
|
|
|
|
\begin{document}
|
|
% \definecolor{SolutionBoxColor}{gray}{1} % invisible answer area outline
|
|
|
|
\begin{center}
|
|
{\LARGE\bfseries\docTitle} \\
|
|
\docTimeAllocated~-- \numpoints~\points
|
|
\end{center}
|
|
|
|
\begin{center}
|
|
\parbox{14cm}{\centering
|
|
\textbf{Tout document autorisé.
|
|
Tout dispositif de communication est interdit. } \\
|
|
Sauf indication contraire, toute assertion doit être démontrée.}
|
|
\end{center}
|
|
|
|
\begin{tabular}{r@{}p{0.8\textwidth}}
|
|
Nom & ~: \hrulefill \\[0.5em]
|
|
Prénom & ~: \hrulefill
|
|
\end{tabular}
|
|
|
|
% Additional information
|
|
%\vspace{1cm}
|
|
%\parbox{14cm}{Nota :
|
|
% \begin{itemize}
|
|
% \item Les exercices sont indépendants.
|
|
% \item Toute réponse hors du cadre sera ignorée.
|
|
% \end{itemize}}
|
|
|
|
\vspace{1cm}
|
|
\begin{questions}
|
|
\question
|
|
ÉNONCÉ DE L'EXERCICE 1
|
|
\begin{parts}
|
|
\part[6]
|
|
ÉNONCÉ DE LA QUESTION 1
|
|
\begin{solutionorbox}[3cm]
|
|
RÉPONSE DE LA QUESTION 1
|
|
\end{solutionorbox}
|
|
|
|
\part[2]
|
|
ÉNONCÉ DE LA QUESTION 2
|
|
\begin{solutionorbox}[3cm]
|
|
RÉPONSE DE LA QUESTION 2
|
|
\end{solutionorbox}
|
|
\end{parts}
|
|
|
|
|
|
\question
|
|
ÉNONCÉ DE L'EXERCICE 2
|
|
\begin{parts}
|
|
\part[3]
|
|
ÉNONCÉ DE LA QUESTION 1
|
|
\begin{solutionorbox}[4cm]
|
|
RÉPONSE DE LA QUESTION 1
|
|
\end{solutionorbox}
|
|
|
|
\part[2]
|
|
ÉNONCÉ DE LA QUESTION 2
|
|
\begin{solutionorbox}[4cm]
|
|
RÉPONSE DE LA QUESTION 2
|
|
\end{solutionorbox}
|
|
\end{parts}
|
|
|
|
|
|
\question
|
|
ÉNONCÉ DE L'EXERCICE 3
|
|
\begin{parts}
|
|
\part[3]
|
|
ÉNONCÉ DE LA QUESTION 1
|
|
\begin{solutionorbox}[3cm]
|
|
RÉPONSE DE LA QUESTION 1
|
|
\end{solutionorbox}
|
|
|
|
\part[4]
|
|
ÉNONCÉ DE LA QUESTION 2
|
|
\begin{solutionorbox}[3cm]
|
|
RÉPONSE DE LA QUESTION 2
|
|
\end{solutionorbox}
|
|
\end{parts}
|
|
\end{questions}
|
|
|
|
\begin{center}
|
|
Fin de l'examen.
|
|
\end{center}
|
|
\end{document}
|