OSDN Git Service

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