2019-12-19 18:04:00 +00:00
|
|
|
|
%%%
|
2018-12-19 12:41:12 +00:00
|
|
|
|
%%%
|
|
|
|
|
%%% Classe : jl-cours.cls
|
|
|
|
|
%%% Version : 1.0
|
|
|
|
|
%%% Date : 09/11/16
|
|
|
|
|
%%% Auteur : Jeff LANCE
|
|
|
|
|
%%%
|
|
|
|
|
%%% Notes de versions
|
|
|
|
|
%%% 25/11/18: version 2.0
|
|
|
|
|
%%% renommage de la classe et constitution en package.
|
|
|
|
|
%%%
|
|
|
|
|
|
|
|
|
|
\NeedsTeXFormat{LaTeX2e}
|
|
|
|
|
\ProvidesClass{jl-cours}[2016/11/09 Document de cours en A4, V2.0]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
%
|
|
|
|
|
%
|
|
|
|
|
% INIT
|
|
|
|
|
%
|
|
|
|
|
%
|
|
|
|
|
|
|
|
|
|
\LoadClassWithOptions{scrartcl}
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
%
|
|
|
|
|
%
|
|
|
|
|
% PACKAGES
|
|
|
|
|
%
|
|
|
|
|
%
|
|
|
|
|
|
|
|
|
|
%% Others
|
|
|
|
|
%%
|
|
|
|
|
\RequirePackage{xkeyval}
|
|
|
|
|
|
|
|
|
|
%% Own packages. Those contains some global settings and definitions.
|
|
|
|
|
%%
|
2020-08-20 15:19:11 +00:00
|
|
|
|
\RequirePackage{algo}
|
2018-12-19 12:41:12 +00:00
|
|
|
|
\RequirePackage{commun}
|
|
|
|
|
\RequirePackage{couleurs}
|
|
|
|
|
\RequirePackage{shortcuts}
|
|
|
|
|
|
|
|
|
|
%% Output
|
|
|
|
|
%%
|
|
|
|
|
\RequirePackage{comment}
|
|
|
|
|
|
|
|
|
|
%% Layout
|
|
|
|
|
%%
|
|
|
|
|
\RequirePackage{geometry}
|
|
|
|
|
\RequirePackage[footsepline, plainfootsepline]{scrlayer-scrpage}
|
|
|
|
|
\RequirePackage{titling}
|
|
|
|
|
\RequirePackage{titlesec}
|
|
|
|
|
\RequirePackage{pageslts}
|
|
|
|
|
\RequirePackage{enumitem}
|
|
|
|
|
\RequirePackage[]{hyperref}
|
2019-11-02 09:53:42 +00:00
|
|
|
|
\RequirePackage{chngcntr}
|
2018-12-19 12:41:12 +00:00
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\makeatletter
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
%
|
|
|
|
|
%
|
|
|
|
|
% OPTIONS
|
|
|
|
|
%
|
|
|
|
|
%
|
|
|
|
|
|
2019-12-15 18:47:24 +00:00
|
|
|
|
\DeclareOptionX{type}[crs]{%
|
2018-12-19 12:41:12 +00:00
|
|
|
|
\def\type{#1}%
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
\ExecuteOptions{a4paper, DIV=24}
|
|
|
|
|
\ExecuteOptionsX{type}
|
|
|
|
|
\ProcessOptionsX
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
%
|
|
|
|
|
%
|
|
|
|
|
% FIXES
|
|
|
|
|
%
|
|
|
|
|
%
|
|
|
|
|
|
|
|
|
|
\input{fixes.tex}
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
%
|
|
|
|
|
%
|
|
|
|
|
% SETTINGS
|
|
|
|
|
%
|
|
|
|
|
%
|
|
|
|
|
|
|
|
|
|
%% metapost
|
|
|
|
|
%%
|
|
|
|
|
\ifpdf
|
|
|
|
|
\DeclareGraphicsRule{*}{mps}{*}{}
|
|
|
|
|
\fi
|
|
|
|
|
|
|
|
|
|
%% tkz
|
|
|
|
|
%%
|
2020-08-10 14:30:46 +00:00
|
|
|
|
%\usetkzobj{all} % on charge tous les objets: useless since version 3.02 of tkz-euclide
|
2018-12-19 12:41:12 +00:00
|
|
|
|
|
|
|
|
|
%% sizing of the page
|
|
|
|
|
%%
|
|
|
|
|
\geometry{a4paper, includeheadfoot, hmargin=.7cm, vmargin=.5cm, head=14.5pt}
|
|
|
|
|
|
|
|
|
|
%% title, header and footer
|
|
|
|
|
%% KOMA-Script version (preferred)
|
|
|
|
|
%%
|
|
|
|
|
\ohead{}
|
|
|
|
|
|
2020-12-11 12:29:50 +00:00
|
|
|
|
\ifthenelse{ \equal{\type}{a} }{
|
2018-12-19 12:41:12 +00:00
|
|
|
|
\IfNoValueTF{ \subtitle }{
|
2019-11-02 09:53:42 +00:00
|
|
|
|
% \cohead[\@title]{\@title}
|
|
|
|
|
% \rohead[Activité]{Activité}
|
2022-01-26 20:15:48 +00:00
|
|
|
|
% \cohead[]{\@title}
|
2020-12-11 12:29:50 +00:00
|
|
|
|
\rohead*[]{Activité}
|
2018-12-19 12:41:12 +00:00
|
|
|
|
}{
|
2019-11-02 09:53:42 +00:00
|
|
|
|
% \cohead[\@title]{\@title}
|
|
|
|
|
% \rohead[Activité]{Activité - \@subtitle}
|
2022-01-26 20:15:48 +00:00
|
|
|
|
% \cohead[]{\@title}
|
2020-12-11 12:29:50 +00:00
|
|
|
|
\rohead*[]{Activité - \@subtitle}
|
2018-12-19 12:41:12 +00:00
|
|
|
|
}
|
|
|
|
|
}{
|
2020-12-11 12:29:50 +00:00
|
|
|
|
\ifthenelse{ \equal{\type}{e} }{
|
2019-11-02 09:53:42 +00:00
|
|
|
|
% \cohead[\@title]{\@title}
|
|
|
|
|
% \rohead[Exercices]{Exercices}
|
|
|
|
|
\IfNoValueTF{ \subtitle }{
|
2022-01-26 20:15:48 +00:00
|
|
|
|
% \cohead[]{\@title}
|
2020-12-11 12:29:50 +00:00
|
|
|
|
\rohead*[]{Exercices}
|
2019-11-02 09:53:42 +00:00
|
|
|
|
}{
|
2022-01-26 20:15:48 +00:00
|
|
|
|
% \cohead[]{\@title}
|
2020-12-11 12:29:50 +00:00
|
|
|
|
\rohead*[]{Exercices - \@subtitle}
|
2019-11-02 09:53:42 +00:00
|
|
|
|
}
|
2018-12-19 12:41:12 +00:00
|
|
|
|
}{
|
2020-12-11 12:29:50 +00:00
|
|
|
|
\ifthenelse{ \equal{\type}{q} }{
|
2019-11-02 09:53:42 +00:00
|
|
|
|
% \cohead[\@title]{\@title}
|
|
|
|
|
% \rohead[Rappels]{Rappels - \@subtitle}
|
2022-01-26 20:15:48 +00:00
|
|
|
|
% \cohead*[]{\@title}
|
2020-12-11 12:29:50 +00:00
|
|
|
|
\rohead*[]{Rappels - \@subtitle}
|
2019-11-02 09:53:42 +00:00
|
|
|
|
}{
|
2020-12-11 12:29:50 +00:00
|
|
|
|
\ifthenelse{ \equal{\type}{n} }{
|
2020-02-25 18:22:18 +00:00
|
|
|
|
% \cohead[\@title]{\@title}
|
|
|
|
|
% \rohead[Rappels]{Rappels - \@subtitle}
|
2022-01-26 20:15:48 +00:00
|
|
|
|
% \cohead*[]{\@title}
|
2020-12-11 12:29:50 +00:00
|
|
|
|
\rohead*[]{}
|
2020-02-25 18:22:18 +00:00
|
|
|
|
}{
|
2020-12-11 12:29:50 +00:00
|
|
|
|
\rohead*[Cours]{Cours - \@subtitle}
|
2020-02-25 18:22:18 +00:00
|
|
|
|
}
|
2019-11-02 09:53:42 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2018-12-19 12:41:12 +00:00
|
|
|
|
}
|
|
|
|
|
|
2022-01-26 20:15:48 +00:00
|
|
|
|
% define the page numbering style
|
2019-11-02 09:53:42 +00:00
|
|
|
|
\pagenumbering{arabic}
|
2022-01-26 20:15:48 +00:00
|
|
|
|
% clear the defauls page header and footer, so the standard page numbering
|
|
|
|
|
% \clearpairofpagestyles
|
2019-11-02 09:53:42 +00:00
|
|
|
|
|
2022-01-26 20:15:48 +00:00
|
|
|
|
% set my own numbering form for the footer
|
2019-11-02 09:53:42 +00:00
|
|
|
|
\cofoot[\thepage\ /\ \pageref{LastPage}]{\thepage\ /\ \pageref{LastPage}}
|
|
|
|
|
\cefoot[\thepage\ /\ \pageref{LastPage}]{\thepage\ /\ \pageref{LastPage}}
|
|
|
|
|
|
2018-12-19 12:41:12 +00:00
|
|
|
|
\pagestyle{scrheadings}
|
|
|
|
|
\setkomafont{pagehead}{\normalfont\bfseries}
|
|
|
|
|
\setkomafont{pagefoot}{\normalfont}
|
|
|
|
|
|
|
|
|
|
%% sections
|
|
|
|
|
%%
|
|
|
|
|
\titleformat{\section}[block]
|
|
|
|
|
{\sffamily\bfseries\Large}
|
|
|
|
|
{\thesection.}{.5em}{}[]
|
|
|
|
|
\titleformat{\subsection}[block]
|
|
|
|
|
{\sffamily\bfseries\large\hspace{2em}}
|
|
|
|
|
{\thesubsection)}{.5em}{}[]
|
|
|
|
|
\titleformat{\subsubsection}[block]
|
|
|
|
|
{\sffamily\bfseries\large\hspace{2em}}
|
|
|
|
|
{\circled{\thesubsubsection}}{.5em}{}[]
|
|
|
|
|
\renewcommand \thesection{\Roman{section}}
|
|
|
|
|
\renewcommand \thesubsection{\arabic{subsection}}
|
|
|
|
|
\renewcommand \thesubsubsection{\alph{subsubsection}}
|
|
|
|
|
|
|
|
|
|
%% paths
|
|
|
|
|
%%
|
|
|
|
|
\graphicspath{{images/}}
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
%
|
|
|
|
|
%
|
|
|
|
|
% MDFRAMED
|
|
|
|
|
%
|
|
|
|
|
%
|
|
|
|
|
|
|
|
|
|
\input{mdframed.tex}
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
%
|
|
|
|
|
%
|
|
|
|
|
% MDTHEOREM
|
|
|
|
|
%
|
|
|
|
|
%
|
|
|
|
|
|
|
|
|
|
\input{mdtheorem.tex}
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
%
|
|
|
|
|
%
|
|
|
|
|
% ENVIRONMENTS
|
|
|
|
|
%
|
|
|
|
|
%
|
|
|
|
|
|
|
|
|
|
\input{environments.tex}
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
%
|
|
|
|
|
%
|
|
|
|
|
% COMMANDS
|
|
|
|
|
%
|
|
|
|
|
%
|
|
|
|
|
|
2019-11-17 21:57:27 +00:00
|
|
|
|
%% classe
|
2019-11-02 09:53:42 +00:00
|
|
|
|
\NewDocumentCommand{\classe}{ G{2nde} }{
|
|
|
|
|
\ifthenelse{ \equal{#1}{2nde} }{
|
2020-12-11 12:29:50 +00:00
|
|
|
|
\lohead[2\tup{nde}]{2\tup{nde}}
|
2019-11-02 09:53:42 +00:00
|
|
|
|
}{
|
|
|
|
|
\ifthenelse{ \equal{#1}{1gen} }{
|
2020-12-11 12:29:50 +00:00
|
|
|
|
\lohead[1\tup{ère}]{1\tup{ère}}
|
2019-11-02 09:53:42 +00:00
|
|
|
|
}{
|
|
|
|
|
\ifthenelse{ \equal{#1}{1stg} }{
|
2020-12-11 12:29:50 +00:00
|
|
|
|
\lohead[1\tup{ère}STMG]{1\tup{ère}STMG}
|
2019-11-02 09:53:42 +00:00
|
|
|
|
}{
|
|
|
|
|
\ifthenelse{ \equal{#1}{tes} }{
|
2020-12-11 12:29:50 +00:00
|
|
|
|
\lohead[T\tup{ale}ES]{T\tup{ale}ES}
|
2019-11-02 09:53:42 +00:00
|
|
|
|
}{
|
|
|
|
|
\lohead{}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-04 18:13:37 +00:00
|
|
|
|
%% pagesuivante
|
2019-11-02 09:53:42 +00:00
|
|
|
|
%%
|
2020-03-04 18:13:37 +00:00
|
|
|
|
\NewDocumentCommand{\pagesuivante}{}{
|
2019-11-02 09:53:42 +00:00
|
|
|
|
\newpage
|
2020-02-25 18:22:18 +00:00
|
|
|
|
\thispagestyle{plain}
|
|
|
|
|
\lefoot*{}
|
2019-11-02 09:53:42 +00:00
|
|
|
|
}
|
|
|
|
|
|
2018-12-19 12:41:12 +00:00
|
|
|
|
%% titre
|
|
|
|
|
%%
|
2019-11-02 09:53:42 +00:00
|
|
|
|
\NewDocumentCommand \titre { G{Titre} G{Sous-titre} G{} G{} }{%
|
2018-12-19 12:41:12 +00:00
|
|
|
|
\setlength{\droptitle}{-2cm}
|
2020-12-11 12:29:50 +00:00
|
|
|
|
\title{\Jd\bfseries #1}
|
2018-12-19 12:41:12 +00:00
|
|
|
|
\subtitle{#2}
|
2019-11-02 09:53:42 +00:00
|
|
|
|
\date{}
|
|
|
|
|
\maketitle
|
2018-12-19 12:41:12 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
%% \partie | \sspartie
|
|
|
|
|
%% Define a (sub)section title.
|
|
|
|
|
%%
|
|
|
|
|
\newcounter{partiecounter}
|
|
|
|
|
\newcounter{sspartiecounter}
|
|
|
|
|
\newcounter{ssspartiecounter}
|
|
|
|
|
%
|
|
|
|
|
\NewDocumentCommand \partie { G{Partie} } {%
|
|
|
|
|
\def\cType{\Roman}
|
|
|
|
|
\stepcounter{partiecounter}
|
|
|
|
|
\setcounter{sspartiecounter}{0}
|
|
|
|
|
\section{#1}
|
|
|
|
|
}
|
|
|
|
|
%
|
|
|
|
|
\NewDocumentCommand \sspartie { G{Sous-Partie} } {%
|
|
|
|
|
\def\cType{\arabic}
|
|
|
|
|
\stepcounter{sspartiecounter}
|
|
|
|
|
\subsection{#1}
|
|
|
|
|
}
|
|
|
|
|
%
|
|
|
|
|
\NewDocumentCommand \ssspartie { G{Sous-sous-Partie} } {%
|
|
|
|
|
\def\cType{\alph}
|
|
|
|
|
\stepcounter{ssspartiecounter}
|
|
|
|
|
\subsubsection{#1}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
%% new lists definitions
|
|
|
|
|
%%
|
|
|
|
|
\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}
|
|
|
|
|
% \NewTasks[counter-format={tsk[1].},label-format={\bfseries}]{questions}[*]
|
2019-05-05 19:39:49 +00:00
|
|
|
|
|
|
|
|
|
%% \displayturnpage
|
|
|
|
|
%% print a "Please, turn the page" at bottom right of the page.
|
|
|
|
|
%%
|
|
|
|
|
\NewDocumentCommand \displayturnpage{ }{
|
|
|
|
|
\rofoot[\textit{Tourner la page, svp} \faHandORight]
|
|
|
|
|
{\textit{Tourner la page, svp} \faHandORight}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
%% \displaydirectives
|
|
|
|
|
%% print the main directives of the test.
|
|
|
|
|
%%
|
|
|
|
|
\NewDocumentCommand \displaydirectives{ }{
|
|
|
|
|
\begin{center}
|
|
|
|
|
\fbox{
|
|
|
|
|
\parbox{.9\textwidth}{
|
|
|
|
|
\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.
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
\end{center}
|
|
|
|
|
|
|
|
|
|
\vspace{.2cm}
|
|
|
|
|
}
|
2019-11-17 21:59:00 +00:00
|
|
|
|
|
|
|
|
|
%% \nonumbering
|
|
|
|
|
%% deactivate page numbering in footer
|
|
|
|
|
%%
|
|
|
|
|
\NewDocumentCommand \nonumbering{ }{
|
|
|
|
|
\cefoot*{}
|
|
|
|
|
\cofoot*{}
|
|
|
|
|
}
|
2018-12-19 12:41:12 +00:00
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\makeatother
|