271 lines
11 KiB
TeX
271 lines
11 KiB
TeX
% !TEX encoding = UTF-8 Unicode
|
||
% -*- coding: UTF-8; -*-
|
||
% vim: set fenc=utf-8
|
||
%% Informations générales
|
||
\NeedsTeXFormat{LaTeX2e}[1999/01/01]
|
||
\ProvidesPackage{centrale}[2019/03/19 v0.31 centrale: standard scientific documents layout for Centrale Lyon - Copyright (C) Bastien Laville, 2019]
|
||
|
||
%------------------------------------------ CHARGEMENT DES EXTENSIONS ------------------------------------------%
|
||
|
||
% ------------- Langue utilisée -------------
|
||
\RequirePackage[utf8]{inputenc} % Reconnaissance des lettres du clavier
|
||
\RequirePackage[T1]{fontenc}
|
||
\RequirePackage[frenchb]{babel}
|
||
|
||
% ------------- Mise en page -------------
|
||
\RequirePackage[a4paper]{geometry} % Mise en page acceptable
|
||
\RequirePackage[final]{microtype} % Pour améliorer la qualité de la lecture avec la microtypo
|
||
\RequirePackage{hyperref} % Importer hypertexte
|
||
\hypersetup{pdftoolbar=false, % show Acrobat’s toolbar?
|
||
pdfmenubar=true, % show Acrobat’s menu?
|
||
pdffitwindow=false, % window fit to page when opened
|
||
pdfstartview={FitH}, % fits the width of the page to the window
|
||
pdfnewwindow=true, % links in new PDF window
|
||
pdfcreator={Paquet LaTeX Centrale Lyon (B. Laville) - 2019}}
|
||
\newcommand{\reff}[1]{\textbf{\textcolor{CentraleRed}{\textsc{\ref{#1}}}}} % Pour réaliser des citations potables
|
||
|
||
% ------------- Mise en page 2 -------------
|
||
\RequirePackage{graphicx} % Pour importer des images
|
||
\RequirePackage{booktabs} % Pour introduire des tableaux
|
||
\RequirePackage[toc,page]{appendix}
|
||
%\RequirePackage[Bjornstrup]{fncychap} % Si on fait un report ou book
|
||
\RequirePackage{lmodern}
|
||
\RequirePackage{fancyhdr} % Des titres fouqués
|
||
\RequirePackage{lipsum} % Mettre du texte lipsum en maquette
|
||
\RequirePackage{framed} % Des cadres pougnés
|
||
\RequirePackage{bm} % Du texte en gras bien mis
|
||
\RequirePackage{nomencl} % Faire une nomenclature
|
||
\RequirePackage[footnote]{acronym} % Des acronymes accessibles et définissables
|
||
|
||
% ------------- En-têtes -------------
|
||
\renewcommand{\baselinestretch}{1.05}
|
||
\setlength{\headheight}{27.06pt}
|
||
\usepackage{fancyhdr}
|
||
\pagestyle{fancy}
|
||
\fancyhf{}
|
||
\rhead{\nouppercase{\thepage}}
|
||
\lhead{\nouppercase{\rightmark}}
|
||
|
||
% ------------- Images, figures et tables -------------
|
||
\RequirePackage{epstopdf} % Utiliser le format .eps
|
||
\RequirePackage[pages=some]{background} % Pour mettre un fond, pages=some permet de choisir els pages concernées
|
||
\RequirePackage{epsfig} % eps to pdf converter
|
||
\RequirePackage{float} % Pour avoir des tableaux qui restent dans leurs sections
|
||
\RequirePackage{graphicx} % Importer image
|
||
\RequirePackage{array} % Importer tableau
|
||
\RequirePackage{colortbl} % Couleurs dans le tableau
|
||
\RequirePackage{array} % Pour des tableaux bien formaté
|
||
\RequirePackage{multirow} % Fusion des lignes dans les tableaux
|
||
|
||
% ------------- Des sections et des sous-titres -------------
|
||
\RequirePackage{titlesec}
|
||
\RequirePackage{sectsty}
|
||
\RequirePackage{caption}
|
||
\RequirePackage{subcaption}
|
||
|
||
%% Draft %%
|
||
%\RequirePackage{draftwatermark}
|
||
%\SetWatermarkScale{3}
|
||
|
||
% ------------- Du dessin et des couleurs -------------
|
||
\RequirePackage{xcolor} % Changer la couleur
|
||
\RequirePackage[most]{tcolorbox}
|
||
\RequirePackage{tikz} % Pour dessiner
|
||
\RequirePackage{schemabloc} % Des schémas-blocs
|
||
\RequirePackage[siunitx, american, smartlabels, cute inductors]{circuitikz} % Pour dessiner des circuits électroniques
|
||
\usetikzlibrary{babel} % Pour éviter des conflits entre paquets tikz et babel
|
||
|
||
|
||
% ------------- Des maths et de l'info -------------
|
||
\RequirePackage{listings} % Importer du code informatique et le travailler
|
||
%\RequirePackage{fouriernc}
|
||
\RequirePackage{amsmath, amssymb, amsfonts, amsthm, mathtools} % mathtools for: Aboxed (put box on last equation in align envirenment)
|
||
\RequirePackage{mathpazo} % La police utilisée dans tout le document
|
||
\RequirePackage{siunitx} % Des unités bien écrites pour la physique
|
||
\sisetup{locale = FR} % Pour avoir les bonnes conventions typo en français
|
||
|
||
% ------------- Une biliographie -------------
|
||
\bibliographystyle{plain-fr}
|
||
|
||
|
||
% ------------- Les options du paquet -------------
|
||
\DeclareOption{option}{...}
|
||
\DeclareOption*{...}
|
||
\ProcessOptions
|
||
|
||
|
||
%------------------------------------------DÉFINITIONS DES COULEURS------------------------------------------%
|
||
|
||
\definecolor{CentraleRed}{rgb}{0.558,0.09, 0.18}
|
||
\definecolor{CentraleGray}{rgb}{0.67,0.67, 0.67}
|
||
\definecolor{CentraleBlue}{RGB}{0,67,89}
|
||
\definecolor{CentraleGrayEq}{RGB}{66,66,66}
|
||
\definecolor{matlabGreen}{RGB}{28,172,0} % pour le listing des codes
|
||
\definecolor{matlabLilas}{RGB}{170,55,241}
|
||
|
||
|
||
%------------------------------------------SECTIONS, FIGURES ET TABLEAUX------------------------------------------%
|
||
|
||
\chapterfont{\color{CentraleRed}} % choisir la couleur des chapitres
|
||
\sectionfont{\color{CentraleRed}\sffamily} % choisir la couleur des sections
|
||
\subsectionfont{\color{CentraleGrayEq}\sffamily\itshape} % choisir la couleur des sous-sections
|
||
\DeclareCaptionFont{CaptionCentrale}{\color{CentraleRed}}
|
||
\captionsetup[table]{labelfont={CaptionCentrale,bf}}
|
||
\captionsetup[figure]{labelfont={CaptionCentrale,bf}}
|
||
\captionsetup[subfigure]{labelfont=bf,textfont=sf}
|
||
|
||
|
||
%------------------------------------------RACCOURCIS MATHEMATIQUES------------------------------------------%
|
||
|
||
%------- Dérivation et opérateurs
|
||
|
||
\newcommand{\ch}[1] {\mathrm{#1}}
|
||
\newcommand{\ud}{\ensuremath{\, \mathrm{d}}}
|
||
\newcommand{\eqdef}{\stackrel{\mathrm{def}}{=}}
|
||
|
||
\newcommand{\subt}[1] {\ensuremath{_{\text{#1}}}}
|
||
\newcommand{\supt}[1] {\ensuremath{^{\text{#1}}}}
|
||
\newcommand{\citea}[1] {$^{\text{\cite{#1}}}$}
|
||
\newcommand{\grad}[1] {\vec{\ch{grad}}\left( #1 \right)}
|
||
\newcommand{\rot}[1] {\vec{\ch{rot}}\left( \vec{#1} \right)}
|
||
\newcommand{\rota}[1] {\vec{\ch{rot}}\left( #1 \right)}
|
||
\renewcommand{\div}[1] {\ch{div}\left( \vec{#1} \right)}
|
||
\newcommand{\diva}[1] {\ch{div}\left( #1 \right)}
|
||
\newcommand{\oper}[3] {\langle #1 \arrowvert #2 \arrowvert #3 \rangle}
|
||
\newcommand{\derp}[2] {\dfrac{\partial\, #1}{\partial\, #2}}
|
||
\newcommand{\derd}[2] {\dfrac{\ch{d}\, #1}{\ch{d}\, #2}}
|
||
\newcommand{\derD}[2] {\dfrac{\ch{D}\, #1}{\ch{D}\, #2}}
|
||
\newcommand{\derda}[2] {\dfrac{\ch{d}^2\, #1}{\ch{d} #2^2}}
|
||
\newcommand{\derdb}[2] {\dfrac{\ch{d}^2\, #1}{\ch{d} #2 ^2}}
|
||
\newcommand{\derpb}[2] {\dfrac{\partial^2\, #1}{\partial #2 ^2}}
|
||
\newcommand{\bra}[1] {\langle #1 |}
|
||
\newcommand{\ket}[1] {| #1 \rangle}
|
||
\newcommand{\bracket}[1] {\langle #1 \rangle}
|
||
\newcommand{\bracketb}[2] {\langle #1 \arrowvert #2 \rangle}
|
||
\newcommand{\bracketc}[1] {\langle #1 \arrowvert #1 \rangle}
|
||
|
||
%------- Lettres grecques disponibles dans le texte
|
||
|
||
\newcommand{\ttt} {\ensuremath{\forall}}
|
||
\newcommand{\alphat} {\ensuremath{\alpha}}
|
||
\newcommand{\betat} {\ensuremath{\beta}}
|
||
\newcommand{\taut} {\ensuremath{\tau}}
|
||
\newcommand{\nut} {\ensuremath{\nu}}
|
||
\newcommand{\varepsilont} {\ensuremath{\varepsilon}}
|
||
\newcommand{\epsilont} {\ensuremath{\varepsilon}}
|
||
\newcommand{\omegat} {\ensuremath{\omega}}
|
||
\newcommand{\phit} {\ensuremath{\varphi}}
|
||
\newcommand{\deltat} {\ensuremath{\delta}}
|
||
\newcommand{\Deltat} {\ensuremath{\Delta}}
|
||
\newcommand{\thetat} {\ensuremath{\theta}}
|
||
\newcommand{\sigmat} {\ensuremath{\sigma}}
|
||
\newcommand{\pit} {\ensuremath{\pi} }
|
||
\newcommand{\chit} {\ensuremath{\chi}}
|
||
\newcommand{\mut} {\ensuremath{\mu}}
|
||
\newcommand{\lambdat} {\ensuremath{\lambda}}
|
||
\newcommand{\rhot} {\ensuremath{\rho}}
|
||
\newcommand{\kappat} {\ensuremath{\kappa}}
|
||
\newcommand{\gammat} {\ensuremath{\gamma}}
|
||
\newcommand{\etat} {\ensuremath{\eta}}
|
||
|
||
|
||
|
||
%------- Raccourcis du turfu
|
||
|
||
\newcommand{\ds}{\displaystyle}
|
||
\newcommand{\vr}{\overrightarrow}
|
||
|
||
%------- Notation des ensembles
|
||
|
||
\newcommand{\A}{\ensuremath{\mathcal{A}}}
|
||
\newcommand{\R}{\mathbb{R}}
|
||
\newcommand{\C}{\mathbb{C}}
|
||
\newcommand{\N}{\mathbb{N}}
|
||
\newcommand{\K}{\mathbb{K}}
|
||
\newcommand{\Lens}{\mathcal{L}}
|
||
\newcommand{\M}{\mathcal{M}}
|
||
\newcommand{\B}{\mathcal{B}}
|
||
\newcommand{\Pens}{\mathcal{P}}
|
||
\newcommand{\dom}{\mathcal{D}}
|
||
\newcommand{\surf}{\mathcal{S}}
|
||
\newcommand{\cont}{\mathcal{C}}
|
||
|
||
|
||
%------- Fonctions de traitement du signal
|
||
|
||
\DeclareMathOperator{\sinc}{sinc}
|
||
\DeclareMathOperator{\sgn}{\text{sgn}}
|
||
\newcommand{\argmax}{\operatornamewithlimits{argmax}}
|
||
\newcommand{\argmin}{\operatornamewithlimits{argmin}}
|
||
\newcommand{\vect}{\text{Vect}}
|
||
\newcommand{\esp}{\ensuremath{\mathbb{E}}}
|
||
\newcommand{\hilbert}{\ensuremath{\mathcal{H}}}
|
||
\newcommand{\fourier}{\ensuremath{\mathcal{F}}}
|
||
|
||
% Ces 4 lignes définissent la lettre sha pour le peigne de Dirac
|
||
\DeclareFontFamily{U}{wncy}{}
|
||
\DeclareFontShape{U}{wncy}{m}{n}{<->wncyr10}{}
|
||
\DeclareSymbolFont{mcy}{U}{wncy}{m}{n}
|
||
\DeclareMathSymbol{\Sh}{\mathord}{mcy}{"58}
|
||
|
||
%------- Autres
|
||
|
||
|
||
%------------------------------------------METTRE DU CODE INFORMATIQUE------------------------------------------%
|
||
|
||
\usepackage{minted} % Paquet actuellement en développement
|
||
|
||
\lstset{language=python,%
|
||
basicstyle=\footnotesize,
|
||
breaklines=false,%,
|
||
keywordstyle=\color{blue},%
|
||
morekeywords=[2]{1}, keywordstyle=[2]{\color{black}},
|
||
identifierstyle=\color{black},%
|
||
stringstyle=\color{CentraleRed},
|
||
commentstyle=\color{CentraleGray},%
|
||
showstringspaces=false,%without this there will be a symbol in the places where there is a space
|
||
numbers=left,%
|
||
numberstyle={\tiny \color{black}},% size of the numbers
|
||
numbersep=9pt, % this defines how far the numbers are from the text
|
||
emph=[1]{for,end,break},emphstyle=[1]\color{red}, %some words to emphasise
|
||
%emph=[2]{word1,word2}, emphstyle=[2]{style},
|
||
}
|
||
|
||
\lstset{language=Matlab, % Use MATLAB
|
||
frame=single, % Single frame around code
|
||
basicstyle=\small\ttfamily, % Use small true type font
|
||
keywordstyle=[1]\color{blue}\bfseries, % MATLAB functions bold and blue
|
||
keywordstyle=[2]\color{matlabLilas}, % MATLAB function arguments purple
|
||
keywordstyle=[3]\color{blue}\underbar, % User functions underlined and blue
|
||
identifierstyle=, % Nothing special about identifiers
|
||
% Comments small green courier
|
||
commentstyle=\usefont{T1}{pcr}{m}{sl}\color{matlabGreen}\small,
|
||
stringstyle=\color{matlabLilas}, % Strings are purple
|
||
breaklines=true,
|
||
showstringspaces=false, % Don't put marks in string spaces
|
||
tabsize=5, % 5 spaces per tab
|
||
title=\lstname,
|
||
framextopmargin=2pt,
|
||
framexbottommargin=2pt,
|
||
%
|
||
%%% Put standard MATLAB functions not included in the default
|
||
%%% language here
|
||
morekeywords={xlim,ylim,var,alpha,factorial,poissrnd,normpdf,normcdf},
|
||
%
|
||
%%% Put MATLAB function parameters here
|
||
morekeywords=[2]{on, off, interp},
|
||
%
|
||
%%% Put user defined functions here
|
||
morekeywords=[3]{FindESS, homework_example},
|
||
%
|
||
morecomment=[l][\color{blue}]{...}, % Line continuation (...) like blue comment
|
||
numbers=left, % Line numbers on left
|
||
firstnumber=1, % Line numbers start with line 1
|
||
numberstyle=\tiny\color{CentraleRed}, % Line numbers are blue
|
||
stepnumber=5 % Line numbers go in steps of 5
|
||
}
|
||
|
||
|
||
|
||
%% Fin du paquet
|
||
\endinput
|