-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnaist-mthesis.sty
207 lines (203 loc) · 5.68 KB
/
naist-mthesis.sty
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
%
% naist-mthesis.sty: master's thesis style in NAIST
%
% Ver. 1.2 Jan. 21, 1998
% Ver. D July 07, 2003
% 2018.01.08 Modified
% This file must be included before \begin{document}. The Document
% style must be 'article', so you should include this macro as follows:
% \documentstyle[naist-mthesis]{article}
%
\typeout{Master's Thesis / Master's Report Style for Division of Information Science,
Graduate School of Science and Technology, NAIST}
%
% input the common style file
%
\input naist-mcommon.sty
%
% Figure and Table Caption
% from article.sty, however, ``.'' was used instead of ``:''
% to separate figure/table numbers and captions.
%
\long\def\@makecaption#1#2{
\vskip 10pt
\setbox\@tempboxa\hbox{#1. #2}
\ifdim \wd\@tempboxa >\hsize #1. #2\par \else \hbox
to\hsize{\hfil\box\@tempboxa\hfil}
\fi}
%
% References (bug fix article.sty)
%
%\typeout{reference}
\def\thebibliography#1{\section*{References\@mkboth
{REFERENCES}{REFERENCES}\addcontentsline{toc}{section}{References}}\list
{[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
\advance\leftmargin\labelsep
\usecounter{enumi}}
\def\newblock{\hskip .11em plus .33em minus .07em}
\sloppy\clubpenalty4000\widowpenalty4000
\sfcode`\.=1000\relax}
\let\endthebibliography=\endlist
%
% page layout
%
\topmargin=0.5cm
\textheight=20.5cm
\textwidth=14.5cm
\oddsidemargin=0.6cm
\evensidemargin=-3.8cm
\renewcommand{\baselinestretch}{1.2}
%
% pagestyle
%
%\typeout{pagestyle}
\def\yes{1}
%
% for final
%
\def\ps@final{
\def\isfinal{1}
\def\@evenhead{}%
\def\@oddhead{}%
\def\@oddfoot{\hfill\thepage\hfill}%
\def\@evenfoot{\hfill\thepage\hfill}%
}
%
% drafts
%
\def\ps@draft{
\def\isfinal{0}
\def\draftstr{{\engtoday. \ecurtime, \eauthorstr}}
\def\draftfoot{%
{{\sf \draftstr}\hfill{\sf \thepage}}%
}
\def\@evenhead{}%
\def\@oddhead{}%
\def\@oddfoot{{\draftfoot}}%
\def\@evenfoot{{\draftfoot}}%
}
%
% title page
%
%\typeout{titlepage}
\renewcommand{\titlepage}{
\newpage
\thispagestyle{empty}
\if\isfinal\yes
% {\raggedleft
% \normalsize NAIST-IS-\edoctitleacronym\studentnumberstr \\
% }
\vspace*{9mm}
\begin{center}
\Large\bf\edoctitle
\end{center}
\vspace*{27mm}
\begin{center}
\Large\bf\etitlestr
\end{center}
\vspace*{18mm}
\begin{center}
\Large\eauthorstr
\end{center}
\vspace*{45mm}
\begin{center}
\edatestr
\end{center}
\vspace*{4.0mm}
\begin{center}
% Department of \edepartmentstr\\
Division of Information Science \\
Graduate School of Science and Technology\\
Nara Institute of Science and Technology
\end{center}
\vspace*{\fill}
\else
\vspace*{\fill}
\begin{center}
{\Huge\bf DRAFT}
\end{center}
\vspace*{1cm}
\begin{center}
\Large\bf\etitlestr
\end{center}
\vspace*{1cm}
\begin{center}
{\Large \eauthorstr}
\end{center}
\vspace*{1cm}
\begin{center}
{\Large\bf \engtoday}
\end{center}
\begin{center}
{\Large\bf \ecurtime}
\end{center}
\vspace*{\fill}
\fi
}
%
% committee members page
%
\newcommand{\cmemberspage}{
\newpage
\thispagestyle{empty}
\vspace*{\fill}
\begin{center}
A \edoctitle\\
submitted to
Division of Information Science, \\
Graduate School of , Science and Technology, \\
Nara Institute of Science and Technology \\
in partial fulfillment of the requirements for the degree of \\
MASTER of \emajorstr
\bigskip
\eauthorstr
\bigskip\medskip
\begin{tabular}{p{0.5in}ll}
\multicolumn{2}{l}{Thesis Committee:} & \\
& \efirstcmember & \efirstposition \\
& \esecondcmember & \esecondposition \\
& \ethirdcmember & \ethirdposition \\
& \efourthcmember & \efourthposition \\
& \efifthcmember & \efifthposition \\
& \esixthcmember & \esixthposition \\
& \eseventhcmember & \eseventhposition \\
& \eeighthcmember & \eeighthposition
\end{tabular}
\end{center}
}
%
% abstract pages
%
\newcommand{\firstabstract}{
\newpage
\pagenumbering{roman}
\eabstractpage
}
\newcommand{\secondabstract}{
\newpage
\jabstractpage
}
%
%typeout{acknowledgements}
\newcommand{\acknowledgements}{
\newpage
\section*{Acknowledgements\addcontentsline{toc}{section}{Acknowledgements}}
}
%typeout{yet another reference}
\newcommand{\reference}{
\newpage
\section*{References\addcontentsline{toc}{section}{References}}
}
%typeout{appendix}
%\renewcommand{\appendix}{
% \newpage
% \section*{Appendix\addcontentsline{toc}{section}{Appendix}}
%}
\renewcommand{\appendix}{\par
\setcounter{section}{0}
\setcounter{subsection}{0}
\def\thesection{\Alph{section}}
\newpage
\section*{Appendix\addcontentsline{toc}{section}{Appendix}}
}
%\typeout{done}