Update.
This commit is contained in:
parent
f06ceac1cf
commit
f3ba1e5721
@ -36,7 +36,7 @@
|
|||||||
\RequirePackage{polyglossia} % => babel
|
\RequirePackage{polyglossia} % => babel
|
||||||
\setdefaultlanguage{french} % => inputenc
|
\setdefaultlanguage{french} % => inputenc
|
||||||
\RequirePackage{luatextra} % charge fontspec => fontenc
|
\RequirePackage{luatextra} % charge fontspec => fontenc
|
||||||
\defaultfontfeatures{Ligatures=TeX}
|
% \defaultfontfeatures{Ligatures=TeX}
|
||||||
\else
|
\else
|
||||||
\RequirePackage[francais]{babel} % => polyglossia
|
\RequirePackage[francais]{babel} % => polyglossia
|
||||||
\RequirePackage[utf8]{inputenc} % => fontspec
|
\RequirePackage[utf8]{inputenc} % => fontspec
|
||||||
|
@ -14,11 +14,12 @@
|
|||||||
|
|
||||||
|
|
||||||
%-- definitions
|
%-- definitions
|
||||||
\DeclareOption*{\PassOptionsToClass{\CurrentOption, handout}{cours_beamer}}
|
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{cours_beamer}}
|
||||||
%--%
|
%--%
|
||||||
|
|
||||||
%-- options
|
%-- options
|
||||||
% \ExecuteOptions{}
|
% \ExecuteOptions{}
|
||||||
|
\PassOptionsToClass{handout}{cours_beamer}
|
||||||
\ProcessOptions\relax
|
\ProcessOptions\relax
|
||||||
%--%
|
%--%
|
||||||
|
|
||||||
|
@ -32,9 +32,10 @@
|
|||||||
% mise en page
|
% mise en page
|
||||||
\RequirePackage{geometry}
|
\RequirePackage{geometry}
|
||||||
\RequirePackage{scrlayer-scrpage}
|
\RequirePackage{scrlayer-scrpage}
|
||||||
% \RequirePackage{mdframed}
|
\RequirePackage{titling}
|
||||||
\RequirePackage{titlesec}
|
\RequirePackage{titlesec}
|
||||||
\RequirePackage{pageslts}
|
\RequirePackage{pageslts}
|
||||||
|
\RequirePackage{enumitem}
|
||||||
%--%
|
%--%
|
||||||
|
|
||||||
\makeatletter
|
\makeatletter
|
||||||
@ -54,13 +55,13 @@
|
|||||||
% titre, en-tête, pied de page
|
% titre, en-tête, pied de page
|
||||||
\cofoot*{\thepage\ /\ \pageref{LastPage}}
|
\cofoot*{\thepage\ /\ \pageref{LastPage}}
|
||||||
\pagestyle{scrheadings}
|
\pagestyle{scrheadings}
|
||||||
\setkomafont{title}{\Comic}
|
% \setkomafont{title}{\Comic}
|
||||||
|
|
||||||
% (sub)sections
|
% (sub)sections
|
||||||
\titleformat{\section}[block]{\sffamily\bfseries\Large}{\thesection.}{.5em}{}[]
|
% \titleformat{\section}[block]{\sffamily\bfseries\Large}{\thesection.}{.5em}{}[]
|
||||||
\titleformat{\subsection}[block]{\sffamily\bfseries\large\hspace{2em}}{\thesubsection)}{.5em}{}[]
|
% \titleformat{\subsection}[block]{\sffamily\bfseries\large\hspace{2em}}{\thesubsection)}{.5em}{}[]
|
||||||
\renewcommand \thesection{\Roman{section}}
|
% \renewcommand \thesection{\Roman{section}}
|
||||||
\renewcommand \thesubsection{\arabic{subsection}}
|
% \renewcommand \thesubsection{\arabic{subsection}}
|
||||||
|
|
||||||
% paths
|
% paths
|
||||||
\graphicspath{{images/}}
|
\graphicspath{{images/}}
|
||||||
@ -400,6 +401,7 @@
|
|||||||
\mdtheorem[style=dotted, theoremseparator={ -}, theoremspace={}]{exe}{Exemple}
|
\mdtheorem[style=dotted, theoremseparator={ -}, theoremspace={}]{exe}{Exemple}
|
||||||
\mdtheorem[style=todo, theoremseparator={ -}, theoremspace={}]{exo}{Exercice}
|
\mdtheorem[style=todo, theoremseparator={ -}, theoremspace={}]{exo}{Exercice}
|
||||||
\mdtheorem[style=todo, theoremseparator={ -}, theoremspace={}]{app}{Application}
|
\mdtheorem[style=todo, theoremseparator={ -}, theoremspace={}]{app}{Application}
|
||||||
|
\mdtheorem[style=todo, theoremseparator={}, theoremspace={}]{appn}{}
|
||||||
\mdtheorem[style=method, theoremseparator={ -}, theoremspace={}]{met}{Méthode}
|
\mdtheorem[style=method, theoremseparator={ -}, theoremspace={}]{met}{Méthode}
|
||||||
|
|
||||||
% Redirect all standard previously defined environments to their starred version
|
% Redirect all standard previously defined environments to their starred version
|
||||||
@ -544,6 +546,16 @@
|
|||||||
\end{app*}
|
\end{app*}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
\RenewDocumentEnvironment{appn}{ o } {%begin
|
||||||
|
\IfNoValueTF {#1} {
|
||||||
|
\begin{appn*}
|
||||||
|
}{
|
||||||
|
\begin{appn*}[#1]
|
||||||
|
}
|
||||||
|
}{%end
|
||||||
|
\end{appn*}
|
||||||
|
}
|
||||||
|
|
||||||
\RenewDocumentEnvironment{met}{ o } {%begin
|
\RenewDocumentEnvironment{met}{ o } {%begin
|
||||||
\IfNoValueTF {#1} {
|
\IfNoValueTF {#1} {
|
||||||
\begin{met*}
|
\begin{met*}
|
||||||
@ -564,6 +576,7 @@
|
|||||||
%-- Macros personnelles
|
%-- Macros personnelles
|
||||||
% titre
|
% titre
|
||||||
\NewDocumentCommand \titre { G{Titre} G{Sous-titre} } {%
|
\NewDocumentCommand \titre { G{Titre} G{Sous-titre} } {%
|
||||||
|
\setlength{\droptitle}{-2cm}
|
||||||
\title{#1}
|
\title{#1}
|
||||||
\subtitle{#2}
|
\subtitle{#2}
|
||||||
\date{}
|
\date{}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user