OSDN Git Service

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