OSDN Git Service

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