OSDN Git Service

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