OSDN Git Service

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