OSDN Git Service

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