-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain.tex
220 lines (152 loc) · 5.41 KB
/
main.tex
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
% !TeX root = ./main.tex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% The Legrand Orange Book template
% Original author: Mathias Legrand ([email protected])
% Edited by DINH Anh Thi ([email protected])
% Compiling (by command lines)
% 1) pdflatex main
% 2) makeindex main.idx -s StyleInd.ist
% 3) biber main
% 4) pdflatex main x 2
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[12pt,twoside,table]{book}
% Default font size and left-justified equations
\input{settings/packages} % pakages and configurations
\input{settings/table-figure} % tables, figures, drawing
\input{settings/font} % fonts
\input{settings/bib-index} % bibliography and index
\input{settings/toc} % table of contents
\input{settings/page-header} % page headers
\input{settings/theorem-style} % theorem styles
\input{settings/sec-numbering-margin} % section numbering margin
\input{settings/part-heading} % part headings
\input{settings/chapter-heading} % chapter headings
\input{settings/abbreviate-math} % shorten for maths commands
\input{settings/hyperlink} % hyperlinks
\input{settings/glossaries} % symbols and notations
% just for testing
\usepackage{lipsum}
%%
% For backcover on the even number side
%\newcommand*\cleartoleftpage{%
% \clearpage
% \ifodd\value{page}\hbox{}\newpage\fi
%}
\usepackage{afterpage} % insert a blank page
\newcommand\blankpage{%
\null
\thispagestyle{empty}%
\addtocounter{page}{-1}%
\newpage}
%==============================================
% BEGIN DOCUMENT
%==============================================
% \usepackage[right]{lineno} % line numbers
% \linenumbers
\begin{document}
%---------------------------------------------
% TITLE PAGE
%---------------------------------------------
\title{This is an awesome title of work!}
%\input{frontmatter/title} % title of the thesis
\includepdf{cover}
%---------------------------------------------
% FRONTMATTERS
%---------------------------------------------
\renewcommand\partname{Part}
\renewcommand\chaptername{Chapter}
\renewcommand\contentsname{Contents}
\renewcommand\listfigurename{List of Figures}
\renewcommand\listtablename{List of Tables}
\renewcommand\indexname{Index}
\renewcommand{\figurename}{Figure}
\renewcommand{\tablename}{Table}
\renewcommand*{\proofname}{Proof}
%---------------------------------------------
% FRONTMATTERS
%---------------------------------------------
\pagestyle{empty} % No headers
\frontmatter
\input{frontmatter/abstract} % abstract
\cleardoublepage
\input{frontmatter/acknowledgements} % acknowledgements
\cleardoublepage
\tableofcontents % Print the table of contents itself
\cleardoublepage
\input{frontmatter/glossaries} % notations, symbols, glossaries
\cleardoublepage % Forces the first chapter to start on an odd page so it's on the right
\pagestyle{fancy} % Print headers again
\begingroup % start to insert mini toc at beginning of each chapter
\input{settings/mini-toc} % mini toc for each chapters
\mainmatter % start to count the page number
%---------------------------------------------
% remove space before and after math align
%---------------------------------------------
\setlength\abovedisplayskip{-5pt}
% % \setlength\belowdisplayskip{10pt plus 2pt minus 15pt}
\setlength\belowdisplayskip{\parskip}
\setlength\abovedisplayshortskip{-5pt}
% % \setlength\belowdisplayshortskip{10pt plus 2pt minus 15pt}
\setlength\belowdisplayshortskip{\parskip}
% % \setlength{\jot}{15pt} % spaces inside align
%---------------------------------------------
% Introduction
%---------------------------------------------
%\subfile{chapters/chap-intro}
%---------------------------------------------
% PART 1
%---------------------------------------------
\part{The title of part}
\label{part:nxfem}
\subfile{chapters/chap-example}
%\subfile{chapters/chap-example-1}
%---------------------------------------------
% PART 2
%---------------------------------------------
\part{Another part}
\label{part:nxfem-biofilm}
%---------------------------------------------
% PART 3
%---------------------------------------------
\part*{appendix}
\appendix
\subfile{chapters/app-A}
\backmatter % don't number chapter
\endgroup % end of inserting mini toc at beginning of each chapter
%----------------------------------------------
% list of tables & figures & algorithm
%----------------------------------------------
\part*{references}
\listoffigures % list of all figures
\addcontentsline{toc}{chapter}{List of Figures}
\listoftables % list of all tables
\addcontentsline{toc}{chapter}{List of Tables}
\listofalgorithms
\addcontentsline{toc}{chapter}{List of Algorithms}
%----------------------------------------------
% BIBLIOGRAPHY
%----------------------------------------------
\chapter*{Bibliography}
\addcontentsline{toc}{chapter}{Bibliography}
%------------------------------------------------
\section*{Articles}
\printbibliography[heading=bibempty,type=article]
%------------------------------------------------
\section*{Books}
\printbibliography[heading=bibempty,type=book]
%------------------------------------------------
\section*{Thesis}
\printbibliography[heading=bibempty,type=thesis]
%-----------------------------------------------
% INDEX
%-----------------------------------------------
\cleardoublepage
\phantomsection
\setlength{\columnsep}{0.75cm}
\addcontentsline{toc}{chapter}{Index}
\printindex
%\cleartoleftpage
\blankpage
\includepdf{back-cover}
%------------------------------------------------
\end{document}