OSDN Git Service

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