-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanuscript.tex
More file actions
134 lines (113 loc) · 2.93 KB
/
Copy pathmanuscript.tex
File metadata and controls
134 lines (113 loc) · 2.93 KB
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
% /!\ Compile with LuaLaTeX
% !TEX encoding = UTF-8 Unicode
\documentclass{Dissertate}
\input{fonts/fonts.tex}
\input{Classe/packages.tex}
\input{Classe/colors.tex}
\input{Classe/shortcuts.tex}
\input{Classe/theorem.tex}
\input{Classe/localTOC.tex}
\input{Classe/tags.tex} % Color index on the side
\input{Classe/rainbowtoc.tex}
\addbibresource{all.bib}
\begin{document}
\setcounter{page}{1}
\pagenumbering{roman}
% Front page, to be compiled beforehand
\includepdf{Frontpage/frontpage.pdf}
\lab % front matter/lab.tex
\abstractpage % front matter/abstract (en, fr).tex
\dedicationpage % front matter/dedication.tex
~\newpage
\setcounter{tocdepth}{0} % only parts and chapters for main TOC
\rainbowtoc
\acknowledgments % front matter/thanks.tex
\clearpage
\OddChapter%
\setcounter{page}{1}
\pagenumbering{arabic}
\restoregeometry
\renewcommand{\contentsname}{}
\addtocounter{chapter}{-1}
\setcounter{tocdepth}{2} % sections and subsections for local TOC
% Chapter 0
\ChangeColor%
\chapter{Introduction}
\renewcommand{\theequation}{0.\arabic{equation}} % equations eg (0.2)
\renewcommand{\thefigure}{0.\arabic{figure}} % figures eg (0.2)
\ChapFrame%
\LocalTOC%
\subimport{Chapters/phd_intro/}{phd_intro_chapter.tex}\label{sec:chap_intro}
\OddChapter%
\clearpage
% restore equation style to eg B.III.2
\renewcommand{\theequation}{\thechapter.\arabic{equation}}
% restore figure style to eg (B.III.2)
\renewcommand{\thefigure}{\thechapter.\arabic{figure}}
% Part A
\partpagetrue
\partwithsummary{Title of Part A}{part1}{
\subimport{PartAddons/}{partA_summary.tex}}
\OddChapter%
\clearpage
\partpagefalse
% Chapter A.I
\ChangeColor%
\chapter{Title of Chapter A.I}\label{sec:chap_AI}
\ChapFrame%
\LocalTOC%
\subimport{Chapters/chapAI/}{chapAI.tex}
\OddChapter%
\clearpage
% Chapter A.2
\ChangeColor%
\chapter{Title of Chapter A.II}\label{sec:chap_AII}
\ChapFrame%
\LocalTOC%
\subimport{Chapters/chapAII/}{chapAII.tex}
\OddChapter%
\clearpage
% Chapter A.3
\ChangeColor%
\chapter{Title of Chapter A.III}\label{sec:chap_AIII}
\ChapFrame%
\LocalTOC%
\subimport{Chapters/chapAIII/}{chapAIII.tex}
\OddChapter%
\clearpage
% Part B
\partpagetrue
\partwithsummary{Title of Part B}{part2}{
\subimport{PartAddons/}{partB_summary.tex}}
\OddChapter%
\clearpage
\partpagefalse
% Chapter B.1
\ChangeColor%
\chapter{Title of Chapter B.I}\label{sec:chap_BI}
\ChapFrame%
\LocalTOC%
\subimport{Chapters/chapBI/}{chapBI.tex}
\OddChapter%
\clearpage
% Chapter B.2
\ChangeColor%
\chapter{Title of Chapter B.II}\label{sec:chap_BII}
\ChapFrame%
\LocalTOC%
\subimport{Chapters/chapBII/}{chapBII.tex}
\OddChapter%
\clearpage
% Future Directions
\partpagetrue
\ChangeColor%
\phantomsection % for hyperref which wants a part anchor
\pdfbookmark[-1]{Conclusion}{conclusion}
\chapter*{Future Directions}
\addcontentsline{toc}{chapter}{Future Directions}
\ChapFrame%
\subimport{Chapters/conclusion/}{conclusion_chapter.tex}
\OddChapter%
\clearpage
\printbibliography
\end{document}