Mercurial > hg > Papers > 2021 > anatofuz-master
annotate paper/master_paper.sty @ 17:72bffc43a3a1
...
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 29 Jan 2021 17:26:43 +0900 |
parents | 63f209dbaa73 |
children | d2aa3709bfc8 |
rev | line source |
---|---|
2 | 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{修士論文スタイルファイル\\自律分散研バージョン} | |
21 %\etitle{\LaTeX style test file for master paper} | |
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{情報工学専攻} | |
115 \def\ecourse{Information Engineering Course} | |
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% | |
150 | |
151 \begin{center}% | |
152 \let\footnote\thanks | |
153 {\fontsize{16pt}{0pt}\bf\thesis\\} | |
154 \vskip 0.5em | |
155 {\fontsize{16pt}{0pt}\bf\ethesis} | |
156 \vskip 1.5em | |
157 {\fontsize{18pt}{0pt}\bf\mc\@title\\} | |
158 \vskip 0.5em | |
159 {\fontsize{18pt}{0pt}\bf{\@etitle}} | |
160 \vskip 0.8em | |
161 | |
162 {\fontsize{14pt}{0pt}\mc\@year\\} | |
163 {\fontsize{14pt}{0pt}\@eyear} | |
164 \vskip 0.8em | |
165 | |
166 {\fontsize{16pt}{0pt}\bf\mc\@author\par} | |
167 \vskip 0.5em | |
168 {\fontsize{16pt}{0pt}\bf\@eauthor\par} | |
169 | |
170 \vskip 1.5em | |
171 {\includegraphics[clip,keepaspectratio=true,scale=0.48]{fig/u-ryukyu-Mark.eps}} | |
172 \vskip 1.5em | |
173 | |
174 {\fontsize{16pt}{0pt}\bf\mc\university\\} | |
175 \vskip 0.5em | |
176 {\fontsize{16pt}{0pt}\bf\mc\department\\} | |
177 \vskip 0.5em | |
178 {\fontsize{16pt}{0pt}\bf\mc\course} | |
179 \vskip 0.8em | |
180 | |
181 {\fontsize{16pt}{0pt}\textbf\ecourse\\} | |
182 \vskip 0.5em | |
183 {\fontsize{16pt}{0pt}\textbf\edepartment\\} | |
184 \vskip 0.5em | |
185 {\fontsize{16pt}{0pt}\textbf\euniversity} | |
186 \vskip 0.8em | |
187 | |
188 {\fontsize{14pt}{0pt}\bf\mc\@chife\\} | |
189 \vskip 0.5em | |
190 {\fontsize{14pt}{0pt}\bf\@echife\\} | |
191 \end{center} | |
192 } | |
193 | |
194 \newcommand{\makecommission} { | |
195 \null | |
196 \vspace*{4.5cm} | |
197 \begin{center} | |
198 本論文は、修士(工学)の学位論文として適切であると認める。 | |
199 \end{center} | |
200 \vskip 10 em | |
201 \begin{minipage}{0.5\hsize} | |
202 \begin{center} | |
203 \end{center} | |
204 \end{minipage} | |
205 \begin{minipage}{0.5\hsize} | |
206 \begin{center} | |
207 \bf\commission | |
208 \vskip 3 em | |
209 \underline{ 印}\\ | |
3
63f209dbaa73
fix master_paper.sty
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
2
diff
changeset
|
210 (主 査) 和田 知久 |
2 | 211 \vskip 2 em |
212 \underline{ 印}\\ | |
3
63f209dbaa73
fix master_paper.sty
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
2
diff
changeset
|
213 (副 査) 山田 孝治 |
2 | 214 \vskip 2 em |
215 \underline{ 印}\\ | |
3
63f209dbaa73
fix master_paper.sty
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
2
diff
changeset
|
216 (副 査) 當間 愛晃 |
2 | 217 \vskip 2 em |
218 \underline{ 印}\\ | |
3
63f209dbaa73
fix master_paper.sty
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
2
diff
changeset
|
219 (副 査) 河野 真治 |
2 | 220 \end{center} |
221 \end{minipage} | |
222 } | |
223 | |
224 %abstract | |
225 \renewenvironment{abstract}{% | |
226 \titlepage | |
227 \null\vfil | |
228 \@beginparpenalty\@lowpenalty | |
229 {\Huge \bfseries \abstractname}% | |
230 \begin{center}% | |
231 \@endparpenalty\@M | |
232 \end{center} | |
233 }% | |
234 | |
235 \newenvironment{abstract_eng}{% | |
236 \titlepage | |
237 \null\vfil | |
238 \@beginparpenalty\@lowpenalty | |
239 {\Huge \bfseries \abstractengname}% | |
240 \begin{center}% | |
241 \@endparpenalty\@M | |
242 \end{center} | |
243 }% | |
244 | |
245 %目次 | |
246 \renewcommand{\tableofcontents}{% | |
247 \pagestyle{anotherplain} | |
248 \if@twocolumn\@restonecoltrue\onecolumn | |
249 \else\@restonecolfalse\fi | |
250 \chapter*{\contentsname | |
251 \@mkboth{\contentsname}{\contentsname}% | |
252 } \pagenumbering{arabic}\@starttoc{toc}% | |
253 \if@restonecol\twocolumn\fi | |
254 } | |
255 | |
256 \newcommand\frontmatter{% | |
257 \cleardoublepage | |
258 %\@mainmatterfalse | |
259 \pagenumbering{roman} | |
260 } | |
261 | |
262 % 本文用ページ番号 | |
263 \newcommand\mainmatter{% | |
264 \cleardoublepage | |
265 % \@mainmattertrue | |
266 \pagenumbering{arabic} | |
267 } | |
268 | |
269 \newcommand\backmatter{% | |
270 \if@openright | |
271 \cleardoublepage | |
272 \else | |
273 \clearpage | |
274 \fi | |
275 % \@mainmatterfalse | |
276 } | |
277 | |
278 %付録 | |
279 \renewcommand{\appendix}{\par | |
280 \setcounter{chapter}{0}% | |
281 \setcounter{section}{0}% | |
282 \renewcommand{\@chapapp}{\appendixname}% | |
283 \renewcommand{\@chappos}\space% | |
284 \renewcommand{\thechapter}{\@Alph\c@chapter} | |
285 \renewcommand{\thesection}{\thechapter-\arabic{section}}} | |
286 | |
287 | |
288 %章 | |
289 \renewcommand{\chapter}{% | |
290 \pagestyle{anotherheadings} | |
291 \if@openright\cleardoublepage\else\clearpage\fi | |
292 \thispagestyle{anotherplain}% | |
293 \global\@topnum\z@ | |
294 \@afterindentfalse | |
295 \secdef\@chapter\@schapter} | |
296 | |
297 \def\@chapter[#1]#2{% | |
298 \ifnum \c@secnumdepth >\m@ne | |
299 \refstepcounter{chapter}% | |
300 \typeout{\@chapapp\space\thechapter\space\@chappos (\thepage ページ)}% | |
301 \addcontentsline{toc}{chapter}% | |
302 {\protect\numberline{\@chapapp\thechapter\@chappos}#1}% | |
303 \else | |
304 \addcontentsline{toc}{chapter}{#1}% | |
305 \fi | |
306 \chaptermark{#1}% | |
307 \addtocontents{lof}{\protect\addvspace{10\p@}}% | |
308 \addtocontents{lot}{\protect\addvspace{10\p@}}% | |
309 \@makechapterhead{#2}\@afterheading} | |
310 \def\@makechapterhead#1{\hbox{}% | |
311 \vskip2\Cvs | |
312 {\parindent\z@ | |
313 \raggedright | |
314 % | |
315 \reset@font\huge\bfseries | |
316 \ifnum \c@secnumdepth >\m@ne | |
317 \setlength\@tempdima{\linewidth}% | |
318 \setbox\z@\hbox{\@chapapp\thechapter\@chappos\hskip1zw}% | |
319 \addtolength\@tempdima{-\wd\z@}% | |
320 \unhbox\z@\nobreak | |
321 \vtop{\hsize\@tempdima#1}% | |
322 \else | |
323 #1\relax | |
324 \fi}\nobreak\vskip3\Cvs} | |
325 | |
326 | |
327 \renewcommand{\prepartname}{\relax} %\renewcommand{\prepartname}{第} | |
328 \renewcommand{\postpartname}{部} | |
329 \renewcommand{\prechaptername}{第}%\renewcommand{\prechaptername}{第} | |
330 \renewcommand{\postchaptername}{章} | |
331 \renewcommand{\contentsname}{目 次} | |
332 \renewcommand{\listfigurename}{図 目 次} | |
333 \renewcommand{\listtablename}{表 目 次} | |
334 \renewcommand{\bibname}{参考文献} | |
335 \renewcommand{\indexname}{索 引} | |
336 \renewcommand{\figurename}{図} | |
337 \renewcommand{\tablename}{表} | |
338 \renewcommand{\appendixname}{付 録} | |
339 \renewcommand{\abstractname}{要 旨} | |
340 \newcommand{\abstractengname}{Abstract} | |
341 | |
342 | |
343 %%%% new environment for me(ryuji) | |
344 %定義のための環境 | |
345 \newcounter{defnum}[chapter] | |
346 \newcommand{\predef}{定義} | |
347 \newcommand{\postdef}{\relax} | |
348 \newenvironment{definition}{\vskip5mm% | |
349 \center\begin{minipage}{.8\textwidth} | |
350 \addtocounter{defnum}{1} | |
351 \begin{description}\item[\textbf{\predef\thechapter.\thedefnum\postdef}] } | |
352 {\end{description}\end{minipage}\newline\vskip5mm} | |
353 | |
354 \newcommand{\preex}{例題} | |
355 \newcommand{\postex}{\relax} | |
356 \newenvironment{example}{\vskip5mm% | |
357 \center\begin{minipage}{.9\textwidth} | |
358 \begin{description}\item[\textbf{[\preex\postex]\hskip1zw}] } | |
359 {\end{description}\end{minipage}\newline\vskip5mm} | |
360 | |
361 %%%% customized by me(ryuji) | |
362 %footnoteの表示部 | |
363 \def\@makefnmark{\hbox{\@textsuperscript{\normalfont | |
364 注\kern0.1em \@thefnmark}}} | |
365 | |
366 %%%%%% added by ryuji %%%%%%%%%% | |
367 % ヘディング | |
368 % c.f. 奥村晴彦,''LaTeX2e 美文書作成入門,'' 技術評論社, pp207--231, 1997. | |
369 | |
370 %ヘッダ、フッタに追加するもの | |
371 \def\@lefthead{} | |
372 \def\marklefthead#1{\gdef\@lefthead{\small #1}} | |
373 \def\@leftfoot{} | |
374 \def\markleftfoot#1{\gdef\@leftfoot{\small #1}} | |
375 | |
376 | |
377 %\def\ps@headings{% | |
378 \def\ps@m@tterheadings{% | |
379 \let\@mkboth\@gobbletwo | |
380 \let\ps@jpl@in\ps@headnombre | |
381 \let\@oddfoot\@empty\let\@evenfoot\@empty | |
382 % \def\@evenhead{\thepage\hfil\leftmark}% | |
383 \def\@oddhead{\hss\addtolength{\textwidth}{-4.5zw} | |
384 % \underline{\hbox to \textwidth{\hfil\textbf{\rightmark}}% | |
385 \underline{\hbox to \textwidth{\vfil\@lefthead\hfil\textbf{\leftmark}}% | |
386 \hfil\hskip4zw\thepage}}% | |
387 | |
388 \def\chaptermark##1{\markboth{% | |
389 \ifnum \c@secnumdepth >\m@ne | |
390 \@chapapp\thechapter\@chappos\hskip1zw | |
391 \fi | |
392 ##1}{}}% | |
393 \def\sectionmark##1{\markright{% | |
394 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1zw\fi | |
395 ##1}}% | |
396 } | |
397 | |
398 | |
399 %もう一個のバージョン:headings(本命) | |
400 \def\ps@anotherheadings{% | |
401 \let\@mkboth\@gobbletwo | |
402 \let\ps@jpl@in\ps@headnombre | |
403 %\def\@oddfoot{\reset@font% | |
404 %\textbf{\footnotesize \@leftfoot}\hfil\bf\thepage\hfill}% | |
405 %\let\@evenfoot\@empty | |
406 \def\@oddhead{\hss | |
407 % \underline{\hbox to \textwidth{\hfil\textbf{\rightmark}}% | |
408 \underline{\hbox to \textwidth{\@lefthead\hfil\textbf{\leftmark}}% | |
409 \hfil}}% | |
410 | |
411 \def\chaptermark##1{\markboth{% | |
412 \ifnum \c@secnumdepth >\m@ne | |
413 %あやしい | |
414 \@chapapp\thechapter\@chappos\hskip1zw | |
415 \fi | |
416 ##1}{}}% | |
417 \def\sectionmark##1{\markright{% | |
418 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1zw\fi | |
419 ##1}}% | |
420 } | |
421 %もう一個のバージョン:plain(本命) | |
422 \def\ps@anotherplain{% | |
423 \let\@mkboth\@gobbletwo | |
424 \let\ps@jpl@in\ps@headnombre | |
425 \def\@oddfoot{\reset@font\hfill\bf\thepage\hfill}% | |
426 \let\@evenfoot\@oddfoot | |
427 \let\@oddhead\@empty | |
428 \def\chaptermark##1{\markboth{% | |
429 \ifnum \c@secnumdepth >\m@ne | |
430 \@chapapp\thechapter\@chappos\hskip1zw | |
431 \fi | |
432 ##1}{}}% | |
433 \def\sectionmark##1{\markright{% | |
434 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1zw\fi | |
435 ##1}}% | |
436 } | |
437 | |
438 %スタイルセットのため | |
439 \renewenvironment{thebibliography}[1] | |
440 {\chapter*{\bibname\@mkboth{\bibname}{\bibname}}% | |
441 \markboth{\bibname}{\bibname} | |
442 \addcontentsline{toc}{chapter}{参考文献} | |
443 \list{\@biblabel{\@arabic\c@enumiv}}% | |
444 {\settowidth\labelwidth{\@biblabel{#1}}% | |
445 \leftmargin\labelwidth | |
446 \advance\leftmargin\labelsep | |
447 \@openbib@code | |
448 \usecounter{enumiv}% | |
449 \let\p@enumiv\@empty | |
450 \renewcommand\theenumiv{\@arabic\c@enumiv}}% | |
451 \sloppy | |
452 \clubpenalty4000 | |
453 \@clubpenalty\clubpenalty | |
454 \widowpenalty4000% | |
455 \sfcode`\.\@m} | |
456 {\def\@noitemerr | |
457 {\@latex@warning{Empty `thebibliography' environment}}% | |
458 \endlist} | |
459 | |
460 | |
461 %索引のため | |
462 \renewenvironment{theindex}{% | |
463 \clearpage | |
464 \columnseprule.4pt \columnsep 2zw | |
465 \markboth{\indexname}{\indexname} | |
466 \addcontentsline{toc}{chapter}{\indexname} | |
467 \begin{multicols}{3}[{\chapter*{\indexname}}] | |
468 \@mkboth{\indexname}{\indexname} | |
469 \thispagestyle{anotherplain}% | |
470 \parindent=0pt | |
471 \parskip=0pt plus .3pt \relax | |
472 \let\item=\@idxitem | |
473 \raggedright | |
474 \footnotesize\narrowbaselines | |
475 }{\end{multicols}} | |
476 \def\indexname{索引} | |
477 \def\narrowbaselines{\fontsize\@xpt\@xiipt\selectfont} | |
478 \def\@idxitem{\par \hangindent4zw} | |
479 \def\subitem{\par \hangindent4zw \hspace*{2zw}} | |
480 \def\subsubitem{\par \hangindent4zw \hspace*{3zw}} | |
481 | |
482 %禁則処理の追加 | |
483 %事前でのブレークを禁止(禁止>=10000) | |
484 \prebreakpenalty\jis`,=10000 % , | |
485 \prebreakpenalty\jis`.=10000 % . | |
486 %\prebreakpenalty\jis"2124=10000 % , | |
487 %\prebreakpenalty\jis"2125=10000 % . | |
488 %\prebreakpenalty\jis`、=10000 % 、 | |
489 %\prebreakpenalty\jis`。=10000 % 。 | |
490 %%\prebreakpenalty\jis"2124=10000 % 、 | |
491 %%\prebreakpenalty\jis"2125=10000 % 。 |