2019-05-23 17:52:04 +00:00
|
|
|
|
%%%
|
|
|
|
|
%%%
|
|
|
|
|
%%% Classe : jl-devoir.cls
|
|
|
|
|
%%% Version : 1.0
|
|
|
|
|
%%% Date : 03/10/18
|
|
|
|
|
%%% Auteur : Jeff LANCE
|
|
|
|
|
%%%
|
|
|
|
|
%%%
|
|
|
|
|
|
|
|
|
|
\NeedsTeXFormat{LaTeX2e}
|
|
|
|
|
\ProvidesClass{jl-devoir}[2018/10/03 Classe pour les devoirs et tests, V1.0]
|
|
|
|
|
|
|
|
|
|
|
2019-05-23 18:08:53 +00:00
|
|
|
|
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
2019-05-23 17:52:04 +00:00
|
|
|
|
%
|
|
|
|
|
%
|
|
|
|
|
% INIT
|
|
|
|
|
%
|
|
|
|
|
%
|
2019-05-23 18:08:53 +00:00
|
|
|
|
|
2019-05-23 17:52:04 +00:00
|
|
|
|
\LoadClassWithOptions{scrartcl}
|
2019-05-23 18:08:53 +00:00
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
2019-05-23 17:52:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-05-23 18:08:53 +00:00
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
2019-05-23 17:52:04 +00:00
|
|
|
|
%
|
|
|
|
|
%
|
|
|
|
|
% PACKAGES
|
|
|
|
|
%
|
|
|
|
|
%
|
2019-05-23 18:08:53 +00:00
|
|
|
|
|
|
|
|
|
%% Others
|
|
|
|
|
%%
|
2019-05-23 17:52:04 +00:00
|
|
|
|
\RequirePackage{xkeyval}
|
|
|
|
|
|
2019-05-23 18:08:53 +00:00
|
|
|
|
%% Own packages. Those contains some global settings and definitions.
|
|
|
|
|
%%
|
2019-05-23 17:52:04 +00:00
|
|
|
|
\RequirePackage{commun}
|
|
|
|
|
\RequirePackage{couleurs}
|
|
|
|
|
\RequirePackage{shortcuts}
|
|
|
|
|
|
2019-05-23 18:08:53 +00:00
|
|
|
|
%% Output
|
|
|
|
|
%%
|
2019-05-23 17:52:04 +00:00
|
|
|
|
\RequirePackage{comment}
|
|
|
|
|
|
2019-05-23 18:08:53 +00:00
|
|
|
|
%% Layout
|
|
|
|
|
%%
|
2019-05-23 17:52:04 +00:00
|
|
|
|
\RequirePackage{geometry}
|
|
|
|
|
\RequirePackage[footsepline, plainfootsepline]{scrlayer-scrpage}
|
|
|
|
|
\RequirePackage{titling}
|
|
|
|
|
\RequirePackage{titlesec}
|
|
|
|
|
\RequirePackage{pageslts}
|
|
|
|
|
\RequirePackage{enumitem}
|
|
|
|
|
\RequirePackage[]{hyperref}
|
2019-05-23 18:08:53 +00:00
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
2019-05-23 17:52:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\makeatletter
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-05-23 18:08:53 +00:00
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
2019-05-23 17:52:04 +00:00
|
|
|
|
%
|
|
|
|
|
%
|
|
|
|
|
% OPTIONS
|
|
|
|
|
%
|
|
|
|
|
%
|
|
|
|
|
|
|
|
|
|
\DeclareOptionX{type}[ds]{%
|
|
|
|
|
\def\type{#1}%
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
\DeclareOptionX{size}[a4paper]{%
|
|
|
|
|
\def\size{#1}%
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
\ExecuteOptions{DIV=24}
|
|
|
|
|
\ExecuteOptionsX{type}
|
|
|
|
|
\ExecuteOptionsX{size}
|
|
|
|
|
\ProcessOptionsX
|
2019-05-23 18:08:53 +00:00
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
2019-05-23 17:52:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-05-23 18:08:53 +00:00
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
2019-05-23 17:52:04 +00:00
|
|
|
|
%
|
|
|
|
|
%
|
|
|
|
|
% FIXES
|
|
|
|
|
%
|
|
|
|
|
%
|
|
|
|
|
|
2019-05-23 18:08:53 +00:00
|
|
|
|
\input{fixes.tex}
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
2019-05-23 17:52:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-05-23 18:08:53 +00:00
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
2019-05-23 17:52:04 +00:00
|
|
|
|
%
|
|
|
|
|
%
|
|
|
|
|
% SETTINGS
|
|
|
|
|
%
|
|
|
|
|
%
|
|
|
|
|
|
|
|
|
|
% metapost
|
|
|
|
|
\ifpdf
|
|
|
|
|
\DeclareGraphicsRule{*}{mps}{*}{}
|
|
|
|
|
\fi
|
|
|
|
|
|
|
|
|
|
% sizing of the page, depending on the size parameter of the class
|
|
|
|
|
\ifthenelse{ \equal{\size}{a5} }{
|
|
|
|
|
\geometry{
|
|
|
|
|
a5paper,
|
|
|
|
|
landscape,
|
|
|
|
|
includeheadfoot,
|
|
|
|
|
hmargin=.8cm,
|
|
|
|
|
vmargin=.8cm,
|
|
|
|
|
head=14.5pt}
|
|
|
|
|
}{
|
|
|
|
|
\geometry{a4paper,
|
|
|
|
|
includeheadfoot,
|
|
|
|
|
hmargin=.8cm,
|
|
|
|
|
vmargin=.8cm,
|
|
|
|
|
head=14.5pt}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
% title, header and footer
|
|
|
|
|
\ihead[]{}
|
|
|
|
|
\chead[]{}
|
|
|
|
|
\ohead[]{}
|
|
|
|
|
\ifoot[]{}
|
|
|
|
|
\cfoot[]{}
|
|
|
|
|
\ofoot[]{}
|
|
|
|
|
|
|
|
|
|
% KOMA-Script version (preferred)
|
2021-09-12 17:51:38 +00:00
|
|
|
|
\ifthenelse{ \equal{\type}{e} }{
|
2020-02-27 22:33:11 +00:00
|
|
|
|
\cohead[\textbf{MATHÉMATIQUES}\\\textbf{\Jd Évaluation}]
|
|
|
|
|
{\textbf{MATHÉMATIQUES}\\\textbf{\Jd Évaluation}}
|
2019-05-23 17:52:04 +00:00
|
|
|
|
\lohead[NOM :\\Prénom :]{NOM :\\Prénom :}
|
2019-11-02 09:54:37 +00:00
|
|
|
|
\rohead[Le \@date\\]{Le \@date\\}
|
2019-05-23 17:52:04 +00:00
|
|
|
|
\cehead[]{}
|
|
|
|
|
\lehead[]{}
|
|
|
|
|
\rehead[]{}
|
|
|
|
|
}{
|
2021-09-12 17:51:38 +00:00
|
|
|
|
\ifthenelse{ \equal{\type}{d} }{
|
2019-05-23 17:52:04 +00:00
|
|
|
|
\cohead[\textbf{MATHÉMATIQUES}\\\textbf{Devoir maison}]
|
|
|
|
|
{\textbf{MATHÉMATIQUES}\\\textbf{Devoir maison}}
|
|
|
|
|
\lohead[NOM :\\Prénom :]{NOM :\\Prénom :}
|
2019-11-02 09:54:37 +00:00
|
|
|
|
\rohead[\@date\\]{\@date\\}
|
2019-05-23 17:52:04 +00:00
|
|
|
|
\cehead[]{}
|
|
|
|
|
\lehead[]{}
|
|
|
|
|
\rehead[]{}
|
|
|
|
|
}{
|
2021-09-12 17:51:38 +00:00
|
|
|
|
\ifthenelse{ \equal{\type}{i} }{
|
2020-02-27 22:33:11 +00:00
|
|
|
|
\cohead[\textbf{MATHÉMATIQUES}\\\textbf{\Jd Interrogation}]
|
|
|
|
|
{\textbf{MATHÉMATIQUES}\\\textbf{\Jd Interrogation}}
|
2019-05-23 17:52:04 +00:00
|
|
|
|
\lohead[NOM :\\Prénom :]{NOM :\\Prénom :}
|
2019-11-02 09:54:37 +00:00
|
|
|
|
\rohead[\@date\\]{\@date\\}
|
2019-05-23 17:52:04 +00:00
|
|
|
|
\cehead[]{}
|
|
|
|
|
\lehead[]{}
|
|
|
|
|
\rehead[]{}
|
|
|
|
|
}{
|
2021-09-12 17:51:38 +00:00
|
|
|
|
\cohead[\textbf{MATHÉMATIQUES}\\\textbf{\Jd Évaluation}]
|
|
|
|
|
{\textbf{MATHÉMATIQUES}\\\textbf{\Jd Évaluation}}
|
|
|
|
|
\lohead[NOM :\\Prénom :]{NOM :\\Prénom :}
|
|
|
|
|
\rohead[Le \@date\\]{Le \@date\\}
|
|
|
|
|
\cehead[]{}
|
|
|
|
|
\lehead[]{}
|
|
|
|
|
\rehead[]{}
|
2019-05-23 17:52:04 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
\cofoot*{}
|
|
|
|
|
\pagestyle{scrheadings}
|
|
|
|
|
\setkomafont{pagehead}{\normalfont}
|
|
|
|
|
\setkomafont{pagefoot}{\normalfont}
|
|
|
|
|
|
|
|
|
|
% paths
|
|
|
|
|
\graphicspath{{images/}}
|
2019-05-23 18:08:53 +00:00
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
2019-05-23 17:52:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-05-23 18:08:53 +00:00
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
2019-05-23 17:52:04 +00:00
|
|
|
|
%
|
|
|
|
|
%
|
2019-05-23 18:08:53 +00:00
|
|
|
|
% COMMANDS
|
2019-05-23 17:52:04 +00:00
|
|
|
|
%
|
|
|
|
|
%
|
|
|
|
|
|
2019-05-23 18:08:53 +00:00
|
|
|
|
%% new lists definitions
|
|
|
|
|
%%
|
2019-05-23 17:52:04 +00:00
|
|
|
|
\newlist{questions}{enumerate}{2}
|
|
|
|
|
\setlist[questions]{labelindent=0em, leftmargin=*, labelsep=0.5em}
|
|
|
|
|
\setlist[questions, 1]{label=\textbf{\arabic*.}}
|
|
|
|
|
\setlist[questions, 2]{label=\textbf{\alph*)}}
|
|
|
|
|
|
|
|
|
|
\newlist{questionsl}{enumerate*}{1}
|
|
|
|
|
\setlist*[questionsl]{label=\textbf{\alph*)}}
|
|
|
|
|
|
|
|
|
|
\setlist[enumerate, 1]{label=\textbf{\arabic*.}, leftmargin=*, labelsep=.5em}
|
|
|
|
|
\setlist[enumerate, 2]{label=\textbf{\alph*)}}
|
|
|
|
|
|
|
|
|
|
\setlist[description]{font=\sffamily\bfseries}
|
|
|
|
|
|
2020-03-04 18:13:03 +00:00
|
|
|
|
%% \tournerlapage
|
2019-05-23 18:08:53 +00:00
|
|
|
|
%% print a "Please, turn the page" at bottom right of the page.
|
|
|
|
|
%%
|
2020-03-04 18:13:03 +00:00
|
|
|
|
\NewDocumentCommand \tournerlapage{ }{
|
2019-05-23 17:52:04 +00:00
|
|
|
|
\rofoot[\textit{Tourner la page, svp} \faHandORight]
|
|
|
|
|
{\textit{Tourner la page, svp} \faHandORight}
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-04 18:13:03 +00:00
|
|
|
|
%% \consignes
|
2019-05-23 18:08:53 +00:00
|
|
|
|
%% print the main directives of the test.
|
|
|
|
|
%%
|
2020-03-04 18:13:03 +00:00
|
|
|
|
\NewDocumentCommand \consignes{ }{
|
2019-05-23 18:08:53 +00:00
|
|
|
|
\begin{center}
|
|
|
|
|
\fbox{
|
2021-02-18 22:08:40 +00:00
|
|
|
|
\parbox{.97\linewidth}{
|
2019-12-15 18:46:43 +00:00
|
|
|
|
\small
|
2019-05-23 18:08:53 +00:00
|
|
|
|
\centering
|
|
|
|
|
Le prêt de matériel et de documents personnels sont interdits.\\
|
|
|
|
|
Le barème est donné à titre indicatif : il pourra être légèrement différent.\\
|
|
|
|
|
Les exercices peuvent être traités dans n’importe quel ordre mais attention à bien reporter les numéros des questions.\\
|
|
|
|
|
Il sera tenu compte dans la notation du soin apporté à la copie et de la clarté des raisonnements.\\
|
|
|
|
|
Si présent, le symbole \faPencil\ indique que tout ou partie de l'exercice est à réaliser sur l’énoncé.\\
|
|
|
|
|
Sauf mention contraire, toutes les questions sont à justifier rigoureusement.
|
|
|
|
|
}
|
2019-05-23 17:52:04 +00:00
|
|
|
|
}
|
2019-05-23 18:08:53 +00:00
|
|
|
|
\end{center}
|
2019-05-23 17:52:04 +00:00
|
|
|
|
|
2019-05-23 18:08:53 +00:00
|
|
|
|
\vspace{.2cm}
|
2019-05-23 17:52:04 +00:00
|
|
|
|
}
|
|
|
|
|
|
2019-05-23 18:08:53 +00:00
|
|
|
|
%% text customization
|
|
|
|
|
%%
|
2020-03-04 18:13:03 +00:00
|
|
|
|
\NewDocumentCommand \conclusion{ }{
|
2019-05-23 18:08:53 +00:00
|
|
|
|
\underline{Conclusion :}
|
2019-05-23 17:52:04 +00:00
|
|
|
|
}
|
2020-03-04 18:13:03 +00:00
|
|
|
|
|
|
|
|
|
%% pagesuivante
|
|
|
|
|
%%
|
|
|
|
|
\NewDocumentCommand{\pagesuivante}{}{
|
|
|
|
|
\newpage
|
|
|
|
|
\thispagestyle{plain}
|
|
|
|
|
\lefoot*{}
|
|
|
|
|
}
|
2019-05-23 18:08:53 +00:00
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
2019-05-23 17:52:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-05-23 18:08:53 +00:00
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
2019-05-23 17:52:04 +00:00
|
|
|
|
%
|
|
|
|
|
%
|
2019-05-23 18:08:53 +00:00
|
|
|
|
% AMSTHM
|
2019-05-23 17:52:04 +00:00
|
|
|
|
%
|
|
|
|
|
%
|
2019-05-23 18:08:53 +00:00
|
|
|
|
|
|
|
|
|
\input{amsthm.tex}
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
|
2019-05-23 17:52:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\makeatother
|