Mercurial > hg > Papers > 2018 > nozomi-master
annotate paper/master_paper.sty @ 178:074eb76a9184
add Akka/Hazelcast slide
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 06 Feb 2018 12:19:12 +0900 |
parents | f0e9cc7d13f9 |
children | 1369f653e34e |
rev | line source |
---|---|
3 | 1 % |
2 % 修士卒業論文スタイルファイル master_papar.sty(ver. 2.1e) | |
3 % Time-stamp: <01/03/01 22:01:27 ryuji> | |
4 % | |
5 % ver 2.1e 2/3/01 ryuji | |
6 % ver 2.0e 17/12/00 ryuji | |
7 % ver 1.0e 05/11/99 hiroki | |
8 % | |
9 % modifier: Ryuji Gushiken(ryuji@ads.ie.u-ryukyu.ac.jp) | |
10 % | |
11 % author: Hiroki Taira(hiroki@ads.ie.u-ryukyu.ac.jp) | |
12 | |
13 % usage: | |
14 % | |
15 %\documentclass[a4j]{jreport} | |
16 % | |
17 %\usepackage{master_paper} | |
18 % | |
19 % | |
20 %\jtitle{修士論文スタイルファイル\\自律分散研バージョン} | |
95 | 21 %\etitle{\LaTeX style test file for master paper} |
3 | 22 %\year{平成11年度} |
23 %\affiliation{琉球大学大学院理工学研究科\\ 情報工学専攻} | |
24 %\author{名字 名前} | |
25 % | |
26 %\begin{document} | |
27 % | |
28 %\maketitle | |
29 % | |
30 %%要旨 | |
31 %\input{abstract.tex} | |
32 % | |
33 %%目次 | |
34 %\tableofcontents | |
35 % | |
36 %%図目次 | |
37 %\listoffigures | |
38 % | |
39 %%表目次 | |
40 %\listoftables | |
41 % | |
42 %%第一章 | |
43 %\input{chapter1.tex} | |
44 %%chapter1.texの\chapter{}の後ろに次のコマンドを追加してください。 | |
45 %%ページカウントがリセットされ、ページ数がアラビア文字になります。 | |
46 %% \pagenumbering{arabic} | |
47 %%第二章 | |
48 %\input{chapter2.tex} | |
49 %%第三章 | |
50 %\input{chapter3.tex} | |
51 % | |
52 %%付録 | |
53 %\input{appendix.tex} | |
54 % | |
55 %%謝辞 | |
56 %%\input{thanx.tex} | |
57 % | |
58 %%参考文献 | |
59 %\input{biblography.tex} | |
60 % | |
61 %\end{document} | |
62 | |
63 \typeout{****************************************************************} | |
64 \typeout{** 平成15年度 琉球大学大学院 学位論文(修士) ********************} | |
65 \typeout{** スタイルファイル(LaTeX2e) : 非公式 ********************} | |
66 \typeout{****************************************************************} | |
67 | |
68 %長さ設定 | |
69 \hoffset -1in \addtolength{\hoffset}{20mm} | |
70 \voffset -1in \addtolength{\voffset}{10mm} | |
71 \oddsidemargin 10mm | |
72 \topmargin 0mm | |
73 \headheight 10mm | |
74 \headsep 15mm | |
75 %\textheight 39\baselineskip \addtolength{\textheight}{\topskip} | |
76 \textheight 212mm | |
77 \textwidth 160mm | |
78 \marginparsep 3mm | |
79 \marginparwidth 15mm | |
80 \footskip \headsep | |
81 | |
82 | |
83 % 年度 | |
84 \def\@year{} | |
85 \def\year#1{\gdef\@year{#1}} | |
86 \def\@eyear{} | |
87 \def\eyear#1{\gdef\@eyear{#1}} | |
88 | |
89 % タイトル | |
90 \def\jetitle{} | |
91 \def\jtitle#1{\gdef\@title{#1}} | |
92 \def\@etitle{} | |
93 \def\etitle#1{\gdef\@etitle{#1}} | |
94 | |
95 % 名前 | |
96 \def\@author{} | |
97 \def\author#1{\gdef\@author{#1}} | |
98 \def\@eauthor{} | |
99 \def\eauthor#1{\gdef\@eauthor{#1}} | |
100 | |
101 % 学位 | |
102 \def\thesis{修士(工学)学位論文} | |
103 \def\ethesis{Master's Thesis of Engineering} | |
104 | |
105 % 大学 | |
106 \def\university{琉球大学} | |
107 \def\euniversity{University of the Ryukyus} | |
108 | |
109 % 所属 | |
110 \def\department{大学院理工学研究科} | |
111 \def\edepartment{Graduate School of Engineering and Science} | |
112 | |
113 % 専攻 | |
114 \def\course{情報工学専攻} | |
106 | 115 \def\ecourse{Information Engineering Course} |
3 | 116 |
117 % 署名 | |
118 \def\commission{論 文 審 査 会} | |
119 | |
120 % 指導教員 | |
121 \def\@chife{} | |
122 \def\chife#1{\gdef\@chife{#1}} | |
123 \def\@echife{} | |
124 \def\echife#1{\gdef\@echife{#1}} | |
125 | |
126 %表紙 | |
127 %\renewcommand{\maketitle}{% | |
128 %\newpage\null | |
129 %\thispagestyle{empty} | |
130 %\vskip 1cm% | |
131 %\begin{center}% | |
132 %\let\footnote\thanks | |
133 % {\huge \@title \par}% | |
134 % \vskip 1.5em% | |
135 % {\huge \@etitle \par}% | |
136 % \vskip 2.5em% | |
137 % {\LARGE \@year \ \thesis \par}% | |
138 % \vskip 10em% | |
139 %% {\huge \@belongto \par}% | |
140 % {\LARGE \@affiliation \par}% | |
141 % \vskip 1.5em% | |
142 % {\LARGE \@author \par}% | |
143 %\end{center}% | |
144 %%\par\vskip 1.5em | |
145 %} | |
146 \renewcommand{\maketitle}{% | |
147 \newpage\null | |
148 \thispagestyle{empty} | |
149 \vskip 1cm% | |
95 | 150 |
3 | 151 \begin{center}% |
152 \let\footnote\thanks | |
153 {\Large\bf\thesis\\} | |
154 {\Large\bf\ethesis\vskip 0.4em} | |
95 | 155 |
3 | 156 {\LARGE\bf\mc\@title\\} |
157 {\LARGE\bf{\@etitle}\vskip 0.4 em} | |
158 | |
159 {\large\mc\@year\\} | |
160 {\large\@eyear\vskip 0.3 em} | |
95 | 161 |
3 | 162 {\large\bf\mc\@author\par} |
163 {\large\bf\@eauthor\par\vskip 0.8 em} | |
164 | |
165 {\includegraphics[clip,keepaspectratio=true,scale=0.48]{fig/u-ryukyu-Mark.eps}\vskip 0.8 em} | |
166 | |
167 {\large\bf\mc\university\\} | |
168 {\large\bf\mc\department\\} | |
169 {\large\bf\mc\course\vskip 0.3 em} | |
170 | |
171 {\large\textbf\ecourse\\} | |
172 {\large\textbf\edepartment\\} | |
173 {\large\textbf\euniversity\vskip 0.3em} | |
95 | 174 |
3 | 175 {\large\bf\mc\@chife\\} |
176 {\large\bf\@echife\\} | |
177 \end{center} | |
178 } | |
179 | |
180 \newcommand{\makecommission} { | |
181 \thispagestyle{empty} | |
182 \null | |
183 \vskip 10 em | |
184 \begin{center} | |
185 本論文は、修士(工学)の学位論文として適切であると認める。 | |
186 \end{center} | |
187 \vskip 10 em | |
188 \begin{minipage}{0.5\hsize} | |
189 \begin{center} | |
190 \end{center} | |
191 \end{minipage} | |
192 \begin{minipage}{0.5\hsize} | |
193 \begin{center} | |
194 \bf\commission | |
195 \vskip 3 em | |
196 \underline{ 印}\\ | |
197 (主 査) 和田 知久 | |
198 \vskip 2 em | |
199 \underline{ 印}\\ | |
174 | 200 (副 査) 長田 智和 |
3 | 201 \vskip 2 em |
202 \underline{ 印}\\ | |
178
074eb76a9184
add Akka/Hazelcast slide
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
174
diff
changeset
|
203 (副 査) 玉城 史朗 |
3 | 204 \vskip 2 em |
205 \underline{ 印}\\ | |
206 (副 査) 河野 真治 | |
207 \end{center} | |
208 \end{minipage} | |
209 } | |
210 | |
211 %abstract | |
212 \renewenvironment{abstract}{% | |
213 \titlepage | |
214 \thispagestyle{empty} | |
215 \null\vfil | |
216 \@beginparpenalty\@lowpenalty | |
217 {\Huge \bfseries \abstractname}% | |
218 \begin{center}% | |
219 \@endparpenalty\@M | |
220 \end{center} | |
221 }% | |
222 | |
223 \newenvironment{abstract_eng}{% | |
224 \titlepage | |
225 \thispagestyle{empty} | |
226 \null\vfil | |
227 \@beginparpenalty\@lowpenalty | |
228 {\Huge \bfseries \abstractengname}% | |
229 \begin{center}% | |
230 \@endparpenalty\@M | |
231 \end{center} | |
232 }% | |
233 | |
234 %目次 | |
235 \renewcommand{\tableofcontents}{% | |
236 \pagestyle{plain} | |
237 \if@twocolumn\@restonecoltrue\onecolumn | |
238 \else\@restonecolfalse\fi | |
239 \chapter*{\contentsname | |
240 \@mkboth{\contentsname}{\contentsname}% | |
241 } \pagenumbering{roman}\@starttoc{toc}% | |
242 \if@restonecol\twocolumn\fi | |
243 } | |
244 | |
245 % 目次用ページ番号 | |
246 \newcommand\frontmatter{% | |
247 \cleardoublepage | |
248 %\@mainmatterfalse | |
249 \pagenumbering{roman} | |
250 } | |
251 | |
252 % 本文用ページ番号 | |
253 \newcommand\mainmatter{% | |
254 \cleardoublepage | |
255 % \@mainmattertrue | |
256 \pagenumbering{arabic} | |
257 } | |
258 | |
259 \newcommand\backmatter{% | |
260 \if@openright | |
261 \cleardoublepage | |
262 \else | |
263 \clearpage | |
264 \fi | |
265 % \@mainmatterfalse | |
266 } | |
267 | |
268 %付録 | |
269 \renewcommand{\appendix}{\par | |
270 \setcounter{chapter}{0}% | |
271 \setcounter{section}{0}% | |
272 \renewcommand{\@chapapp}{\appendixname}% | |
273 \renewcommand{\@chappos}\space% | |
274 \renewcommand{\thechapter}{\@Alph\c@chapter} | |
275 \renewcommand{\thesection}{\thechapter-\arabic{section}}} | |
276 | |
277 | |
278 %章 | |
279 \renewcommand{\chapter}{% | |
280 % \pagestyle{plain} | |
281 % \pagestyle{m@tterheadings} | |
282 \pagestyle{anotherheadings} | |
283 \if@openright\cleardoublepage\else\clearpage\fi | |
284 % \thispagestyle{jpl@in}% | |
285 \thispagestyle{anotherplain}% | |
286 \global\@topnum\z@ | |
287 \@afterindentfalse | |
288 \secdef\@chapter\@schapter} | |
289 \def\@chapter[#1]#2{% | |
290 \ifnum \c@secnumdepth >\m@ne | |
291 \refstepcounter{chapter}% | |
292 \typeout{\@chapapp\space\thechapter\space\@chappos (\thepage ページ)}% | |
293 \addcontentsline{toc}{chapter}% | |
294 {\protect\numberline{\@chapapp\thechapter\@chappos}#1}% | |
295 \else | |
296 \addcontentsline{toc}{chapter}{#1}% | |
297 \fi | |
298 \chaptermark{#1}% | |
299 \addtocontents{lof}{\protect\addvspace{10\p@}}% | |
300 \addtocontents{lot}{\protect\addvspace{10\p@}}% | |
301 \@makechapterhead{#2}\@afterheading} | |
302 \def\@makechapterhead#1{\hbox{}% | |
303 \vskip2\Cvs | |
304 {\parindent\z@ | |
305 \raggedright | |
306 % | |
307 \reset@font\huge\bfseries | |
308 \ifnum \c@secnumdepth >\m@ne | |
309 \setlength\@tempdima{\linewidth}% | |
310 \setbox\z@\hbox{\@chapapp\thechapter\@chappos\hskip1zw}% | |
311 \addtolength\@tempdima{-\wd\z@}% | |
312 \unhbox\z@\nobreak | |
313 \vtop{\hsize\@tempdima#1}% | |
314 \else | |
315 #1\relax | |
316 \fi}\nobreak\vskip3\Cvs} | |
317 | |
318 | |
319 \renewcommand{\prepartname}{\relax} %\renewcommand{\prepartname}{第} | |
320 \renewcommand{\postpartname}{部} | |
321 \renewcommand{\prechaptername}{第}%\renewcommand{\prechaptername}{第} | |
322 \renewcommand{\postchaptername}{章} | |
323 \renewcommand{\contentsname}{目 次} | |
324 \renewcommand{\listfigurename}{図 目 次} | |
325 \renewcommand{\listtablename}{表 目 次} | |
326 \renewcommand{\bibname}{参考文献} | |
327 \renewcommand{\indexname}{索 引} | |
328 \renewcommand{\figurename}{図} | |
329 \renewcommand{\tablename}{表} | |
330 \renewcommand{\appendixname}{付 録} | |
331 \renewcommand{\abstractname}{要 旨} | |
332 \newcommand{\abstractengname}{Abstract} | |
333 | |
334 | |
335 %%%% new environment for me(ryuji) | |
336 %定義のための環境 | |
337 \newcounter{defnum}[chapter] | |
338 \newcommand{\predef}{定義} | |
339 \newcommand{\postdef}{\relax} | |
340 \newenvironment{definition}{\vskip5mm% | |
341 \center\begin{minipage}{.8\textwidth} | |
342 \addtocounter{defnum}{1} | |
343 \begin{description}\item[\textbf{\predef\thechapter.\thedefnum\postdef}] } | |
344 {\end{description}\end{minipage}\newline\vskip5mm} | |
345 | |
346 \newcommand{\preex}{例題} | |
347 \newcommand{\postex}{\relax} | |
348 \newenvironment{example}{\vskip5mm% | |
349 \center\begin{minipage}{.9\textwidth} | |
350 \begin{description}\item[\textbf{[\preex\postex]\hskip1zw}] } | |
351 {\end{description}\end{minipage}\newline\vskip5mm} | |
352 | |
353 %%%% customized by me(ryuji) | |
354 %footnoteの表示部 | |
355 \def\@makefnmark{\hbox{\@textsuperscript{\normalfont | |
356 注\kern0.1em \@thefnmark}}} | |
357 | |
358 %%%%%% added by ryuji %%%%%%%%%% | |
359 % ヘディング | |
360 % c.f. 奥村晴彦,''LaTeX2e 美文書作成入門,'' 技術評論社, pp207--231, 1997. | |
361 | |
362 %ヘッダ、フッタに追加するもの | |
363 \def\@lefthead{} | |
364 \def\marklefthead#1{\gdef\@lefthead{\small #1}} | |
365 \def\@leftfoot{} | |
366 \def\markleftfoot#1{\gdef\@leftfoot{\small #1}} | |
367 | |
368 | |
369 %\def\ps@headings{% | |
370 \def\ps@m@tterheadings{% | |
371 \let\@mkboth\@gobbletwo | |
372 \let\ps@jpl@in\ps@headnombre | |
373 \let\@oddfoot\@empty\let\@evenfoot\@empty | |
374 % \def\@evenhead{\thepage\hfil\leftmark}% | |
375 \def\@oddhead{\hss\addtolength{\textwidth}{-4.5zw} | |
376 % \underline{\hbox to \textwidth{\hfil\textbf{\rightmark}}% | |
377 \underline{\hbox to \textwidth{\vfil\@lefthead\hfil\textbf{\leftmark}}% | |
378 \hfil\hskip4zw\thepage}}% | |
379 | |
380 \def\chaptermark##1{\markboth{% | |
381 \ifnum \c@secnumdepth >\m@ne | |
382 \@chapapp\thechapter\@chappos\hskip1zw | |
383 \fi | |
384 ##1}{}}% | |
385 \def\sectionmark##1{\markright{% | |
386 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1zw\fi | |
387 ##1}}% | |
388 } | |
389 | |
390 | |
391 %もう一個のバージョン:headings(本命) | |
392 \def\ps@anotherheadings{% | |
393 \let\@mkboth\@gobbletwo | |
394 \let\ps@jpl@in\ps@headnombre | |
395 \def\@oddfoot{\reset@font% | |
396 \textbf{\footnotesize \@leftfoot}\hfil\bf\thepage}% | |
397 \let\@evenfoot\@empty | |
398 \def\@oddhead{\hss | |
399 % \underline{\hbox to \textwidth{\hfil\textbf{\rightmark}}% | |
400 \underline{\hbox to \textwidth{\@lefthead\hfil\textbf{\leftmark}}% | |
401 \hfil}}% | |
402 | |
403 \def\chaptermark##1{\markboth{% | |
404 \ifnum \c@secnumdepth >\m@ne | |
405 \@chapapp\thechapter\@chappos\hskip1zw | |
406 \fi | |
407 ##1}{}}% | |
408 \def\sectionmark##1{\markright{% | |
409 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1zw\fi | |
410 ##1}}% | |
411 } | |
412 %もう一個のバージョン:plain(本命) | |
413 \def\ps@anotherplain{% | |
414 \let\@mkboth\@gobbletwo | |
415 \let\ps@jpl@in\ps@headnombre | |
416 \def\@oddfoot{\reset@font% | |
417 \textbf{\footnotesize \@leftfoot}\hfil\bf\thepage}% | |
418 \let\@evenfoot\@empty | |
419 \let\@oddhead\@empty | |
420 \def\chaptermark##1{\markboth{% | |
421 \ifnum \c@secnumdepth >\m@ne | |
422 \@chapapp\thechapter\@chappos\hskip1zw | |
423 \fi | |
424 ##1}{}}% | |
425 \def\sectionmark##1{\markright{% | |
426 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1zw\fi | |
427 ##1}}% | |
428 } | |
429 | |
430 %スタイルセットのため | |
431 \renewenvironment{thebibliography}[1] | |
432 {\chapter*{\bibname\@mkboth{\bibname}{\bibname}}% | |
433 \markboth{\bibname}{\bibname} | |
434 \addcontentsline{toc}{chapter}{参考文献} | |
435 \list{\@biblabel{\@arabic\c@enumiv}}% | |
436 {\settowidth\labelwidth{\@biblabel{#1}}% | |
437 \leftmargin\labelwidth | |
438 \advance\leftmargin\labelsep | |
439 \@openbib@code | |
440 \usecounter{enumiv}% | |
441 \let\p@enumiv\@empty | |
442 \renewcommand\theenumiv{\@arabic\c@enumiv}}% | |
443 \sloppy | |
444 \clubpenalty4000 | |
445 \@clubpenalty\clubpenalty | |
446 \widowpenalty4000% | |
447 \sfcode`\.\@m} | |
448 {\def\@noitemerr | |
449 {\@latex@warning{Empty `thebibliography' environment}}% | |
450 \endlist} | |
451 | |
452 | |
453 %索引のため | |
454 \renewenvironment{theindex}{% | |
455 \clearpage | |
456 \columnseprule.4pt \columnsep 2zw | |
457 \markboth{\indexname}{\indexname} | |
458 \addcontentsline{toc}{chapter}{\indexname} | |
459 \begin{multicols}{3}[{\chapter*{\indexname}}] | |
460 \@mkboth{\indexname}{\indexname} | |
461 \thispagestyle{anotherplain}% | |
462 \parindent=0pt | |
463 \parskip=0pt plus .3pt \relax | |
464 \let\item=\@idxitem | |
465 \raggedright | |
466 \footnotesize\narrowbaselines | |
467 }{\end{multicols}} | |
468 \def\indexname{索引} | |
469 \def\narrowbaselines{\fontsize\@xpt\@xiipt\selectfont} | |
470 \def\@idxitem{\par \hangindent4zw} | |
471 \def\subitem{\par \hangindent4zw \hspace*{2zw}} | |
472 \def\subsubitem{\par \hangindent4zw \hspace*{3zw}} | |
473 | |
474 %禁則処理の追加 | |
475 %事前でのブレークを禁止(禁止>=10000) | |
476 \prebreakpenalty\jis`,=10000 % , | |
477 \prebreakpenalty\jis`.=10000 % . | |
478 %\prebreakpenalty\jis"2124=10000 % , | |
479 %\prebreakpenalty\jis"2125=10000 % . | |
480 %\prebreakpenalty\jis`、=10000 % 、 | |
481 %\prebreakpenalty\jis`。=10000 % 。 | |
482 %%\prebreakpenalty\jis"2124=10000 % 、 | |
483 %%\prebreakpenalty\jis"2125=10000 % 。 |