This repository has been archived by the owner on Sep 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjsmepaper.cls
409 lines (391 loc) · 14.3 KB
/
jsmepaper.cls
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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% jsmepaper.cls v2.1 (2010.10.06) %%
%% %%
%% このバージョンは、jsmepaper.cls,v 1.4を1段組用に変更したものです。 %%
%% %%
%% 前バージョンのコメントはすべてオリジナルのまま残してあります。 %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% jsmepaper.cls
%
% $Id: jsmepaper.cls,v 1.4 2001/10/10 15:55:20 ken Exp $
%
\NeedsTeXFormat{pLaTeX2e}
\ProvidesClass{jsmepaper}
[1999/11/05 v1.54 Standard JSME Paper Class for pLateX2e]
%
% Adding the following customizations by Kikuo Fujita, Osaka University:
% ・ Add command to use PSNFSS packages.
% ・ Add semilarge size font to slightly shrink of font of section.
% ・ Add small indentation of each items in the description environment.
% ・ Rectify section, subsection and subsubsection format according
% Manuscript of J.S.M.E.
% ・ Change line length of just above footnotes on first page.
% ・ Change to be located all floating figures and tables in top of page
% and increase limitation of the number of figures up to 4.
% ・ suppress hyphenation of english word.
%
% If you don't have PSNFSS system, comment out the following three
% lines [customized by Kikuo Fujita, Osaka University]:
\RequirePackage{times} % Loads the Times-Roman Fonts
\RequirePackage{mathptmx} % Loads the Times-Roman Math Fonts
%\RequirePackage{pifont} % Loads the Postscript symbol fonts
\newif\iflatexe\latexetrue
%
\input jsmefont.sty\relax
\newcounter{@paper}
\newif\if@landscape \@landscapefalse
\newcommand{\@ptsize}{0}
\newif\if@restonecol
\newif\if@titlepage
\@titlepagefalse
\hour\time \divide\hour by 60\relax
\@tempcnta\hour \multiply\@tempcnta 60\relax
\minute\time \advance\minute-\@tempcnta
\newif\if@stysize \@stysizefalse
\newif\if@enablejfam \@enablejfamtrue
\DeclareOption{a4jsme}{\setcounter{@paper}{1}%
\setlength\paperheight {297mm}%
\setlength\paperwidth {210mm}}
\DeclareOption{a5jsme}{\setcounter{@paper}{2}%
\setlength\paperheight {210mm}
\setlength\paperwidth {148mm}}
\DeclareOption{b4jsme}{\setcounter{@paper}{3}%
\setlength\paperheight {364mm}
\setlength\paperwidth {257mm}}
\DeclareOption{b5jsme}{\setcounter{@paper}{4}%
\setlength\paperheight {257mm}
\setlength\paperwidth {182mm}}
\DeclareOption{a4journal}{\setcounter{@paper}{5}%
\setlength\paperheight {297mm}%
\setlength\paperwidth {210mm}}
\if@compatibility
\renewcommand{\@ptsize}{0}
\else
\DeclareOption{10pt}{\renewcommand{\@ptsize}{0}}
\fi
\DeclareOption{11pt}{\renewcommand{\@ptsize}{1}}
\DeclareOption{12pt}{\renewcommand{\@ptsize}{2}}
\def\ds@twoside{\@twosidetrue\@mparswitchtrue}\def\ds@draft{\overfullrule 5pt}
\@options
\input{jsize1\@ptsize.clo}
\input{jsme1\@ptsize.sty}\relax
\ifnum\c@@paper=2 % A5
\input a4jsme.sty\relax
\else\ifnum\c@@paper=3 % B4
\input b4jsme.sty\relax
\else\ifnum\c@@paper=4 % B5
\input b5jsme.sty\relax
\else\ifnum\c@@paper=5 % Journal Articles
\input a4journal.sty\relax
\else % A4 ant other
\input a4jsme.sty\relax
\fi\fi\fi\fi
\def\labelenumi{\theenumi.}
\def\theenumi{\arabic{enumi}}
\def\labelenumii{(\theenumii)}
\def\theenumii{\alph{enumii}}
\def\p@enumii{\theenumi}
\def\labelenumiii{\theenumiii.}
\def\theenumiii{\roman{enumiii}}
\def\p@enumiii{\theenumi(\theenumii)}
\def\labelenumiv{\theenumiv.}
\def\theenumiv{\Alph{enumiv}}
\def\p@enumiv{\p@enumiii\theenumiii}
\def\labelitemi{$\bullet$}
\def\labelitemii{\bf --}
\def\labelitemiii{$\ast$}
\def\labelitemiv{$\cdot$}
\def\verse{\let\\=\@centercr
\list{}{\itemsep\z@ \itemindent -1.5em\listparindent \itemindent
\rightmargin\leftmargin\advance\leftmargin 1.5em}\item[]}
\let\endverse\endlist
\def\quotation{\list{}{\listparindent 1.5em
\itemindent\listparindent
\rightmargin\leftmargin \parsep 0pt plus 1pt}\item[]}
\let\endquotation=\endlist
\def\quote{\list{}{\rightmargin\leftmargin}\item[]}
\let\endquote=\endlist
% '\bf' is replaced to '\normalfont\bfseries', and '\labelsep = 15pt'
% is added to insert a small indent for description items. [customized
% by Kikuo Fujita, Osaka University]:
%
\def\descriptionlabel#1{\labelsep = 15pt \hspace\labelsep \normalfont\bfseries #1}
% \def\descriptionlabel#1{\hspace\labelsep \bf #1}
\def\description{\list{}{\labelwidth\z@ \itemindent-\leftmargin
\let\makelabel\descriptionlabel}}
\let\enddescription\endlist
\newcommand{\up}{\upshape}
\newcommand{\it}{\itshape}
\newcommand{\sl}{\slshape}
\newcommand{\sc}{\scshape}
\newcommand{\md}{\mdseries}
\newcommand{\bf}{\bfseries}
\newcommand{\tt}{\ttfamily}
\newcommand{\sf}{\sffamily}
\newcommand{\rm}{\rmfamily}
\newcommand{\mc}{\mcfamily}
\newcommand{\gt}{\gtfamily}
\newcommand{\bfs}{\bfseries\slshape}
\newcommand{\bfi}{\font\bfif=cmbxti10\bfif}
\newcommand{\bsf}{\font\bfsff=cmssdc10\bfsff}
\newcommand{\msf}{\font\bmsff=cmssbx10\bmsff}
\newcommand{\ssf}{\font\ssff=cmssi10\ssff}
\renewcommand{\theequation}{\arabic{equation}}
\newenvironment{titlepage}{%
\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
\else \newpage \fi \thispagestyle{empty}\c@page\z@}
{\if@restonecol\twocolumn \else \newpage \fi}
\arraycolsep 5pt \tabcolsep 6pt \arrayrulewidth .4pt \doublerulesep 2pt
\tabbingsep \labelsep
\skip\@mpfootins = \skip\footins
\fboxsep = 3pt \fboxrule = .4pt
\newcounter{part}
\newcounter{section}
\newcounter{subsection}[section]
\newcounter{subsubsection}[subsection]
\newcounter{paragraph}[subsubsection]
\newcounter{subparagraph}[paragraph]
\def\thepart{\Roman{part}} \def\thesection {\arabic{section}}
\def\thesubsection{\thesection$\cdot$\arabic{subsection}}
\def\thesubsubsection {\thesubsection$\cdot$\arabic{subsubsection}}
\def\theparagraph {\thesubsubsection.\arabic{paragraph}}
\def\thesubparagraph {\theparagraph.\arabic{subparagraph}}
\def\@pnumwidth{1.55em}
\def\@tocrmarg {2.55em}
\def\@dotsep{4.5}
\setcounter{tocdepth}{3}
%
% difinition of Language
%
\newif\ifjapan
\def\japan{\global\japantrue}
\def\english{\global\japanfalse}
\def\@chapapp#1{\ifjapan 第#1\else Chapter #1\fi}
\def\appendix{\par\setcounter{chapter}{0}\setcounter{section}{0}
\ifjapan\def\@chapapp{付録}\else\def\@chapapp{Appendix}\fi%
\def\thechapter{\Alph{chapter}}}
\newcommand{\prepartname}{\ifjapan 第\else Part.\fi}
\newcommand{\postpartname}{\ifjapan 部\fi}
\newcommand{\contentsname}{\ifjapan 目次\else Contents\fi}
\newcommand{\listfigurename}{\ifjapan 図目次\else List of Figures\fi}
\newcommand{\listtablename}{\ifjapan 表目次\else List of Tables\fi}
\newcommand{\refname}{\ifjapan 文献\else References\fi}
\newcommand{\indexname}{\ifjapan 索 引\else Index\fi}
\newcommand{\figurename}{\ifjapan 図\else Fig.\fi}
\newcommand{\tablename}{\ifjapan 表\else Table\fi}
\newcommand{\appendixname}{\ifjapan 付録\else Appendix\fi}
\newcommand{\abstractname}{\ifjapan 概要\else Abstract\fi}
%
\newdimen\@lnumwidth
\def\numberline#1{\hbox to\@lnumwidth{#1\hfil}}
\def\tableofcontents{\section*{\contentsname}%
\markboth{\contentsname}{\contentsname}\@starttoc{toc}}
\def\@seccntformat#1{\csname the#1\endcsname}
\def\l@part#1#2{\addpenalty{\@secpenalty}
\addvspace{2.25em plus 1pt} \begingroup
\@tempdima 3em \parindent \z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
{\large \bfseries \leavevmode #1\hfil \hbox to\@pnumwidth{\hss #2}}\par
\nobreak \endgroup}
%
% 2000.01.11 Refixed by Ken Kishimoto;
% 1999.12.15 '\section,' etc are replaced by Kikuo Fujita, Osaka University:
%
%\newcommand{\section}{\secdef\@section\@ssection}%
\newcommand{\section}{\@ifstar{\@ssection}{\@section}}%
\newcommand{\@section}[1]{\@startsection{section}{1}{\z@}%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1段組用に変更ここから %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
{0.0\Cvs \@plus.5\Cdp \@minus.2\Cdp}%
{.35\Cvs \@plus.3\Cdp}%
{\reset@font\normalsize\center\bfseries}
{\protect\normalsize{.}\leavevmode\setbox\@tempboxa\hbox{#1}%
\hspace*{1.2ex}\protect\@spsection{{\normalsize#1}}}}
\newcommand{\@ssection}[1]{\@startsection{section}{10}{\z@}%
{0.0\Cvs \@plus.5\Cdp \@minus.2\Cdp}%
{.35\Cvs \@plus.3\Cdp}%
{\reset@font\semilarge\center\bfseries}
{\leavevmode\setbox\@tempboxa\hbox{#1}%
\hspace*{-2pt}\protect\@spsection{{\normalsize#1}}}}
\newcommand{\@spsection}[1]{% %%%%% (少ない文字は等間隔空け) %%%%%
\setbox\@tempboxa\hbox{\begin{tabular}{@{}c@{}}#1\end{tabular}}
\ifdim\wd\@tempboxa>9zw#1\else
\ifdim\wd\@tempboxa>3zw\makebox[8zw][s]{#1}\else\makebox[5zw][s]{#1}\fi\fi}
\newcommand{\subsection}[1]{\@startsection{subsection}{2}{\z@}%
{0.0\Cvs \@plus.5\Cdp \@minus.2\Cdp}%
{.01\Cvs \@plus.3\Cdp}%
{\hspace*{0.1ex}\reset@font\normalsize\bfseries}
{\protect\@ifstar{#1}{\hspace*{1.4ex} #1}}}
\newcommand{\subsubsection}[1]{\@startsection{subsubsection}{3}{\z@}%
{0.0\Cvs \@plus.5\Cdp \@minus.2\Cdp}%
{.01\Cvs \@plus.3\Cdp}%
{\hspace*{0.1ex}\reset@font\normalsize\bfseries}
{\protect\@ifstar{#1}{\hspace*{1.4ex} #1}}}
% 08 July, 2001 Ken Kishimoto
% shorten space between = in eqnarray environment
\setlength\arraycolsep{1\p@}
%
\def\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}}
\def\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
\def\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}
\def\l@subparagraph{\@dottedtocline{5}{10em}{5em}}
\def\listoffigures{\section*{\listfigurename}\@starttoc{lof}}
\def\l@figure{\@dottedtocline{2}{1.5em}{2.3em}}
\def\listoftables{\section*{\listtablename}
\@starttoc{lot}}
\let\l@table\l@figure
%
\newenvironment{theindex}
{\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
\columnseprule\z@ \columnsep 35\p@
\twocolumn[\section*{\indexname}]
\@mkboth{\indexname}{\indexname}
\thispagestyle{jpl@in}\parindent\z@
\parskip\z@ \@plus .3\p@\relax
\let\item\@idxitem}
{\if@restonecol\onecolumn\else\clearpage\fi}
%
\newenvironment{thebibliography}[1] {
\bigskip\par
\parindent=0pt\hfil{\semilarge\bf\makebox[5zw][s]{{\normalsize\refname}}}
\vskip 2ex\par
\list{({\@arabic\c@enumiv})}
{\setlength{\baselineskip}{15pt}\settowidth\labelwidth{\@biblabel{#1}}
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\@openbib@code
\usecounter{enumiv}
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}
\sloppy
\clubpenalty4000
\@clubpenalty\clubpenalty
\widowpenalty4000%
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
\let\@openbib@code\@empty
%
\newcommand{\@idxitem}{\par\hangindent 40\p@}
\newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
\newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
\newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
\renewcommand{\footnoterule}{%
\kern-3\p@\hrule width \columnwidth\kern 5\p@}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1段組用に変更ここまで %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\newcommand\@makefntext[1]{\parindent 1em
\noindent\hbox to 0.5em{\hss\@makefnmark}#1}
\newif\if西暦 \西暦false
\def\西暦{\西暦true}
\def\和暦{\西暦false}
\newcount\heisei \heisei\year \advance\heisei-1988\relax
\def\today{{%
\iftdir
\if西暦
\kansuji\number\year 年
\kansuji\number\month 月
\kansuji\number\day 日
\else
平成\ifnum\heisei=1 元年\else\kansuji\number\heisei 年\fi
\kansuji\number\month 月
\kansuji\number\day 日
\fi
\else
\if西暦
\number\year~年
\number\month~月
\number\day~日
\else
平成\ifnum\heisei=1 元年\else\number\heisei~年\fi
\number\month~月
\number\day~日
\fi
\fi}}
% The following variables are arranged from the originals to avoid a
% column only with figures & tables and to arrange the height between
% figures/tables and text [customized by Kikuo Fujita, Osaka University]:
\setcounter{topnumber}{4}
\def\topfraction{1.0}
\setcounter{bottomnumber}{3}
\def\bottomfraction{0.0}
\setcounter{totalnumber}{5}
\def\textfraction{0.0}
\def\floatpagefraction{0.95}
\setcounter{dbltopnumber}{2}
\def\dbltopfraction{1.0}
\def\dblfloatpagefraction{0.95}
\setlength{\intextsep}{1zw}
\setlength{\textfloatsep}{1.3zw}
\setlength{\dbltextfloatsep}{1.3zw}
\setlength\floatsep { 6\p@ \@plus 2\p@ \@minus 1\p@}
\setlength\intextsep { 6\p@ \@plus 2\p@ \@minus 1\p@}
%\setcounter{topnumber}{2}
%\def\topfraction{.7}
%\setcounter{bottomnumber}{1}
%\def\bottomfraction{.3}
%\setcounter{totalnumber}{3}
%\def\textfraction{.2}
%\def\floatpagefraction{.5}
%\setcounter{dbltopnumber}{2}
%\def\dbltopfraction{1.0}
%\def\dblfloatpagefraction{.5}
%\setlength{\intextsep}{1zw}
%\setlength{\textfloatsep}{1zw}
%\setlength{\dbltextfloatsep}{1zw}
\newcounter{figure}
\def\thefigure{\@arabic\c@figure}
\def\fps@figure{tbp}
\def\ftype@figure{1}
\def\ext@figure{lof}
\def\fnum@figure{\figurename\thefigure}
\def\figure{\@float{figure}}
\let\endfigure\end@float
\@namedef{figure*}{\@dblfloat{figure}}
\@namedef{endfigure*}{\end@dblfloat}
\newcounter{table}
\def\thetable{\@arabic\c@table}
\def\fps@table{tbp}
\def\ftype@table{2}
\def\ext@table{lot}
\def\fnum@table{\tablename\thetable}
\def\table{\@float{table}}
\let\endtable\end@float
\@namedef{table*}{\@dblfloat{table}}
\@namedef{endtable*}{\end@dblfloat}
\if@twoside
\def\ps@headings{%
\def\@oddfoot{}\def\@evenfoot{}
\def\@oddhead{\@signif\hfil\underline{\protect\small\rightmark}\hfil\thepage}
\def\@evenhead{\thepage\hfil\underline{\protect\small\leftmark}\hfil\@signif}
\def\sectionmark##1{}\def\subsectionmark##1{}
}
\else \def\ps@headings{%
\def\@oddfoot{}\def\@evenfoot{}
\def\@oddhead{\@signif\hfil\underline{\protect\small\rightmark}\hfil\thepage}
\def\@evenhead{\thepage\hfil\underline{\protect\small\leftmark}\hfil\@signif}
\def\sectionmark##1{}\def\subsectionmark##1{}
}\fi
\def\ps@myheadings{\let\@mkboth\@gobbletwo
\def\@oddhead{\@signf\sl\rightmark\hfil\rm\thepage}
\def\@oddfoot{}\def\@evenhead{\rm \thepage\hfil\sl\leftmark\@signif}
\def\@evenfoot{}\def\sectionmark##1{}\def\subsectionmark##1{}}
\ps@plain \pagenumbering{arabic}
% twocolumn defined
\def\@ps@{1}
\def\@twoc{}
\onecolumn %%%%% 1段組用に変更 %%%%%
\sloppy
\flushbottom
\if@twoside\else\raggedbottom\fi
%
\input jsadd.sty\relax
% The next part is added for less hyphenation [customized by Kikuo
% Fujita, Osaka University]:
\pretolerance=9999
%
\japan
\endinput