-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofTypo.sty
56 lines (52 loc) · 1.82 KB
/
profTypo.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{profTypo}[2020/04/13]
\newcommand{\nombre}[1]{\ensuremath{\numprint{#1}}}
\newcommand{\np}{\numprint}
\npthousandsep{\hspace{0.3em}}
\providecommand{\dfrac}{\displaystyle\frac}
\providecommand{\degres}{\textdegree}
\providecommand{\text}{\textrm}
\providecommand{\og}{«~}
\providecommand{\fg}{~»}
\providecommand{\ieme}{$^\textrm{e}\,$}
\providecommand{\ier}{\textsuperscript{er}}
\providecommand{\iere}{\textsuperscript{ère}}
\providecommand{\no}{n\textsuperscript{o}}
%%
%% numérotation romaine
\def\RRoman#1{{\sffamily\uppercase\expandafter{\romannumeral #1}}}
%% personnalisation de la table des matières
%%\setcounter{secnumdepth}{3}
%%\setcounter{tocdepth}{3}
%%
\renewcommand{\section}{%%
\@startsection{section}{1}{0mm}{\baselineskip}{\baselineskip}%%
{\sffamily\bfseries\Large\color{\macouleur}}%%
}
%%
\renewcommand{\subsection}{%%
\@startsection{subsection}{2}{0cm}{\baselineskip}{\baselineskip}%%
{\sffamily\bfseries\large}%%
}
%%
\renewcommand{\subsubsection}{%%
\@startsection{subsubsection}{3}{0cm}{\baselineskip}{\baselineskip}%%
{\sffamily\bfseries\normalsize}%%
}
%% personnalisation de la numérotation
\renewcommand{\thesection}{\Roman{section}}
\renewcommand{\thesubsection}{\arabic{subsection}}
\renewcommand{\thesubsubsection}{\thesubsection.\alph{subsubsection}}
\renewcommand{\partname}{Chapitre}
%% Décalage dans la marge de la numérotation
%%\renewcommand{\@hangfrom}[1]{\setbox\@tempboxa\hbox{{#1}}%%
%% \hangindent\wd\@tempboxa\noindent\llap{{#1}}%%
%%}
%% personnification de enumerate
\renewcommand{\theenumi}{\arabic{enumi}}
\renewcommand{\labelenumi}{\theenumi .}
\renewcommand{\theenumii}{\alph{enumii}}
\renewcommand{\labelenumii}{\theenumii)}
\renewcommand{\theenumiii}{\arabic{enumiii}}
\renewcommand{\labelenumiii}{\theenumii{\scriptsize\theenumiii}}
\endinput