Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Yuxiao Mao
Thesis Template
Commits
154036e3
Commit
154036e3
authored
Oct 26, 2021
by
Yuxiao Mao
Browse files
[format] Reorder, comment and remove not common format settings
parent
e597b8ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
FormatAndDefs.tex
View file @
154036e3
...
...
@@ -3,9 +3,9 @@
\usepackage
[utf8x]
{
inputenc
}
\iftoggle
{
ThesisInEnglish
}{
%
\usepackage
[english]
{
babel
}
\usepackage
[english]
{
babel
}
}{
%
\usepackage
[english,main=french]
{
babel
}
\usepackage
[english,main=french]
{
babel
}
}
\usepackage
{
datetime
}
...
...
@@ -18,28 +18,37 @@
\usepackage
[left=1.5in,right=1.3in,top=1.1in,bottom=1.1in,includefoot,includehead,headheight=13.6pt]
{
geometry
}
\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
{
minitoc
}
\setcounter
{
minitocdepth
}{
2
}
\mtcindent
=15pt
% 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
\iftoggle
{
ThesisInEnglish
}{
%
\renewcommand
{
\nomname
}{
Glossary
}
\renewcommand
{
\nomname
}{
Glossary
}
}{
%
\renewcommand
{
\nomname
}{
Liste des abréviations
}
\renewcommand
{
\nomname
}{
Liste des abréviations
}
}
\makenomenclature
% My pdf code
%%%%%%%% Image %%%%%%%%
\usepackage
{
ifpdf
}
...
...
@@ -55,38 +64,10 @@
\usepackage
[dvipdfm,pagebackref,hyperindex=true]
{
hyperref
}
\fi
\graphicspath
{{
.
}{
figures/
}}
\usepackage
{
rotating
}
% Sideways of figures & tables
\usepackage
{
tablefootnote
}
%% nicer backref links. NOTE: The flag ThesisInEnglish is used to define the
% 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~
}
}
%%%%%%%% PDF %%%%%%%%
% Links in pdf
\usepackage
{
color
}
...
...
@@ -96,49 +77,61 @@
\definecolor
{
citecol
}{
rgb
}{
0,0,0
}
% Change this to change the informations included in the pdf file
% Basic
hyper
setup
% Basic
pdf
setup
\hypersetup
{
bookmarksopen=true,
%pdftoolbar=false, %barre d'outils non visible
pdfmenubar=true,
%barre de menu visible
pdfhighlight=/O,
%effet d'un clic sur un lien hypertexte
colorlinks=true,
%couleurs sur les liens hypertextes
pdfpagemode=UseNone,
%aucun mode de page
pdfpagelayout=SinglePage,
%ouverture en simple page
pdffitwindow=true,
%pages ouvertes entierement dans toute la fenetre
linkcolor=linkcol,
%couleur des liens hypertextes internes
citecolor=citecol,
%couleur des liens pour les citations
urlcolor=linkcol
%couleur des liens pour les url
bookmarksopen=true,
%pdftoolbar=false, %barre d'outils non visible
pdfmenubar=true,
%barre de menu visible
pdfhighlight=/O,
%effet d'un clic sur un lien hypertexte
colorlinks=true,
%couleurs sur les liens hypertextes
pdfpagemode=UseNone,
%aucun mode de page
pdfpagelayout=SinglePage,
%ouverture en simple page
pdffitwindow=true,
%pages ouvertes entierement dans toute la fenetre
linkcolor=linkcol,
%couleur des liens hypertextes internes
citecolor=citecol,
%couleur des liens pour les citations
urlcolor=linkcol
%couleur des liens pour les url
}
% definitions.
% -------------------
\setcounter
{
secnumdepth
}{
3
}
\setcounter
{
tocdepth
}{
2
}
%%%%%%%% Backref in biblio %%%%%%%%
% Some useful commands and shortcut for maths: partial derivative and stuff
\newcommand
{
\pd
}
[2]
{
\frac
{
\partial
#1
}{
\partial
#2
}}
\def\abs
{
\operatorname
{
abs
}}
\def\argmax
{
\operatornamewithlimits
{
arg
\,
max
}}
\def\argmin
{
\operatornamewithlimits
{
arg
\,
min
}}
\def\diag
{
\operatorname
{
Diag
}}
\newcommand
{
\eqRef
}
[1]
{
(
\ref
{
#1
}
)
}
\usepackage
{
rotating
}
% Sideways of figures & tables
%\usepackage{bibunits}
%\usepackage[sectionbib]{chapterbib} % Cross-reference package (Natural BiB)
%\usepackage{natbib} % Put References at the end of each chapter
% Do not put 'sectionbib' option here.
% Sectionbib option in 'natbib' will do.
\usepackage
{
fancyhdr
}
% Fancy Header and Footer
%% nicer backref links. NOTE: The flag ThesisInEnglish is used to define the
% 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~
}
}
%%%%%%%% Fancy Header %%%%%%%%
% \usepackage{txfonts} % Public Times New Roman text & math font
%%% Fancy Header %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Fancy Header Style Options
\usepackage
{
fancyhdr
}
% Fancy Header and Footer
\pagestyle
{
fancy
}
% Sets fancy header and footer
\fancyfoot
{}
% Delete current footer settings
...
...
@@ -166,63 +159,24 @@ urlcolor=linkcol %couleur des liens pour les url
\renewcommand
{
\headrulewidth
}{
0pt
}
}
%%% Clear Header %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%% Clear Header %%%%%%%%
% Clear Header Style on the Last Empty Odd pages
\makeatletter
\def\cleardoublepage
{
\clearpage\if
@twoside
\ifodd\c
@page
\else
%
\hbox
{}
%
\thispagestyle
{
empty
}
% % Empty header styles
\newpage
%
\if
@twocolumn
\hbox
{}
\newpage\fi\fi\fi
}
\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
}
%
c
enter
ed page environment
%%%%%%%
%
C
enter
Page %%%%%%%%
% centered page environment (for abstract)
\newenvironment
{
vcenterpage
}
{
\newpage\vspace*
{
\fill
}
\thispagestyle
{
empty
}
\renewcommand
{
\headrulewidth
}{
0pt
}}
{
\vspace*
{
\fill
}}
\usepackage
{
tablefootnote
}
%%%%%%%% End Common Format %%%%%%%%
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment