init-projects/latex/exam/test.tex

146 lines
3.1 KiB
TeX
Raw Normal View History

2024-05-10 00:09:12 +02:00
\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
2024-05-10 00:25:48 +02:00
%\usepackage[
% a4paper,
% left=20mm,
% top=20mm,
%]{geometry}
2024-05-10 00:09:12 +02:00
% Code integration
2024-05-10 00:25:48 +02:00
%\usepackage{minted}
%\usemintedstyle{emacs}
2024-05-10 00:09:12 +02:00
% 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
2024-05-10 00:12:28 +02:00
pdfkeywords={examen, test, \docSubject},
2024-05-10 00:09:12 +02:00
]{hyperref}
% Style marks
\pointsinrightmargin
2024-05-10 00:25:48 +02:00
%\usepackage{color}
%\colorsolutionboxes
2024-05-10 00:09:12 +02:00
% Style head an foot
\pagestyle{headandfoot}
\runningheadrule
\firstpageheader{\docSubject}{}{\docLocation}
\runningheader{\docSubject}{\docTitle}{\docLocation}
\cfoot{\thepage}
2024-05-10 00:28:33 +02:00
% Style question
2024-05-10 00:39:33 +02:00
\renewcommand\questionlabel{\textbf{Exercice \Roman{question}.}}
2024-05-10 00:54:44 +02:00
%\renewcommand\questionshook{\setlength{\labelwidth}{1in}} % realign points
2024-05-10 00:39:33 +02:00
\renewcommand\partlabel{\arabic{partno}.}
\renewcommand\subpartlabel{\alph{subpart}.}
\renewcommand\subsubpartlabel{\greeknum{subsubpart}.}
2024-05-10 00:28:33 +02:00
2024-05-10 00:09:12 +02:00
% 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
2024-05-10 00:28:33 +02:00
\textbf{Tout document autorisé.
Tout dispositif de communication est interdit. } \\
2024-05-10 00:09:12 +02:00
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
2024-05-10 00:25:48 +02:00
%\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}}
2024-05-10 00:09:12 +02:00
\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}