Commit 154036e3 authored by Yuxiao Mao's avatar Yuxiao Mao
Browse files

[format] Reorder, comment and remove not common format settings

parent e597b8ac
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
\usepackage[utf8x]{inputenc} \usepackage[utf8x]{inputenc}
\iftoggle{ThesisInEnglish}{% \iftoggle{ThesisInEnglish}{%
\usepackage[english]{babel} \usepackage[english]{babel}
}{ % }{ %
\usepackage[english,main=french]{babel} \usepackage[english,main=french]{babel}
} }
\usepackage{datetime} \usepackage{datetime}
...@@ -18,28 +18,37 @@ ...@@ -18,28 +18,37 @@
\usepackage[left=1.5in,right=1.3in,top=1.1in,bottom=1.1in,includefoot,includehead,headheight=13.6pt]{geometry} \usepackage[left=1.5in,right=1.3in,top=1.1in,bottom=1.1in,includefoot,includehead,headheight=13.6pt]{geometry}
\renewcommand{\baselinestretch}{1.05} \renewcommand{\baselinestretch}{1.05}
% Table of contents for each chapter \usepackage{aecompl}
%%%%%%%% Table of contents for each chapter %%%%%%%%
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{2}
\usepackage[nottoc, notlof, notlot]{tocbibind} \usepackage[nottoc, notlof, notlot]{tocbibind}
\usepackage{minitoc} \usepackage{minitoc}
\setcounter{minitocdepth}{2} \setcounter{minitocdepth}{2}
\mtcindent=15pt \mtcindent=15pt
% Use \minitoc where to put a table of contents % Use \minitoc where to put a table of contents
\let\minitocORIG\minitoc
\renewcommand{\minitoc}{\minitocORIG \vspace{1.5em}}
\usepackage{aecompl}
% Glossary / list of abbreviations %%%%%%%% Glossary / list of abbreviations %%%%%%%%
\usepackage[intoc]{nomencl} % use nointoc if don't want to put into toc \usepackage[intoc]{nomencl} % use nointoc if don't want to put into toc
\iftoggle{ThesisInEnglish}{% \iftoggle{ThesisInEnglish}{%
\renewcommand{\nomname}{Glossary} \renewcommand{\nomname}{Glossary}
}{ % }{ %
\renewcommand{\nomname}{Liste des abréviations} \renewcommand{\nomname}{Liste des abréviations}
} }
\makenomenclature \makenomenclature
% My pdf code
%%%%%%%% Image %%%%%%%%
\usepackage{ifpdf} \usepackage{ifpdf}
...@@ -55,38 +64,10 @@ ...@@ -55,38 +64,10 @@
\usepackage[dvipdfm,pagebackref,hyperindex=true]{hyperref} \usepackage[dvipdfm,pagebackref,hyperindex=true]{hyperref}
\fi \fi
\graphicspath{{.}{figures/}} \usepackage{rotating} % Sideways of figures & tables
\usepackage{tablefootnote}
%% nicer backref links. NOTE: The flag ThesisInEnglish is used to define the %%%%%%%% PDF %%%%%%%%
% language in the back references. Read more about it in main.tex
\iftoggle{ThesisInEnglish}{%
\renewcommand*{\backref}[1]{}
\renewcommand*{\backrefalt}[4]{%
\ifcase #1 %
(Not cited.)%
\or
(Cited in page~#2.)%
\else
(Cited in pages~#2.)%
\fi}
\renewcommand*{\backrefsep}{, }
\renewcommand*{\backreftwosep}{ and~}
\renewcommand*{\backreflastsep}{ and~}
}{%
\renewcommand*{\backref}[1]{}
\renewcommand*{\backrefalt}[4]{%
\ifcase #1 %
(Non cité.)%
\or
(Cité en page~#2.)%
\else
(Cité en pages~#2.)%
\fi}
\renewcommand*{\backrefsep}{, }
\renewcommand*{\backreftwosep}{ et~}
\renewcommand*{\backreflastsep}{ et~}
}
% Links in pdf % Links in pdf
\usepackage{color} \usepackage{color}
...@@ -96,49 +77,61 @@ ...@@ -96,49 +77,61 @@
\definecolor{citecol}{rgb}{0,0,0} \definecolor{citecol}{rgb}{0,0,0}
% Change this to change the informations included in the pdf file % Change this to change the informations included in the pdf file
% Basic hyper setup % Basic pdf setup
\hypersetup \hypersetup
{ {
bookmarksopen=true, bookmarksopen=true,
%pdftoolbar=false, %barre d'outils non visible %pdftoolbar=false, %barre d'outils non visible
pdfmenubar=true, %barre de menu visible pdfmenubar=true, %barre de menu visible
pdfhighlight=/O, %effet d'un clic sur un lien hypertexte pdfhighlight=/O, %effet d'un clic sur un lien hypertexte
colorlinks=true, %couleurs sur les liens hypertextes colorlinks=true, %couleurs sur les liens hypertextes
pdfpagemode=UseNone, %aucun mode de page pdfpagemode=UseNone, %aucun mode de page
pdfpagelayout=SinglePage, %ouverture en simple page pdfpagelayout=SinglePage, %ouverture en simple page
pdffitwindow=true, %pages ouvertes entierement dans toute la fenetre pdffitwindow=true, %pages ouvertes entierement dans toute la fenetre
linkcolor=linkcol, %couleur des liens hypertextes internes linkcolor=linkcol, %couleur des liens hypertextes internes
citecolor=citecol, %couleur des liens pour les citations citecolor=citecol, %couleur des liens pour les citations
urlcolor=linkcol %couleur des liens pour les url urlcolor=linkcol %couleur des liens pour les url
} }
% definitions.
% -------------------
\setcounter{secnumdepth}{3} %%%%%%%% Backref in biblio %%%%%%%%
\setcounter{tocdepth}{2}
% Some useful commands and shortcut for maths: partial derivative and stuff %% nicer backref links. NOTE: The flag ThesisInEnglish is used to define the
% language in the back references. Read more about it in main.tex
\newcommand{\pd}[2]{\frac{\partial #1}{\partial #2}}
\def\abs{\operatorname{abs}} \iftoggle{ThesisInEnglish}{%
\def\argmax{\operatornamewithlimits{arg\,max}} \renewcommand*{\backref}[1]{}
\def\argmin{\operatornamewithlimits{arg\,min}} \renewcommand*{\backrefalt}[4]{%
\def\diag{\operatorname{Diag}} \ifcase #1 %
\newcommand{\eqRef}[1]{(\ref{#1})} (Not cited.)%
\or
\usepackage{rotating} % Sideways of figures & tables (Cited in page~#2.)%
%\usepackage{bibunits} \else
%\usepackage[sectionbib]{chapterbib} % Cross-reference package (Natural BiB) (Cited in pages~#2.)%
%\usepackage{natbib} % Put References at the end of each chapter \fi}
% Do not put 'sectionbib' option here. \renewcommand*{\backrefsep}{, }
% Sectionbib option in 'natbib' will do. \renewcommand*{\backreftwosep}{ and~}
\usepackage{fancyhdr} % Fancy Header and Footer \renewcommand*{\backreflastsep}{ and~}
}{%
\renewcommand*{\backref}[1]{}
\renewcommand*{\backrefalt}[4]{%
\ifcase #1 %
(Non cité.)%
\or
(Cité en page~#2.)%
\else
(Cité en pages~#2.)%
\fi}
\renewcommand*{\backrefsep}{, }
\renewcommand*{\backreftwosep}{ et~}
\renewcommand*{\backreflastsep}{ et~}
}
%%%%%%%% Fancy Header %%%%%%%%
% \usepackage{txfonts} % Public Times New Roman text & math font
%%% Fancy Header %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Fancy Header Style Options % Fancy Header Style Options
\usepackage{fancyhdr} % Fancy Header and Footer
\pagestyle{fancy} % Sets fancy header and footer \pagestyle{fancy} % Sets fancy header and footer
\fancyfoot{} % Delete current footer settings \fancyfoot{} % Delete current footer settings
...@@ -166,63 +159,24 @@ urlcolor=linkcol %couleur des liens pour les url ...@@ -166,63 +159,24 @@ urlcolor=linkcol %couleur des liens pour les url
\renewcommand{\headrulewidth}{0pt} \renewcommand{\headrulewidth}{0pt}
} }
%%% Clear Header %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%% Clear Header %%%%%%%%
% Clear Header Style on the Last Empty Odd pages % Clear Header Style on the Last Empty Odd pages
\makeatletter \makeatletter
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else% \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else%
\hbox{}% \hbox{}%
\thispagestyle{empty}% % Empty header styles \thispagestyle{empty}% % Empty header styles
\newpage% \newpage%
\if@twocolumn\hbox{}\newpage\fi\fi\fi} \if@twocolumn\hbox{}\newpage\fi\fi\fi}
\makeatother \makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Prints your review date and 'Draft Version' (From Josullvn, CS, CMU)
\newcommand{\reviewtimetoday}[2]{\special{!userdict begin
/bop-hook{gsave 20 710 translate 45 rotate 0.8 setgray
/Times-Roman findfont 12 scalefont setfont 0 0 moveto (#1) show
0 -12 moveto (#2) show grestore}def end}}
% You can turn on or off this option.
% \reviewtimetoday{\today}{Draft Version}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newenvironment{maxime}[1]
{
\vspace*{0cm}
\hfill
\begin{minipage}{0.5\textwidth}%
%\rule[0.5ex]{\textwidth}{0.1mm}\\%
\hrulefill $\:$ {\bf #1}\\
%\vspace*{-0.25cm}
\it
}%
{%
\hrulefill
\vspace*{0.5cm}%
\end{minipage}
}
\let\minitocORIG\minitoc
\renewcommand{\minitoc}{\minitocORIG \vspace{1.5em}}
\newenvironment{bulletList}%
{ \begin{list}%
{$\bullet$}%
{\setlength{\labelwidth}{25pt}%
\setlength{\leftmargin}{30pt}%
\setlength{\itemsep}{\parsep}}}%
{ \end{list} }
\newtheorem{definition}{Définition}
\renewcommand{\epsilon}{\varepsilon}
% centered page environment %%%%%%%% Center Page %%%%%%%%
% centered page environment (for abstract)
\newenvironment{vcenterpage} \newenvironment{vcenterpage}
{\newpage\vspace*{\fill}\thispagestyle{empty}\renewcommand{\headrulewidth}{0pt}} {\newpage\vspace*{\fill}\thispagestyle{empty}\renewcommand{\headrulewidth}{0pt}}
{\vspace*{\fill}} {\vspace*{\fill}}
\usepackage{tablefootnote}
%%%%%%%% End Common Format %%%%%%%%
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment