OSDN Git Service

ltjclasses: move the position of \tate
[luatex-ja/luatexja.git] / src / ltjtarticle.cls
1 %%
2 %% This is file `ltjtarticle.cls',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% ltjclasses.dtx  (with options: `article,tate')
8 %% 
9 %% IMPORTANT NOTICE:
10 %% 
11 %% For the copyright see the source file.
12 %% 
13 %% Any modified versions of this file must be renamed
14 %% with new filenames distinct from ltjtarticle.cls.
15 %% 
16 %% For distribution of the original source see the terms
17 %% for copying and modification in the file ltjclasses.dtx.
18 %% 
19 %% This generated file may be distributed as long as the
20 %% original source files, as listed above, are part of the
21 %% same distribution. (The sources need not necessarily be
22 %% in the same archive or directory.)
23 %% File: ltjclasses.dtx
24 %% \CharacterTable
25 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
26 %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
27 %%   Digits        \0\1\2\3\4\5\6\7\8\9
28 %%   Exclamation   \!     Double quote  \"     Hash (number) \#
29 %%   Dollar        \$     Percent       \%     Ampersand     \&
30 %%   Acute accent  \'     Left paren    \(     Right paren   \)
31 %%   Asterisk      \*     Plus          \+     Comma         \,
32 %%   Minus         \-     Point         \.     Solidus       \/
33 %%   Colon         \:     Semicolon     \;     Less than     \<
34 %%   Equals        \=     Greater than  \>     Question mark \?
35 %%   Commercial at \@     Left bracket  \[     Backslash     \\
36 %%   Right bracket \]     Circumflex    \^     Underscore    \_
37 %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
38 %%   Right brace   \}     Tilde         \~}
39 %%
40 \NeedsTeXFormat{LaTeX2e}
41 \ProvidesClass{ltjtarticle}
42   [2014/06/30 v1.6-ltj-4
43  Standard LuaLaTeX-ja class]
44 \RequirePackage{luatexja}
45 \RequirePackage{filehook}
46 \newcounter{@paper}
47 \newif\if@landscape \@landscapefalse
48 \newcommand{\@ptsize}{}
49 \newif\if@restonecol
50 \newif\if@titlepage
51 \@titlepagefalse
52 \hour\time \divide\hour by 60\relax
53 \@tempcnta\hour \multiply\@tempcnta 60\relax
54 \minute\time \advance\minute-\@tempcnta
55 \newif\if@stysize \@stysizefalse
56 \newif\if@mathrmmc \@mathrmmcfalse
57 \DeclareOption{a4paper}{\setcounter{@paper}{1}%
58   \setlength\paperheight {297mm}%
59   \setlength\paperwidth  {210mm}}
60 \DeclareOption{a5paper}{\setcounter{@paper}{2}%
61   \setlength\paperheight {210mm}
62   \setlength\paperwidth  {148mm}}
63 \DeclareOption{b4paper}{\setcounter{@paper}{3}%
64   \setlength\paperheight {364mm}
65   \setlength\paperwidth  {257mm}}
66 \DeclareOption{b5paper}{\setcounter{@paper}{4}%
67   \setlength\paperheight {257mm}
68   \setlength\paperwidth  {182mm}}
69 \DeclareOption{a4j}{\setcounter{@paper}{1}\@stysizetrue
70   \setlength\paperheight {297mm}%
71   \setlength\paperwidth  {210mm}}
72 \DeclareOption{a5j}{\setcounter{@paper}{2}\@stysizetrue
73   \setlength\paperheight {210mm}
74   \setlength\paperwidth  {148mm}}
75 \DeclareOption{b4j}{\setcounter{@paper}{3}\@stysizetrue
76   \setlength\paperheight {364mm}
77   \setlength\paperwidth  {257mm}}
78 \DeclareOption{b5j}{\setcounter{@paper}{4}\@stysizetrue
79   \setlength\paperheight {257mm}
80   \setlength\paperwidth  {182mm}}
81 \DeclareOption{a4p}{\setcounter{@paper}{1}\@stysizetrue
82   \setlength\paperheight {297mm}%
83   \setlength\paperwidth  {210mm}}
84 \DeclareOption{a5p}{\setcounter{@paper}{2}\@stysizetrue
85   \setlength\paperheight {210mm}
86   \setlength\paperwidth  {148mm}}
87 \DeclareOption{b4p}{\setcounter{@paper}{3}\@stysizetrue
88   \setlength\paperheight {364mm}
89   \setlength\paperwidth  {257mm}}
90 \DeclareOption{b5p}{\setcounter{@paper}{4}\@stysizetrue
91   \setlength\paperheight {257mm}
92   \setlength\paperwidth  {182mm}}
93 \AtEndOfPackageFile{geometry}{%
94   \setlength{\@tempdima}{\textheight}%
95   \setlength{\textheight}{\textwidth}%
96   \setlength{\textwidth}{\@tempdima}%
97   \expandafter\def\expandafter\Gm@process\expandafter{\Gm@process
98     \setlength{\@tempdima}{\textheight}%
99     \setlength{\textheight}{\textwidth}%
100     \setlength{\textwidth}{\@tempdima}}}
101 \if@compatibility
102   \renewcommand{\@ptsize}{0}
103 \else
104   \DeclareOption{10pt}{\renewcommand{\@ptsize}{0}}
105 \fi
106 \DeclareOption{11pt}{\renewcommand{\@ptsize}{1}}
107 \DeclareOption{12pt}{\renewcommand{\@ptsize}{2}}
108 \DeclareOption{landscape}{\@landscapetrue
109   \setlength\@tempdima{\paperheight}%
110   \setlength\paperheight{\paperwidth}%
111   \setlength\paperwidth{\@tempdima}}
112 \DeclareOption{tombow}{%
113   \tombowtrue \tombowdatetrue
114   \setlength{\@tombowwidth}{.1\p@}%
115   \@bannertoken{%
116      \jobname\space:\space\number\year/\number\month/\number\day
117       (\number\hour:\number\minute)}
118   \maketombowbox}
119 \DeclareOption{tombo}{%
120   \tombowtrue \tombowdatefalse
121   \setlength{\@tombowwidth}{.1\p@}%
122   \maketombowbox}
123 \DeclareOption{mentuke}{%
124   \tombowtrue \tombowdatefalse
125   \setlength{\@tombowwidth}{\z@}%
126   \maketombowbox}
127 \DeclareOption{tate}{%
128   \tate\AtBeginDocument{\message{《縦組モード》}\adjustbaseline}%
129 }
130 \DeclareOption{oneside}{\@twosidefalse}
131 \DeclareOption{twoside}{\@twosidetrue}
132 \DeclareOption{onecolumn}{\@twocolumnfalse}
133 \DeclareOption{twocolumn}{\@twocolumntrue}
134 \DeclareOption{titlepage}{\@titlepagetrue}
135 \DeclareOption{notitlepage}{\@titlepagefalse}
136 \DeclareOption{leqno}{\input{leqno.clo}}
137 \DeclareOption{fleqn}{\input{fleqn.clo}}
138 \DeclareOption{openbib}{%
139   \AtEndOfPackage{%
140    \renewcommand\@openbib@code{%
141       \advance\leftmargin\bibindent
142       \itemindent -\bibindent
143       \listparindent \itemindent
144       \parsep \z@
145       }%
146    \renewcommand\newblock{\par}}}
147 \if@compatibility
148   \@mathrmmctrue
149 \else
150   \DeclareOption{disablejfam}{%
151     \ClassWarningNoLine{\@currname}{The class option 'disablejfam' is obsolete}}
152   \DeclareOption{mathrmmc}{\@mathrmmctrue}
153 \fi
154 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
155 \DeclareOption{final}{\setlength\overfullrule{0pt}}
156 \ExecuteOptions{a4paper,10pt,oneside,onecolumn,final,tate}
157 \ProcessOptions\relax
158 \input{ltjtsize1\@ptsize.clo}
159 %\RequirePackage{plext}
160 \directlua{luatexbase.add_to_callback('luatexja.load_jfm',
161   function (ji, jn) ji.chars['parbdd'] = 0; return ji end,
162   'ltj.jclasses_load_jfm', 1)}
163 {\jfont\g=\ltj@stdmcfont:jfm=min } % loading jfm-min.lua
164 \expandafter\let\csname JY3/mc/m/n/10\endcsname\relax
165 \DeclareFontShape{JY3}{mc}{m}{n}{<-> s * [0.962216] \ltj@stdmcfont:jfm=min}{}
166 \DeclareFontShape{JY3}{gt}{m}{n}{<-> s * [0.962216] \ltj@stdgtfont:jfm=min;jfmvar=goth}{}
167 \ltjglobalsetparameter{differentjfm=both}
168 \directlua{luatexbase.remove_from_callback('luatexja.load_jfm', 'ltj.jclasses_load_jfm')}
169 \if@stysize
170   \setlength\columnsep{3\Cwd}
171 \else
172   \setlength\columnsep{10\p@}
173 \fi
174 \setlength\columnseprule{0\p@}
175 \setlength{\@tempdima}{\paperwidth}
176 \setlength{\@tempdimb}{\paperheight}
177 \iftombow
178   \advance \@tempdima 2in
179   \advance \@tempdimb 2in
180 \fi
181 \setlength{\pdfpagewidth}{\@tempdima}
182 \setlength{\pdfpageheight}{\@tempdimb}
183 \setlength\lineskip{1\p@}
184 \setlength\normallineskip{1\p@}
185 \renewcommand{\baselinestretch}{}
186 \setlength\parskip{0\p@ \@plus \p@}
187 \setlength\parindent{1\Cwd}
188 \@lowpenalty   51
189 \@medpenalty  151
190 \@highpenalty 301
191 \setcounter{topnumber}{2}
192 \setcounter{bottomnumber}{1}
193 \setcounter{totalnumber}{3}
194 \setcounter{dbltopnumber}{2}
195 \renewcommand{\topfraction}{.7}
196 \renewcommand{\bottomfraction}{.3}
197 \renewcommand{\textfraction}{.2}
198 \renewcommand{\floatpagefraction}{.5}
199 \renewcommand{\dbltopfraction}{.7}
200 \renewcommand{\dblfloatpagefraction}{.5}
201 \def\ps@plain{\let\@mkboth\@gobbletwo
202    \let\ps@jpl@in\ps@plain
203    \let\@oddhead\@empty
204    \def\@oddfoot{\reset@font\hfil\thepage\hfil}%
205    \let\@evenhead\@empty
206    \let\@evenfoot\@oddfoot}
207 \let\ps@jpl@in\ps@plain
208 \def\ps@headnombre{\let\@mkboth\@gobbletwo
209     \let\ps@jpl@in\ps@headnombre
210   \def\@evenhead{\hfil\thepage}%
211   \def\@oddhead{\thepage\hfil}%
212   \let\@oddfoot\@empty\let\@evenfoot\@empty}
213 \def\ps@footnombre{\let\@mkboth\@gobbletwo
214     \let\ps@jpl@in\ps@footnombre
215   \def\@evenfoot{\hfil\thepage}%
216   \def\@oddfoot{\thepage\hfil}%
217   \let\@oddhead\@empty\let\@evenhead\@empty}
218 \if@twoside
219   \def\ps@headings{\let\ps@jpl@in\ps@headnombre
220     \let\@oddfoot\@empty\let\@evenfoot\@empty
221     \def\@evenhead{{\leftmark}\hfil\thepage}%
222     \def\@oddhead{\thepage\hfil\rightmark}%
223     \let\@mkboth\markboth
224     \def\sectionmark##1{\markboth{%
225        \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
226        ##1}{}}%
227     \def\subsectionmark##1{\markright{%
228        \ifnum \c@secnumdepth >\@ne \thesubsection.\hskip1\zw\fi
229        ##1}}%
230   }
231 \else % if not twoside
232   \def\ps@headings{\let\ps@jpl@in\ps@headnombre
233     \let\@oddfoot\@empty
234     \def\@oddhead{\thepage\hfil\rightmark}%
235     \let\@mkboth\markboth
236   \def\sectionmark##1{\markright{%
237      \ifnum \c@secnumdepth >\m@ne \thesection.\hskip1\zw\fi
238      ##1}}%
239   }
240 \fi
241 \if@twoside
242   \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
243     \def\@evenhead{\hfil\leftmark}% right page
244     \def\@evenfoot{\hfil\thepage}% right page
245     \def\@oddhead{\rightmark\hfil}% left page
246     \def\@oddfoot{\thepage\hfil}% left page
247   \let\@mkboth\markboth
248   \def\sectionmark##1{\markboth{%
249      \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
250      ##1}{}}%
251   \def\subsectionmark##1{\markright{%
252      \ifnum \c@secnumdepth >\@ne \thesubsection.\hskip1\zw\fi
253      ##1}}%
254   }
255 \else % if one column
256   \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
257     \def\@oddhead{\rightmark\hfil}%
258     \def\@oddfoot{\thepage\hfil}%
259     \let\@mkboth\markboth
260   \def\sectionmark##1{\markright{%
261      \ifnum \c@secnumdepth >\m@ne \thesection.\hskip1\zw\fi
262      ##1}}%
263   }
264 \fi
265 \def\ps@myheadings{\let\ps@jpl@in\ps@plain%
266   \let\@oddfoot\@empty\let\@evenfoot\@empty
267   \def\@evenhead{{\leftmark}\hfil\thepage}%
268   \def\@oddhead{\thepage\hfil\rightmark}%
269   \let\@mkboth\@gobbletwo
270   \let\sectionmark\@gobble
271   \let\subsectionmark\@gobble
272 }
273 \if@compatibility
274 \newenvironment{titlepage}
275     {%
276      \if@twocolumn\@restonecoltrue\onecolumn
277      \else\@restonecolfalse\newpage\fi
278      \thispagestyle{empty}%
279      \setcounter{page}\z@
280     }%
281     {\if@restonecol\twocolumn\else\newpage\fi
282     }
283 \else
284 \newenvironment{titlepage}
285     {%
286       \if@twocolumn
287         \@restonecoltrue\onecolumn
288       \else
289         \@restonecolfalse\newpage
290       \fi
291       \thispagestyle{empty}%
292       \setcounter{page}\@ne
293     }%
294     {\if@restonecol\twocolumn \else \newpage \fi
295      \if@twoside\else
296         \setcounter{page}\@ne
297      \fi
298     }
299 \fi
300 \def\p@thanks#1{\footnotemark
301   \protected@xdef\@thanks{\@thanks
302     \protect{\noindent$\m@th^\thefootnote$~#1\protect\par}}}
303 \if@titlepage
304   \newcommand{\maketitle}{\begin{titlepage}%
305   \let\footnotesize\small
306   \let\footnoterule\relax
307   \let\thanks\p@thanks
308   \let\footnote\thanks
309   \vbox to\textheight\bgroup\tate\hsize\textwidth
310   \null\vfil
311   \vskip 60\p@
312   \begin{center}%
313     {\LARGE \@title \par}%
314     \vskip 3em%
315     {\Large
316      \lineskip .75em%
317       \begin{tabular}[t]{c}%
318         \@author
319       \end{tabular}\par}%
320       \vskip 1.5em%
321     {\large \@date \par}%       % Set date in \large size.
322   \end{center}\par
323   \vfil{\centering\@thanks}\vfil\null
324   \egroup
325   \end{titlepage}%
326   \setcounter{footnote}{0}%
327   \global\let\thanks\relax
328   \global\let\maketitle\relax
329   \global\let\p@thanks\relax
330   \global\let\@thanks\@empty
331   \global\let\@author\@empty
332   \global\let\@date\@empty
333   \global\let\@title\@empty
334   \global\let\title\relax
335   \global\let\author\relax
336   \global\let\date\relax
337   \global\let\and\relax
338   }%
339 \else
340   \newcommand{\maketitle}{\par
341   \begingroup
342     \renewcommand{\thefootnote}{\fnsymbol{footnote}}%
343     \def\@makefnmark{\hbox{\ifydir $\m@th^{\@thefnmark}$
344       \else\hbox{\yoko$\m@th^{\@thefnmark}$}\fi}}%
345     \long\def\@makefntext##1{\parindent 1\zw\noindent
346        \hbox to 2\zw{\hss\@makefnmark}##1}%
347     \if@twocolumn
348       \ifnum \col@number=\@ne \@maketitle
349       \else \twocolumn[\@maketitle]%
350       \fi
351     \else
352       \newpage
353       \global\@topnum\z@   % Prevents figures from going at top of page.
354       \@maketitle
355     \fi
356      \thispagestyle{jpl@in}\@thanks
357   \endgroup
358   \setcounter{footnote}{0}%
359   \global\let\thanks\relax
360   \global\let\maketitle\relax
361   \global\let\p@thanks\relax
362   \global\let\@thanks\@empty
363   \global\let\@author\@empty
364   \global\let\@date\@empty
365   \global\let\@title\@empty
366   \global\let\title\relax
367   \global\let\author\relax
368   \global\let\date\relax
369   \global\let\and\relax
370   }
371   \def\@maketitle{%
372   \newpage\null
373   \vskip 2em%
374   \begin{center}%
375   \let\footnote\p@thanks
376     {\LARGE \@title \par}%
377     \vskip 1.5em%
378     {\large
379       \lineskip .5em%
380       \begin{tabular}[t]{c}%
381         \@author
382       \end{tabular}\par}%
383     \vskip 1em%
384     {\large \@date}%
385   \end{center}%
386   \par\vskip 1.5em}
387 \fi
388 \if@titlepage
389   \newenvironment{abstract}{%
390       \titlepage
391       \null\vfil
392       \@beginparpenalty\@lowpenalty
393       \begin{center}%
394         {\bfseries\abstractname}%
395         \@endparpenalty\@M
396       \end{center}}%
397       {\par\vfil\null\endtitlepage}
398 \else
399   \newenvironment{abstract}{%
400     \if@twocolumn
401       \section*{\abstractname}%
402     \else
403       \small
404       \begin{center}%
405         {\bfseries\abstractname\vspace{-.5em}\vspace{\z@}}%
406       \end{center}%
407       \quotation
408     \fi}{\if@twocolumn\else\endquotation\fi}
409 \fi
410 \setcounter{secnumdepth}{3}
411 \newcounter{part}
412 \newcounter{section}
413 \newcounter{subsection}[section]
414 \newcounter{subsubsection}[subsection]
415 \newcounter{paragraph}[subsubsection]
416 \newcounter{subparagraph}[paragraph]
417 \renewcommand{\thepart}{\rensuji{\@Roman\c@part}}
418 \renewcommand{\thesection}{\rensuji{\@arabic\c@section}}
419 \renewcommand{\thesubsection}{\thesection・\rensuji{\@arabic\c@subsection}}
420 \renewcommand{\thesubsubsection}{%
421    \thesubsection・\rensuji{\@arabic\c@subsubsection}}
422 \renewcommand{\theparagraph}{%
423    \thesubsubsection・\rensuji{\@arabic\c@paragraph}}
424 \renewcommand{\thesubparagraph}{%
425    \theparagraph・\rensuji{\@arabic\c@subparagraph}}
426 \newcommand{\part}{\par\addvspace{4ex}%
427   \@afterindenttrue
428   \secdef\@part\@spart}
429 \def\@part[#1]#2{%
430   \ifnum \c@secnumdepth >\m@ne
431     \refstepcounter{part}%
432     \addcontentsline{toc}{part}{%
433        \prepartname\thepart\postpartname\hspace{1\zw}#1}%
434   \else
435     \addcontentsline{toc}{part}{#1}%
436   \fi
437   \markboth{}{}%
438   {\parindent\z@\raggedright
439    \interlinepenalty\@M\reset@font
440    \ifnum \c@secnumdepth >\m@ne
441      \Large\bfseries\prepartname\thepart\postpartname
442      \par\nobreak
443    \fi
444    \huge\bfseries#2\par}%
445   \nobreak\vskip3ex\@afterheading}
446 \def\@spart#1{{%
447   \parindent\z@\raggedright
448   \interlinepenalty\@M\reset@font
449   \huge\bfseries#1\par}%
450   \nobreak\vskip3ex\@afterheading}
451 \newcommand{\section}{\@startsection{section}{1}{\z@}%
452    {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
453    {.5\Cvs \@plus.3\Cvs}%
454    {\reset@font\Large\bfseries}}
455 \newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
456    {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
457    {.5\Cvs \@plus.3\Cvs}%
458    {\reset@font\large\bfseries}}
459 \newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
460    {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
461    {.5\Cvs \@plus.3\Cvs}%
462    {\reset@font\normalsize\bfseries}}
463 \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
464    {3.25ex \@plus 1ex \@minus .2ex}%
465    {-1em}%
466    {\reset@font\normalsize\bfseries}}
467 \newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
468    {3.25ex \@plus 1ex \@minus .2ex}%
469    {-1em}%
470    {\reset@font\normalsize\bfseries}}
471 \newcommand{\appendix}{\par
472   \setcounter{section}{0}%
473   \setcounter{subsection}{0}%
474   \renewcommand{\thesection}{\rensuji{\@Alph\c@section}}}
475 \if@twocolumn
476   \setlength\leftmargini {2em}
477 \else
478   \setlength\leftmargini {2.5em}
479 \fi
480 \setlength\leftmarginii  {2.2em}
481 \setlength\leftmarginiii {1.87em}
482 \setlength\leftmarginiv  {1.7em}
483 \if@twocolumn
484   \setlength\leftmarginv {.5em}
485   \setlength\leftmarginvi{.5em}
486 \else
487   \setlength\leftmarginv {1em}
488   \setlength\leftmarginvi{1em}
489 \fi
490 \setlength  \labelsep  {.5em}
491 \setlength  \labelwidth{\leftmargini}
492 \addtolength\labelwidth{-\labelsep}
493 \@beginparpenalty -\@lowpenalty
494 \@endparpenalty   -\@lowpenalty
495 \@itempenalty     -\@lowpenalty
496 \renewcommand{\theenumi}{\rensuji{\@arabic\c@enumi}}
497 \renewcommand{\theenumii}{\rensuji{(\@alph\c@enumii)}}
498 \renewcommand{\theenumiii}{\rensuji{\@roman\c@enumiii}}
499 \renewcommand{\theenumiv}{\rensuji{\@Alph\c@enumiv}}
500 \newcommand{\labelenumi}{\theenumi}
501 \newcommand{\labelenumii}{\theenumii}
502 \newcommand{\labelenumiii}{\theenumiii}
503 \newcommand{\labelenumiv}{\theenumiv}
504 \renewcommand{\p@enumii}{\theenumi}
505 \renewcommand{\p@enumiii}{\theenumi(\theenumii)}
506 \renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
507 \renewenvironment{enumerate}
508   {\ifnum \@enumdepth >\thr@@\@toodeep\else
509    \advance\@enumdepth\@ne
510    \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
511    \list{\csname label\@enumctr\endcsname}{%
512       \iftdir
513          \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
514            \else\topsep\z@\fi
515          \parskip\z@ \itemsep\z@ \parsep\z@
516          \labelwidth1\zw \labelsep.3\zw
517          \ifnum \@enumdepth=\@ne \leftmargin1\zw\relax
518            \else\leftmargin\leftskip\fi
519          \advance\leftmargin 1\zw
520       \fi
521          \usecounter{\@enumctr}%
522          \def\makelabel##1{\hss\llap{##1}}}%
523    \fi}{\endlist}
524 \newcommand{\labelitemi}{\textbullet}
525 \newcommand{\labelitemii}{%
526   \iftdir
527      {\textcircled{~}}
528   \else
529      {\normalfont\bfseries\textendash}
530   \fi
531 }
532 \newcommand{\labelitemiii}{\textasteriskcentered}
533 \newcommand{\labelitemiv}{\textperiodcentered}
534 \renewenvironment{itemize}
535   {\ifnum \@itemdepth >\thr@@\@toodeep\else
536    \advance\@itemdepth\@ne
537    \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
538    \expandafter
539    \list{\csname \@itemitem\endcsname}{%
540       \iftdir
541          \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
542            \else\topsep\z@\fi
543          \parskip\z@ \itemsep\z@ \parsep\z@
544          \labelwidth1\zw \labelsep.3\zw
545          \ifnum \@itemdepth =\@ne \leftmargin1\zw\relax
546            \else\leftmargin\leftskip\fi
547          \advance\leftmargin 1\zw
548       \fi
549          \def\makelabel##1{\hss\llap{##1}}}%
550    \fi}{\endlist}
551 \newenvironment{description}
552   {\list{}{\labelwidth\z@ \itemindent-\leftmargin
553    \iftdir
554      \leftmargin\leftskip \advance\leftmargin3\Cwd
555      \rightmargin\rightskip
556      \labelsep=1\zw \itemsep\z@
557      \listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@
558    \fi
559            \let\makelabel\descriptionlabel}}{\endlist}
560 \newcommand{\descriptionlabel}[1]{%
561    \hspace\labelsep\normalfont\bfseries #1}
562 \newenvironment{verse}
563   {\let\\\@centercr
564    \list{}{\itemsep\z@ \itemindent -1.5em%
565            \listparindent\itemindent
566            \rightmargin\leftmargin \advance\leftmargin 1.5em}%
567            \item\relax}{\endlist}
568 \newenvironment{quotation}
569   {\list{}{\listparindent 1.5em%
570            \itemindent\listparindent
571            \rightmargin\leftmargin
572            \parsep\z@ \@plus\p@}%
573            \item\relax}{\endlist}
574 \newenvironment{quote}
575   {\list{}{\rightmargin\leftmargin}%
576            \item\relax}{\endlist}
577 \newcounter{figure}
578 \renewcommand{\thefigure}{\rensuji{\@arabic\c@figure}}
579 \def\fps@figure{tbp}
580 \def\ftype@figure{1}
581 \def\ext@figure{lof}
582 \def\fnum@figure{\figurename\thefigure}
583 \newenvironment{figure}
584                {\@float{figure}}
585                {\end@float}
586 \newenvironment{figure*}
587                {\@dblfloat{figure}}
588                {\end@dblfloat}
589 \newcounter{table}
590 \renewcommand{\thetable}{\rensuji{\@arabic\c@table}}
591 \def\fps@table{tbp}
592 \def\ftype@table{2}
593 \def\ext@table{lot}
594 \def\fnum@table{\tablename\thetable}
595 \newenvironment{table}
596                {\@float{table}}
597                {\end@float}
598 \newenvironment{table*}
599                {\@dblfloat{table}}
600                {\end@dblfloat}
601 \newlength\abovecaptionskip
602 \newlength\belowcaptionskip
603 \setlength\abovecaptionskip{10\p@}
604 \setlength\belowcaptionskip{0\p@}
605 \long\def\@makecaption#1#2{%
606   \vskip\abovecaptionskip
607   \iftdir\sbox\@tempboxa{#1\hskip1\zw#2}%
608     \else\sbox\@tempboxa{#1: #2}%
609   \fi
610   \ifdim \wd\@tempboxa >\hsize
611     \iftdir #1\hskip1\zw#2\relax\par
612       \else #1: #2\relax\par\fi
613   \else
614     \global \@minipagefalse
615     \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
616   \fi
617   \vskip\belowcaptionskip}
618 \setlength\arraycolsep{5\p@}
619 \setlength\tabcolsep{6\p@}
620 \setlength\arrayrulewidth{.4\p@}
621 \setlength\doublerulesep{2\p@}
622 \setlength\tabbingsep{\labelsep}
623 \skip\@mpfootins = \skip\footins
624 \setlength\fboxsep{3\p@}
625 \setlength\fboxrule{.4\p@}
626 \renewcommand{\theequation}{\@arabic\c@equation}
627 \if@compatibility\else
628   \DeclareSymbolFont{mincho}{JY3}{mc}{m}{n}
629   \DeclareSymbolFontAlphabet{\mathmc}{mincho}
630   \SetSymbolFont{mincho}{bold}{JY3}{gt}{m}{n}
631   \jfam\symmincho
632   \DeclareMathAlphabet{\mathgt}{JY3}{gt}{m}{n}
633 \fi
634 \if@mathrmmc
635   \AtBeginDocument{%
636   \reDeclareMathAlphabet{\mathrm}{\mathrm}{\mathmc}
637   \reDeclareMathAlphabet{\mathbf}{\mathbf}{\mathgt}
638 }%
639 \fi
640 \DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
641 \DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
642 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
643 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
644 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
645 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
646 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
647 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
648 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
649 \DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
650 \DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
651 \setcounter{tocdepth}{3}
652 \newcommand{\@pnumwidth}{1.55em}
653 \newcommand{\@tocrmarg}{2.55em}
654 \newcommand{\@dotsep}{4.5}
655 \newdimen\toclineskip
656 \setlength\toclineskip{2\p@}
657 \newdimen\@lnumwidth
658 \def\numberline#1{\hbox to\@lnumwidth{#1\hfil}}
659 \def\@dottedtocline#1#2#3#4#5{%
660   \ifnum #1>\c@tocdepth \else
661     \vskip\toclineskip \@plus.2\p@
662     {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
663      \parindent #2\relax\@afterindenttrue
664      \interlinepenalty\@M
665      \leavevmode
666      \@lnumwidth #3\relax
667      \advance\leftskip \@lnumwidth \hbox{}\hskip -\leftskip
668      {#4}\nobreak
669      \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
670      \hfill\nobreak
671      \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
672      \par}%
673   \fi}
674 \def\addcontentsline#1#2#3{%
675   \protected@write\@auxout
676     {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
677 \@temptokena{\rensuji{\thepage}}}%
678     {\string\@writefile{#1}%
679        {\protect\contentsline{#2}{#3}{\the\@temptokena}}}%
680 }
681 \newcommand{\tableofcontents}{%
682   \section*{\contentsname
683     \@mkboth{\contentsname}{\contentsname}%
684   }\@starttoc{toc}%
685 }
686 \newcommand*{\l@part}[2]{%
687   \ifnum \c@tocdepth >-2\relax
688     \addpenalty{\@secpenalty}%
689     \addvspace{2.25em \@plus\p@}%
690     \begingroup
691     \parindent\z@\rightskip\@pnumwidth
692     \parfillskip-\@pnumwidth
693     {\leavevmode\large\bfseries
694      \setlength\@lnumwidth{4\zw}%
695      #1\hfil\nobreak
696      \hbox to\@pnumwidth{\hss#2}}\par
697     \nobreak
698     \if@compatibility
699     \global\@nobreaktrue
700     \everypar{\global\@nobreakfalse\everypar{}}%
701     \fi
702      \endgroup
703   \fi}
704 \newcommand*{\l@section}[2]{%
705   \ifnum \c@tocdepth >\z@
706     \addpenalty{\@secpenalty}%
707     \addvspace{1.0em \@plus\p@}%
708     \begingroup
709       \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
710       \leavevmode\bfseries
711       \setlength\@lnumwidth{1.5em}%
712       \advance\leftskip\@lnumwidth \hskip-\leftskip
713       #1\nobreak\hfil\nobreak\hbox to\@pnumwidth{\hss#2}\par
714     \endgroup
715   \fi}
716 \newcommand*{\l@subsection}   {\@dottedtocline{2}{1\zw}{4\zw}}
717 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{2\zw}{6\zw}}
718 \newcommand*{\l@paragraph}    {\@dottedtocline{4}{3\zw}{8\zw}}
719 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{4\zw}{9\zw}}
720 \newcommand{\listoffigures}{%
721     \section*{\listfigurename
722   \@mkboth{\listfigurename}{\listfigurename}}%
723   \@starttoc{lof}%
724 }
725 \newcommand*{\l@figure}{\@dottedtocline{1}{1\zw}{4\zw}}
726 \newcommand{\listoftables}{%
727     \section*{\listtablename
728   \@mkboth{\listtablename}{\listtablename}}%
729   \@starttoc{lot}%
730 }
731 \let\l@table\l@figure
732 \newdimen\bibindent
733 \setlength\bibindent{1.5em}
734 \newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
735 \newenvironment{thebibliography}[1]
736 {\section*{\refname\@mkboth{\refname}{\refname}}%
737    \list{\@biblabel{\@arabic\c@enumiv}}%
738         {\settowidth\labelwidth{\@biblabel{#1}}%
739          \leftmargin\labelwidth
740          \advance\leftmargin\labelsep
741          \@openbib@code
742          \usecounter{enumiv}%
743          \let\p@enumiv\@empty
744          \renewcommand\theenumiv{\@arabic\c@enumiv}}%
745    \sloppy
746    \clubpenalty4000
747    \@clubpenalty\clubpenalty
748    \widowpenalty4000%
749    \sfcode`\.\@m}
750   {\def\@noitemerr
751     {\@latex@warning{Empty `thebibliography' environment}}%
752    \endlist}
753 \let\@openbib@code\@empty
754 \newenvironment{theindex}
755   {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
756    \columnseprule\z@ \columnsep 35\p@
757    \twocolumn[\section*{\indexname}]%
758    \@mkboth{\indexname}{\indexname}%
759    \thispagestyle{jpl@in}\parindent\z@
760    \parskip\z@ \@plus .3\p@\relax
761    \let\item\@idxitem}
762   {\if@restonecol\onecolumn\else\clearpage\fi}
763 \newcommand{\@idxitem}{\par\hangindent 40\p@}
764 \newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
765 \newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
766 \newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
767 \renewcommand{\footnoterule}{%
768   \kern-3\p@
769   \hrule width .4\columnwidth
770   \kern 2.6\p@}
771 \newcommand\@makefntext[1]{\parindent 1\zw
772   \noindent\hbox to 2\zw{\hss\@makefnmark}#1}
773 \newif\if西暦 \西暦false
774 \def\西暦{\西暦true}
775 \def\和暦{\西暦false}
776 \newcount\heisei \heisei\year \advance\heisei-1988\relax
777 \def\today{{%
778   \iftdir
779     \if西暦
780       \kansuji\number\year 年
781       \kansuji\number\month 月
782       \kansuji\number\day 日
783     \else
784       平成\ifnum\heisei=1 元年\else\kansuji\number\heisei 年\fi
785       \kansuji\number\month 月
786       \kansuji\number\day 日
787     \fi
788   \else
789     \if西暦
790       \number\year~年
791       \number\month~月
792       \number\day~日
793     \else
794       平成\ifnum\heisei=1 元年\else\number\heisei~年\fi
795       \number\month~月
796       \number\day~日
797     \fi
798   \fi}}
799 \newcommand{\prepartname}{第}
800 \newcommand{\postpartname}{部}
801 \newcommand{\contentsname}{目 次}
802 \newcommand{\listfigurename}{図 目 次}
803 \newcommand{\listtablename}{表 目 次}
804 \newcommand{\refname}{参考文献}
805 \newcommand{\indexname}{索 引}
806 \newcommand{\figurename}{図}
807 \newcommand{\tablename}{表}
808 \newcommand{\appendixname}{付 録}
809 \newcommand{\abstractname}{概 要}
810 \pagestyle{plain}
811 \pagenumbering{arabic}
812 \raggedbottom
813 \if@twocolumn
814   \twocolumn
815   \sloppy
816 \else
817   \onecolumn
818 \fi
819 \normalmarginpar
820 \@mparswitchfalse
821 \endinput
822 %%
823 %% End of file `ltjtarticle.cls'.