-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tex
154 lines (140 loc) · 5 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
% -*- Mode:TeX -*-
%% IMPORTANT: There are no official thesis specifications.
%% This unofficial thesis specifications are available at:
%% https://github.com/ikenichiro/KeioSDM_phdtmp
%%
%% The original format and specifications are from mit,
%% which can be found at:
%% http://libraries.mit.edu/archives/thesis-specs/
%%
%% Please verify your thesis' formatting and copyright
%% assignment before submission. If you notice any
%% discrepancies between these templates and the
%% Keio Universitys' specs, please let me know
%% from the github issue.
%% The documentclass options along with the pagestyle can be used to generate
%% a technical report, a draft copy, or a regular thesis. You may need to
%% re-specify the pagestyle after you \include cover.tex. For more
%% information, see the first few lines of keiosdmthesis.cls.
%\documentclass[12pt,vi,twoside]{keiosdmthesis}
%%
%% If you want your thesis copyright to you instead of Keio University, use the
%% ``vi'' option, as above.
%%
%\documentclass[12pt,twoside,leftblank]{keiosdmthesis}
%%
%% If you want blank pages before new chapters to be labelled ``This
%% Page Intentionally Left Blank'', use the ``leftblank'' option, as
%% above.
%\RequirePackage{pdf14}
\documentclass[12pt,vi,twoside]{keiosdmthesis}
\usepackage{lgrind}
%% These have been added at the request of the MIT Libraries, because
%% some PDF conversions mess up the ligatures. -LB, 1/22/2014
\usepackage{cmap}
\usepackage[T1]{fontenc}
\pagestyle{plain}
%% These have been added to use pdf figures
\usepackage{epsfig} \let\epsfile=\epsfig%
\usepackage{epic,eepic}
\usepackage[dvipdfmx]{color}
%% Some commonly used packages.
%\usepackage{cleveref}
%\usepackage{amsmath,amssymb}
%\usepackage{etoolbox}
%\usepackage{booktabs}
%\usepackage{color}
%\usepackage{url}
%\usepackage{siunitx}
%
%% These have been added for glossaries
%\usepackage[nonumberlist,acronym,toc]{glossaries}
%% These are for trademark but usage of trademark in academic thesis are not recommended.
%\usepackage{textcomp}
%
%\usepackage{listings}
%\usepackage{multirow}
%\usepackage[figuresright]{rotating}
%\usepackage[flushleft]{threeparttable}
%\usepackage{comment}
%
%\usepackage[dvipdfmx,bookmarks=true]{hyperref}
%% This is a hyperref hack to make it work at the least with emath.
%% Be sure this comes after all of the \usepackage
%\AtBeginDocument{\let\textlabel\label}%
%% This allows to label in the text so it can cross-ref from Appendix easily.
%% Try considering cleveref from the start of your thesis.
%% This hack was done on the last minutes just to adapt to cleveref in aux.
%% Original code can be found at,
%% https://tex.stackexchange.com/questions/271062/labeling-a-text-and-referencing-it-later
%% Usage:
%% \labelText{}{a:ch1:labelname}
%% type out by:
%% \cref{a:ch1:labelname}
%\newcounter{mylabelcounter}
%\makeatletter
%\newcommand{\labelText}[2]{%
% #1\refstepcounter{mylabelcounter}%
% \immediate\write\@auxout{%
% %make it accessable from cref
% \string\newlabel{#2}{{1}{\thepage}{{\unexpanded{#1}}}{mylabelcounter.\number\value{mylabelcounter}}{}}%
% }
% \immediate\write\@auxout{%
% \string\newlabel{#2@cref}{{[page][\thepage]}{\thepage}}%
% }%
%}
\makeatother
%% Ends here
%% This bit allows you to either specify only the files which you wish to
%% process, or `all' to process all files which you \include.
%% Krishna Sethuraman (1990).
%\typein [\files]{Enter file names to process, (chap1,chap2 ...), or `all' to process all files:}
%\typein[\files]{chap1}
%\def\all{all}
%\ifx\files\all \typeout{Including all files.} \else \typeout{Including only \files.} \includeonly{\files} \fi
%\includeonly{chap1,chap2}
%% Define the sort mode for bibliography
\bibliographystyle{junsrt}
%% Rename the title for bibliography
\renewcommand{\bibname}{List of References}
%% Define glossaries
%% Generate list of symbols
%\newglossary[slg]{symbols}{syi}{syg}{List of symbols}
%% Remove the dot at the end of glossary descriptions
%\renewcommand*{\glspostdescription}{}
%\makeglossaries%
%% Load nomenclature and glossary files
%\loadglsentries{nomenclature}
%\loadglsentries{glossary} %Acronyms here
%%setup for siunitx
%\sisetup{binary-units,per-mode=symbol}
\begin{document}
%% Set page numbering as roman until the thesis actually starts
\pagenumbering{roman}
\setcounter{page}{1}
\include{cover}
%% Some departments require an additional signature page.
%% See signature.tex for more information and uncomment the following line if applicable.
\include{signature}
\pagestyle{plain}
%% This is to make Table of Contents
\include{contents}
%% Start page count in arabic after Table of Contents
\pagenumbering{arabic}
\setcounter{page}{1}
\include{chap1}
\include{chap2}
\include{chap3}
\include{chap4}
\appendix
%% Appendix Tables
\include{appa}
%% Appendix Figures and Codes
\include{appb}
%% List of symbols, nomenclature, glossary
\include{lists}
%% List of bibliography
\include{biblio}
%% List of related publications
\include{mypubs}
\end{document}