2017-2018/tools/example/examen.tex

99 lines
2.6 KiB
TeX
Raw Normal View History

\documentclass[a4paper,12pt]{article}
\usepackage{exsheets}
\usepackage[francais]{babel}
\usepackage{fullpage}
\usepackage{xcolor}
\usepackage{mdframed}
% Title Page
\title{Brevet blanc}
%\classe{Troisième}
\date{4 juin 2014}
%\duree{2 heures}
%\typedoc{Other}
\SetupExSheets[points]{name=point/s}
\SetupExSheets{headings=exo}
\DeclareInstance{exsheets-heading}{exo}{default}{
%title-format = \color{blue},
%pre-code = \mdframed,%[backgroundcolor=blue!20],
%post-code = \endmdframed,
join = {
title[r,b]number[l,b](.333em,0pt)
} ,
attach =
{
main[l,vc]title[l,vc](0pt,0pt) ;
main[hc,vc]subtitle[hc,vc](0pt,0pt) ;
main[r,vc]points[r,vc](0pt,0pt) ;
}
}
\SetupExSheets{
exsheets-heading/pre-hook = \mdframed ,
exsheets-heading/post-hook = \endmdframed
}
\begin{document}
%\titlepage
\maketitle
% table des points avec manip salle pour la présentation
\begin{tabular}{|c|c|}
\hline
Exercices & points \\
\hline
\ForEachQuestion{
\iflastquestion%
{Presentation & \GetQuestionProperty{points}{#1}}%
{Exercice \QuestionNumber{#1} & \GetQuestionProperty{points}{#1}}
\\ \hline
}
Total & \pointssum* \\ \hline
\end{tabular}
\begin{question}[subtitle=Chipo]
\begin{enumerate}
\item (\addpoints{1.4}) Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
\item \addpoints*{2} tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
\item vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
\item no sea takimata sanctus est Lorem ipsum dolor sit amet.
\end{enumerate}
\end{question}
\begin{question}[subtitle=Plop]{4}
\begin{mdframed}[backgroundcolor=blue!30]
Chipopo
\end{mdframed}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
no sea takimata sanctus est Lorem ipsum dolor sit amet.
\end{question}
\begin{question}{4}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
no sea takimata sanctus est Lorem ipsum dolor sit amet.
\end{question}
\begin{question}[name={presentation},print=false]{4}
\end{question}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "master"
%%% End: