2016-11-09 22:32:49 +00:00
|
|
|
%%%
|
|
|
|
%%%
|
|
|
|
%%% Classe : cours_prof.cls
|
|
|
|
%%% Version : 1.0
|
|
|
|
%%% Date : 09/11/16
|
|
|
|
%%% Auteur : Jeff LANCE
|
|
|
|
%%%
|
|
|
|
%%%
|
|
|
|
|
|
|
|
\NeedsTeXFormat{LaTeX2e}
|
|
|
|
\ProvidesClass{cours_prof}[2016/11/09 Document de cours imprimable A4 pour prof ou élève, V1.0]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%-- classe de base
|
|
|
|
\LoadClass[a4paper, 12pt, DIV=24]{scrartcl}
|
|
|
|
%--%
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%-- extensions
|
|
|
|
% PERSONNELLES
|
|
|
|
% commun: contient des définitions et extensions de base pour tout.
|
|
|
|
\RequirePackage{commun}
|
|
|
|
\RequirePackage{shortcuts}
|
|
|
|
|
|
|
|
% sortie
|
|
|
|
% \RequirePackage[pdftex]{graphicx}
|
|
|
|
\RequirePackage{comment}
|
|
|
|
|
|
|
|
% mise en page
|
|
|
|
\RequirePackage{geometry}
|
|
|
|
\RequirePackage{scrlayer-scrpage}
|
2016-12-27 15:39:52 +00:00
|
|
|
% \RequirePackage{mdframed}
|
2016-11-09 22:32:49 +00:00
|
|
|
\RequirePackage{titlesec}
|
|
|
|
\RequirePackage{pageslts}
|
|
|
|
%--%
|
|
|
|
|
2017-02-17 15:25:16 +00:00
|
|
|
\makeatletter
|
2016-11-09 22:32:49 +00:00
|
|
|
|
|
|
|
%-- paramétrages
|
|
|
|
% metapost
|
|
|
|
\ifpdf
|
|
|
|
\DeclareGraphicsRule{*}{mps}{*}{}
|
|
|
|
\fi
|
|
|
|
|
|
|
|
% tkz
|
|
|
|
\usetkzobj{all} % on charge tous les objets
|
|
|
|
|
|
|
|
% format de la page
|
|
|
|
\geometry{a4paper, hmargin=.7cm, vmargin=2cm}
|
|
|
|
|
|
|
|
% titre, en-tête, pied de page
|
|
|
|
\cofoot*{\thepage\ /\ \pageref{LastPage}}
|
|
|
|
\pagestyle{scrheadings}
|
|
|
|
\setkomafont{title}{\Comic}
|
|
|
|
|
|
|
|
% (sub)sections
|
|
|
|
\titleformat{\section}[block]{\sffamily\bfseries\Large}{\thesection.}{.5em}{}[]
|
|
|
|
\titleformat{\subsection}[block]{\sffamily\bfseries\large\hspace{2em}}{\thesubsection)}{.5em}{}[]
|
|
|
|
\renewcommand \thesection{\Roman{section}}
|
|
|
|
\renewcommand \thesubsection{\arabic{subsection}}
|
|
|
|
|
|
|
|
% paths
|
|
|
|
\graphicspath{{images/}}
|
|
|
|
|
|
|
|
% mdframed
|
2017-01-04 20:53:11 +00:00
|
|
|
% Fix for package see : http://tex.stackexchange.com/questions/179790/mdframed-how-to-change-the-separator-between-the-label-and-the-title-of-a-non-n#179794
|
|
|
|
\DeclareDocumentCommand{\mdtheorem}{ O{} m o m o }%
|
|
|
|
{\ifcsdef{#2}%
|
|
|
|
{\mdf@PackageWarning{Environment #2 already exits\MessageBreak}}%
|
|
|
|
{%
|
|
|
|
\IfNoValueTF {#3}%
|
|
|
|
{%#3 not given -- number relationship
|
|
|
|
\IfNoValueTF {#5}%
|
|
|
|
{%#3+#5 not given
|
|
|
|
\@definecounter{#2}%
|
|
|
|
\expandafter\xdef\csname the#2\endcsname{\@thmcounter{#2}}%
|
|
|
|
\newenvironment{#2}[1][]{%
|
|
|
|
\refstepcounter{#2}%
|
|
|
|
\ifstrempty{##1}%
|
|
|
|
{\let\@temptitle\relax}%
|
|
|
|
{%
|
|
|
|
\def\@temptitle{\mdf@theoremseparator%
|
|
|
|
\mdf@theoremspace%
|
|
|
|
\mdf@theoremtitlefont%
|
|
|
|
##1}%
|
|
|
|
\mdf@thm@caption{#2}{{#4}{\csname the#2\endcsname}{##1}}%
|
|
|
|
}%
|
|
|
|
\begin{mdframed}[#1,frametitle={\strut#4\ \csname the#2\endcsname%
|
|
|
|
\@temptitle}]}%
|
|
|
|
{\end{mdframed}}%
|
|
|
|
\newenvironment{#2*}[1][]{%
|
|
|
|
\ifstrempty{##1}{\let\@temptitle\relax}{\def\@temptitle{\mdf@theoremseparator\ ##1}}% <- the problem was here
|
|
|
|
\begin{mdframed}[#1,frametitle={\strut#4\@temptitle}]}%
|
|
|
|
{\end{mdframed}}%
|
|
|
|
}%
|
|
|
|
{%#5 given -- reset counter
|
|
|
|
\@definecounter{#2}\@newctr{#2}[#5]%
|
|
|
|
\expandafter\xdef\csname the#2\endcsname{\@thmcounter{#2}}%
|
|
|
|
\expandafter\xdef\csname the#2\endcsname{%
|
|
|
|
\expandafter\noexpand\csname the#5\endcsname \@thmcountersep%
|
|
|
|
\@thmcounter{#2}}%
|
|
|
|
\newenvironment{#2}[1][]{%
|
|
|
|
\refstepcounter{#2}%
|
|
|
|
\ifstrempty{##1}%
|
|
|
|
{\let\@temptitle\relax}%
|
|
|
|
{%
|
|
|
|
\def\@temptitle{\mdf@theoremseparator%
|
|
|
|
\mdf@theoremspace%
|
|
|
|
\mdf@theoremtitlefont%
|
|
|
|
##1}%
|
|
|
|
\mdf@thm@caption{#2}{{#4}{\csname the#2\endcsname}{##1}}%
|
|
|
|
}
|
|
|
|
\begin{mdframed}[#1,frametitle={\strut#4\ \csname the#2\endcsname%
|
|
|
|
\@temptitle}]}%
|
|
|
|
{\end{mdframed}}%
|
|
|
|
\newenvironment{#2*}[1][]{%
|
|
|
|
\ifstrempty{##1}%
|
|
|
|
{\let\@temptitle\relax}%
|
|
|
|
{%
|
|
|
|
\def\@temptitle{\mdf@theoremseparator%
|
|
|
|
\mdf@theoremspace%
|
|
|
|
\mdf@theoremtitlefont%
|
|
|
|
##1}%
|
|
|
|
\mdf@thm@caption{#2}{{#4}{\csname the#2\endcsname}{##1}}%
|
|
|
|
}%
|
|
|
|
\begin{mdframed}[#1,frametitle={\strut#4\@temptitle}]}%
|
|
|
|
{\end{mdframed}}%
|
|
|
|
}%
|
|
|
|
}%
|
|
|
|
{%#3 given -- number relationship
|
|
|
|
\global\@namedef{the#2}{\@nameuse{the#3}}%
|
|
|
|
\newenvironment{#2}[1][]{%
|
|
|
|
\refstepcounter{#3}%
|
|
|
|
\ifstrempty{##1}%
|
|
|
|
{\let\@temptitle\relax}%
|
|
|
|
{%
|
|
|
|
\def\@temptitle{\mdf@theoremseparator%
|
|
|
|
\mdf@theoremspace%
|
|
|
|
\mdf@theoremtitlefont%
|
|
|
|
##1}%
|
|
|
|
\mdf@thm@caption{#2}{{#4}{\csname the#2\endcsname}{##1}}%
|
|
|
|
}
|
|
|
|
\begin{mdframed}[#1,frametitle={\strut#4\ \csname the#2\endcsname%
|
|
|
|
\@temptitle}]}%
|
|
|
|
{\end{mdframed}}%
|
|
|
|
\newenvironment{#2*}[1][]{%
|
|
|
|
\ifstrempty{##1}{\let\@temptitle\relax}{\def\@temptitle{:\ ##1}}%
|
|
|
|
\begin{mdframed}[#1,frametitle={\strut#4\@temptitle}]}%
|
|
|
|
{\end{mdframed}}%
|
|
|
|
}%
|
|
|
|
}%
|
|
|
|
}
|
|
|
|
|
2017-01-04 20:53:54 +00:00
|
|
|
% global options
|
2016-11-09 22:32:49 +00:00
|
|
|
\mdfsetup{
|
|
|
|
frametitlealignment=\raggedright,%
|
|
|
|
innerbottommargin=2em,%
|
|
|
|
}
|
2017-01-04 20:54:32 +00:00
|
|
|
% styles
|
2016-12-28 01:41:40 +00:00
|
|
|
\tikzset{
|
|
|
|
symbol/.style={
|
|
|
|
rectangle, draw=white,
|
|
|
|
fill=white, scale=1,
|
|
|
|
overlay
|
|
|
|
}
|
|
|
|
}
|
2017-03-05 18:37:31 +00:00
|
|
|
% default: a standard square frame with thick border
|
|
|
|
\mdfdefinestyle{default}{%
|
2017-02-17 15:31:46 +00:00
|
|
|
linecolor=black,linewidth=1pt,%
|
|
|
|
leftmargin=0,rightmargin=0,%
|
|
|
|
innertopmargin=1em,innerbottommargin=1em,%
|
|
|
|
innerleftmargin=.5em,innerrightmargin=.5em,%
|
|
|
|
skipabove=0,skipbelow=0,%
|
|
|
|
frametitlerule=false,%
|
|
|
|
frametitlebackgroundcolor=white!0,%innertopmargin=\topskip,%
|
|
|
|
nobreak=true,%
|
|
|
|
xcolor,%
|
2016-11-09 22:32:49 +00:00
|
|
|
}
|
2017-03-05 18:37:31 +00:00
|
|
|
% clear: a no-border frame
|
|
|
|
\mdfdefinestyle{clear}{%
|
2017-02-17 15:31:46 +00:00
|
|
|
linecolor=white,linewidth=0pt,%
|
|
|
|
leftmargin=0,rightmargin=0,%
|
2017-02-17 17:34:03 +00:00
|
|
|
innertopmargin=.5em,innerbottommargin=.5em,%
|
2017-02-17 15:31:46 +00:00
|
|
|
innerleftmargin=.5em,innerrightmargin=.5em,%
|
|
|
|
skipabove=0,skipbelow=0,%
|
|
|
|
frametitlerule=false,%
|
|
|
|
frametitlebackgroundcolor=white!0,%innertopmargin=\topskip,%
|
|
|
|
xcolor,%
|
2016-12-08 22:03:36 +00:00
|
|
|
}
|
2017-03-05 18:37:31 +00:00
|
|
|
% complete: a square frame with a pencil icon in upper left corner
|
|
|
|
\mdfdefinestyle{complete}{%
|
2017-02-17 15:31:46 +00:00
|
|
|
linecolor=black,linewidth=1pt,%
|
|
|
|
leftmargin=0,rightmargin=0,%
|
|
|
|
innertopmargin=1em,innerbottommargin=1em,%
|
|
|
|
innerleftmargin=1em,innerrightmargin=.5em,%
|
|
|
|
skipabove=0,skipbelow=0,%
|
|
|
|
frametitlerule=false,%
|
|
|
|
frametitlebackgroundcolor=white!0,%innertopmargin=\topskip,%
|
|
|
|
nobreak=true,%
|
|
|
|
xcolor,%
|
|
|
|
firstextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
|
|
node[symbol] { \faPencil };
|
|
|
|
},%
|
|
|
|
secondextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
|
|
node[symbol] { \faPencil };
|
|
|
|
},%
|
|
|
|
middleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
|
|
node[symbol] { \faPencil };
|
|
|
|
},%
|
|
|
|
singleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
|
|
node[symbol] { \faPencil };
|
|
|
|
},%
|
2016-12-27 12:11:33 +00:00
|
|
|
}
|
2017-03-05 18:37:31 +00:00
|
|
|
% dashed: dashed square frame
|
|
|
|
\mdfdefinestyle{dotted}{%
|
2017-02-17 15:31:46 +00:00
|
|
|
linecolor=white,linewidth=1pt,%
|
2017-03-05 18:37:31 +00:00
|
|
|
tikzsetting={draw=black,dotted,line width=1pt},%
|
2017-02-17 15:31:46 +00:00
|
|
|
leftmargin=0,rightmargin=0,%
|
|
|
|
innertopmargin=1em,innerbottommargin=1em,%
|
|
|
|
innerleftmargin=.5em,innerrightmargin=.5em,%
|
|
|
|
skipabove=0,skipbelow=0,%
|
|
|
|
frametitlerule=false,%
|
|
|
|
frametitlebackgroundcolor=white!0,%innertopmargin=\topskip,%
|
|
|
|
nobreak=true,%
|
|
|
|
xcolor,%
|
2016-12-27 12:11:33 +00:00
|
|
|
}
|
2017-03-05 18:37:31 +00:00
|
|
|
% quote: frame with no borders but with a beginning quote at upper left and
|
|
|
|
% an ending quote at lower right
|
|
|
|
\mdfdefinestyle{quote}{%
|
2017-02-17 15:31:46 +00:00
|
|
|
linecolor=white,linewidth=1pt,%
|
|
|
|
leftmargin=0,rightmargin=0,%
|
|
|
|
innertopmargin=1em,innerbottommargin=1em,%
|
|
|
|
innerleftmargin=1em,innerrightmargin=.5em,%
|
|
|
|
skipabove=0,skipbelow=0,%
|
|
|
|
frametitlerule=false,%
|
|
|
|
frametitlebackgroundcolor=white!0,%innertopmargin=\topskip,%
|
|
|
|
nobreak=true,%
|
|
|
|
xcolor,%
|
|
|
|
firstextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
2017-02-17 17:34:03 +00:00
|
|
|
node[symbol] { \faQuoteLeft };
|
2017-02-17 15:31:46 +00:00
|
|
|
\path let \p1=(P), \p2=(O) in ($(\x1,.4)+(0,\y2)$)
|
|
|
|
node[symbol] { \faQuoteRight };
|
|
|
|
},%
|
|
|
|
secondextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
2017-02-17 17:34:03 +00:00
|
|
|
node[symbol] { \faQuoteLeft };
|
2017-02-17 15:31:46 +00:00
|
|
|
\path let \p1=(P), \p2=(O) in ($(\x1,.4)+(0,\y2)$)
|
|
|
|
node[symbol] { \faQuoteRight };
|
|
|
|
},%
|
|
|
|
middleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
2017-02-17 17:34:03 +00:00
|
|
|
node[symbol] { \faQuoteLeft };
|
2017-02-17 15:31:46 +00:00
|
|
|
\path let \p1=(P), \p2=(O) in ($(\x1,.4)+(0,\y2)$)
|
|
|
|
node[symbol] { \faQuoteRight };
|
|
|
|
},%
|
|
|
|
singleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
2017-02-17 17:34:03 +00:00
|
|
|
node[symbol] { \faQuoteLeft };
|
2017-02-17 15:31:46 +00:00
|
|
|
\path let \p1=(P), \p2=(O) in ($(\x1,.4)+(0,\y2)$)
|
|
|
|
node[symbol] { \faQuoteRight };
|
|
|
|
},%
|
2016-12-27 15:10:58 +00:00
|
|
|
}
|
2017-03-05 18:37:31 +00:00
|
|
|
% todo: a shadowed square frame with a file text icon at upper left
|
2016-12-28 01:08:35 +00:00
|
|
|
\mdfdefinestyle{todo}{%
|
2017-02-17 15:31:46 +00:00
|
|
|
linecolor=white,linewidth=1pt,%
|
|
|
|
tikzsetting={draw=black,line width=1pt},%
|
|
|
|
leftmargin=0,rightmargin=0,%
|
|
|
|
innertopmargin=1em,innerbottommargin=1em,%
|
|
|
|
innerleftmargin=1em,innerrightmargin=.5em,%
|
|
|
|
skipabove=0,skipbelow=0,%
|
|
|
|
frametitlerule=false,%
|
|
|
|
frametitlebackgroundcolor=white!0,%innertopmargin=\topskip,%
|
|
|
|
nobreak=true,%
|
|
|
|
xcolor,%
|
|
|
|
% hidealllines=true, topline=true, bottomline=true,%
|
|
|
|
shadow=true,%
|
|
|
|
% backgroundcolor=gray!40,% FOR TEST ONLY
|
|
|
|
firstextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
|
|
node[symbol] { \faFileTextO };
|
|
|
|
},%
|
|
|
|
secondextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
|
|
node[symbol] { \faFileTextO };
|
|
|
|
},%
|
|
|
|
middleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
|
|
node[symbol] { \faFileTextO };
|
|
|
|
},%
|
|
|
|
singleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
|
|
node[symbol] { \faFileTextO };
|
|
|
|
},%
|
2016-12-28 01:08:35 +00:00
|
|
|
}
|
2017-03-05 18:37:31 +00:00
|
|
|
% todo: a shadowed square frame with a light bulb icon at upper left
|
|
|
|
\mdfdefinestyle{idea}{%
|
|
|
|
linecolor=white,linewidth=1pt,%
|
|
|
|
tikzsetting={draw=black,line width=1pt},%
|
|
|
|
leftmargin=0,rightmargin=0,%
|
|
|
|
innertopmargin=1em,innerbottommargin=1em,%
|
|
|
|
innerleftmargin=1em,innerrightmargin=.5em,%
|
|
|
|
skipabove=0,skipbelow=0,%
|
|
|
|
frametitlerule=false,%
|
|
|
|
frametitlebackgroundcolor=white!0,%innertopmargin=\topskip,%
|
|
|
|
nobreak=true,%
|
|
|
|
xcolor,%
|
|
|
|
hidealllines=true, leftline=true, % topline=true, bottomline=true,%
|
|
|
|
% shadow=true,%
|
|
|
|
% backgroundcolor=gray!40,% FOR TEST ONLY
|
|
|
|
firstextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
|
|
node[symbol] { \faLightbulbO };
|
|
|
|
},%
|
|
|
|
secondextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
|
|
node[symbol] { \faLightbulbO };
|
|
|
|
},%
|
|
|
|
middleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
|
|
node[symbol] { \faLightbulbO };
|
|
|
|
},%
|
|
|
|
singleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
|
|
node[symbol] { \faLightbulbO };
|
|
|
|
},%
|
|
|
|
}
|
|
|
|
% warn: frame with only left border and warning icon at upper left
|
|
|
|
\mdfdefinestyle{warning}{%
|
2017-02-17 15:31:46 +00:00
|
|
|
linecolor=black,linewidth=1pt,%
|
|
|
|
leftmargin=0,rightmargin=0,%
|
|
|
|
innertopmargin=1em,innerbottommargin=1em,%
|
|
|
|
innerleftmargin=1em,innerrightmargin=.5em,%
|
|
|
|
skipabove=0,skipbelow=0,%
|
|
|
|
frametitlerule=false,%
|
|
|
|
frametitlebackgroundcolor=white!0,%innertopmargin=\topskip,%
|
|
|
|
nobreak=true,%
|
|
|
|
xcolor,%
|
|
|
|
hidealllines=true, leftline=true,%
|
|
|
|
firstextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
|
|
node[symbol] { \faExclamationTriangle };
|
|
|
|
},%
|
|
|
|
secondextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
|
|
node[symbol] { \faExclamationTriangle };
|
|
|
|
},%
|
|
|
|
middleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
|
|
node[symbol] { \faExclamationTriangle };
|
|
|
|
},%
|
|
|
|
singleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
|
|
node[symbol] { \faExclamationTriangle };
|
|
|
|
},%
|
2016-12-27 10:05:49 +00:00
|
|
|
}
|
2016-12-27 09:58:33 +00:00
|
|
|
|
2017-03-05 18:37:31 +00:00
|
|
|
\mdtheorem[style=complete, theoremseparator={ -}, theoremspace={}, roundcorner=8pt]{déf}{Définition}
|
|
|
|
\mdtheorem[style=default, theoremseparator={ -}, theoremspace={}, roundcorner=8pt]{défn}{Définition}
|
|
|
|
\mdtheorem[style=complete, theoremseparator={ -}, theoremspace={}, outerlinewidth=1pt, outerlinecolor=black]{thm}{Théorème}
|
|
|
|
\mdtheorem[style=default, theoremseparator={ -}, theoremspace={}, outerlinewidth=1pt, outerlinecolor=black]{thmn}{Théorème}
|
|
|
|
\mdtheorem[style=complete, theoremseparator={ -}, theoremspace={}, outerlinewidth=1pt, outerlinecolor=black]{ppt}{Propriété}
|
|
|
|
\mdtheorem[style=default, theoremseparator={ -}, theoremspace={}, outerlinewidth=1pt, outerlinecolor=black]{pptn}{Propriété}
|
|
|
|
\mdtheorem[style=default, theoremseparator={ -}, theoremspace={}]{pre}{Preuve}
|
|
|
|
\mdtheorem[style=quote, theoremseparator={ -}, theoremspace={}]{voc}{Vocabulaire}
|
|
|
|
\mdtheorem[style=quote, frametitle=none, frametitleaboveskip=0em, frametitlebelowskip=0em]{qte}{}
|
|
|
|
\mdtheorem[style=warning, theoremseparator={ -}, theoremspace={}]{rmq}{Remarque}
|
|
|
|
\mdtheorem[style=dotted, theoremseparator={ -}, theoremspace={}]{exe}{Exemple}
|
2017-01-04 20:56:01 +00:00
|
|
|
\mdtheorem[style=todo, theoremseparator={ -}, theoremspace={}]{exo}{Exercice}
|
|
|
|
\mdtheorem[style=todo, theoremseparator={ -}, theoremspace={}]{app}{Application}
|
2017-03-05 18:37:31 +00:00
|
|
|
\mdtheorem[style=idea, theoremseparator={ -}, theoremspace={}]{met}{Méthode}
|
2016-11-09 22:32:49 +00:00
|
|
|
%--%
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
% Fix error from KOMA-Script scrartcl class.
|
|
|
|
\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
|
|
|
|
|
|
|
|
%-- Macros personnelles
|
|
|
|
% debut
|
|
|
|
\NewDocumentCommand \debut { G{Titre} G{Sous-titre} } {%
|
|
|
|
\title{#1}
|
|
|
|
\subtitle{#2}
|
|
|
|
\date{}
|
|
|
|
\maketitle
|
|
|
|
}
|
|
|
|
|
|
|
|
% commandes
|
|
|
|
% \partie | \sspartie
|
|
|
|
% definie un titre pour une (sous)section
|
|
|
|
\titleformat{\section}[block]{\sffamily\bfseries\Large}{\thesection.}{.5em}{}[]
|
|
|
|
\titleformat{\subsection}[block]{\sffamily\bfseries\large\hspace{2em}}{\thesubsection)}{.5em}{}[]
|
|
|
|
\renewcommand \thesection{\Roman{section}}
|
|
|
|
\renewcommand \thesubsection{\arabic{subsection}}
|
|
|
|
|
|
|
|
\newcounter{partiecounter}
|
|
|
|
\newcounter{sspartiecounter}
|
|
|
|
|
|
|
|
\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}
|
|
|
|
}
|
|
|
|
|
2017-01-03 21:10:04 +00:00
|
|
|
% % text ghosting
|
|
|
|
% \NewDocumentCommand \ghost { } {%
|
|
|
|
% \color{white}
|
|
|
|
% }
|
2016-11-09 22:32:49 +00:00
|
|
|
%-- %
|
|
|
|
|
2017-02-17 15:58:54 +00:00
|
|
|
|
2016-11-09 22:32:49 +00:00
|
|
|
\makeatother
|