2 %% This is file `ltjreport.cls',
3 %% generated with the docstrip utility.
5 %% The original source files were:
7 %% ltjclasses.dtx (with options: `report,yoko')
11 %% For the copyright see the source file.
13 %% Any modified versions of this file must be renamed
14 %% with new filenames distinct from ltjreport.cls.
16 %% For distribution of the original source see the terms
17 %% for copying and modification in the file ltjclasses.dtx.
19 %% This generated file may be distributed as long as the
20 %% original source files, as listed above, are part of the
21 %% same distribution. (The sources need not necessarily be
22 %% in the same archive or directory.)
23 %% File: ltjclasses.dtx
24 \NeedsTeXFormat{LaTeX2e}
25 \ProvidesClass{ltjreport}
26 [2018/10/08 v1.8-ltj-16
27 Standard LuaLaTeX-ja class]
28 \RequirePackage{luatexja}
30 \newif\if@landscape \@landscapefalse
31 \newcommand{\@ptsize}{}
37 \hour\time \divide\hour by 60\relax
38 \@tempcnta\hour \multiply\@tempcnta 60\relax
39 \minute\time \advance\minute-\@tempcnta
40 \newif\if@stysize \@stysizefalse
41 \newif\if@mathrmmc \@mathrmmcfalse
42 \DeclareOption{a4paper}{\setcounter{@paper}{1}%
43 \setlength\paperheight {297mm}%
44 \setlength\paperwidth {210mm}}
45 \DeclareOption{a5paper}{\setcounter{@paper}{2}%
46 \setlength\paperheight {210mm}
47 \setlength\paperwidth {148mm}}
48 \DeclareOption{b4paper}{\setcounter{@paper}{3}%
49 \setlength\paperheight {364mm}
50 \setlength\paperwidth {257mm}}
51 \DeclareOption{b5paper}{\setcounter{@paper}{4}%
52 \setlength\paperheight {257mm}
53 \setlength\paperwidth {182mm}}
54 \DeclareOption{a4j}{\setcounter{@paper}{1}\@stysizetrue
55 \setlength\paperheight {297mm}%
56 \setlength\paperwidth {210mm}}
57 \DeclareOption{a5j}{\setcounter{@paper}{2}\@stysizetrue
58 \setlength\paperheight {210mm}
59 \setlength\paperwidth {148mm}}
60 \DeclareOption{b4j}{\setcounter{@paper}{3}\@stysizetrue
61 \setlength\paperheight {364mm}
62 \setlength\paperwidth {257mm}}
63 \DeclareOption{b5j}{\setcounter{@paper}{4}\@stysizetrue
64 \setlength\paperheight {257mm}
65 \setlength\paperwidth {182mm}}
66 \DeclareOption{a4p}{\setcounter{@paper}{1}\@stysizetrue
67 \setlength\paperheight {297mm}%
68 \setlength\paperwidth {210mm}}
69 \DeclareOption{a5p}{\setcounter{@paper}{2}\@stysizetrue
70 \setlength\paperheight {210mm}
71 \setlength\paperwidth {148mm}}
72 \DeclareOption{b4p}{\setcounter{@paper}{3}\@stysizetrue
73 \setlength\paperheight {364mm}
74 \setlength\paperwidth {257mm}}
75 \DeclareOption{b5p}{\setcounter{@paper}{4}\@stysizetrue
76 \setlength\paperheight {257mm}
77 \setlength\paperwidth {182mm}}
79 \renewcommand{\@ptsize}{0}
81 \DeclareOption{10pt}{\renewcommand{\@ptsize}{0}}
83 \DeclareOption{11pt}{\renewcommand{\@ptsize}{1}}
84 \DeclareOption{12pt}{\renewcommand{\@ptsize}{2}}
85 \DeclareOption{landscape}{\@landscapetrue
86 \setlength\@tempdima{\paperheight}%
87 \setlength\paperheight{\paperwidth}%
88 \setlength\paperwidth{\@tempdima}}
89 \DeclareOption{tombow}{%
90 \tombowtrue \tombowdatetrue
91 \setlength{\@tombowwidth}{.1\p@}%
93 \jobname\space(\number\year-\two@digits\month-\two@digits\day
94 \space\two@digits\hour:\two@digits\minute)}%
96 \DeclareOption{tombo}{%
97 \tombowtrue \tombowdatefalse
98 \setlength{\@tombowwidth}{.1\p@}%
100 \DeclareOption{mentuke}{%
101 \tombowtrue \tombowdatefalse
102 \setlength{\@tombowwidth}{\z@}%
104 \DeclareOption{tate}{%
105 \tate\AtBeginDocument{\message{《縦組モード》}\adjustbaseline}%
107 \DeclareOption{oneside}{\@twosidefalse}
108 \DeclareOption{twoside}{\@twosidetrue}
109 \DeclareOption{onecolumn}{\@twocolumnfalse}
110 \DeclareOption{twocolumn}{\@twocolumntrue}
111 \DeclareOption{titlepage}{\@titlepagetrue}
112 \DeclareOption{notitlepage}{\@titlepagefalse}
115 \DeclareOption{openright}{\@openrighttrue\@openleftfalse}
116 \DeclareOption{openleft}{\@openlefttrue\@openrightfalse}
117 \DeclareOption{openany}{\@openrightfalse\@openleftfalse}
119 \DeclareOption{leqno}{\input{leqno.clo}}
120 \DeclareOption{fleqn}{\input{fleqn.clo}}
121 \DeclareOption{openbib}{%
123 \renewcommand\@openbib@code{%
124 \advance\leftmargin\bibindent
125 \itemindent -\bibindent
126 \listparindent \itemindent
129 \renewcommand\newblock{\par}}}
133 \DeclareOption{mathrmmc}{\@mathrmmctrue}
135 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
136 \DeclareOption{final}{\setlength\overfullrule{0pt}}
137 \directlua{luatexbase.add_to_callback('luatexja.load_jfm',
138 function (ji, jn) ji.chars['parbdd'] = 0; return ji end,
139 'ltj.jclasses_load_jfm', 1)}
140 {\jfont\g=\ltj@stdmcfont:jfm=min } % loading jfm-min.lua
141 \expandafter\let\csname JY3/mc/m/n/10\endcsname\relax
142 \DeclareFontShape{JY3}{mc}{m}{n}{<-> s * [0.962216] \ltj@stdmcfont:jfm=min}{}
143 \DeclareFontShape{JY3}{gt}{m}{n}{<-> s * [0.962216] \ltj@stdgtfont:jfm=min;jfmvar=goth}{}
144 \ltjglobalsetparameter{differentjfm=both}
145 \directlua{luatexbase.remove_from_callback('luatexja.load_jfm', 'ltj.jclasses_load_jfm')}
146 \ExecuteOptions{a4paper,10pt,oneside,onecolumn,final,openany}
147 \ProcessOptions\relax
148 \input{ltjsize1\@ptsize.clo}
149 \def\Cjascale{0.962216}
151 \setlength\columnsep{2\Cwd}
153 \setlength\columnsep{10\p@}
155 \setlength\columnseprule{0\p@}
157 \newlength{\stockwidth}
158 \newlength{\stockheight}
159 \setlength{\stockwidth}{\paperwidth}
160 \setlength{\stockheight}{\paperheight}
161 \advance \stockwidth 2in
162 \advance \stockheight 2in
163 \ifdefined\pdfpagewidth
164 \setlength{\pdfpagewidth}{\stockwidth}
165 \setlength{\pdfpageheight}{\stockheight}
167 \setlength{\pagewidth}{\stockwidth}
168 \setlength{\pageheight}{\stockheight}
171 \ifdefined\pdfpagewidth
172 \setlength{\pdfpagewidth}{\paperwidth}
173 \setlength{\pdfpageheight}{\paperheight}
175 \setlength{\pagewidth}{\paperwidth}
176 \setlength{\pageheight}{\paperheight}
179 \setlength\lineskip{1\p@}
180 \setlength\normallineskip{1\p@}
181 \renewcommand{\baselinestretch}{}
182 \setlength\parskip{0\p@ \@plus \p@}
183 \setlength\parindent{1\Cwd}
187 \setcounter{topnumber}{2}
188 \setcounter{bottomnumber}{1}
189 \setcounter{totalnumber}{3}
190 \setcounter{dbltopnumber}{2}
191 \renewcommand{\topfraction}{.7}
192 \renewcommand{\bottomfraction}{.3}
193 \renewcommand{\textfraction}{.2}
194 \renewcommand{\floatpagefraction}{.5}
195 \renewcommand{\dbltopfraction}{.7}
196 \renewcommand{\dblfloatpagefraction}{.5}
197 \def\pltx@cleartorightpage{\clearpage\if@twoside
198 \unless\ifodd\numexpr\c@page+\ltjgetparameter{direction}\relax
199 \hbox{}\thispagestyle{empty}\newpage
200 \if@twocolumn\hbox{}\newpage\fi
202 \def\pltx@cleartoleftpage{\clearpage\if@twoside
203 \ifodd\numexpr\c@page+\ltjgetparameter{direction}\relax
204 \hbox{}\thispagestyle{empty}\newpage
205 \if@twocolumn\hbox{}\newpage\fi
207 \def\pltx@cleartooddpage{\clearpage\if@twoside
209 \hbox{}\thispagestyle{empty}\newpage
210 \if@twocolumn\hbox{}\newpage\fi
212 \def\pltx@cleartoevenpage{\clearpage\if@twoside
214 \hbox{}\thispagestyle{empty}\newpage
215 \if@twocolumn\hbox{}\newpage\fi
218 \let\cleardoublepage\pltx@cleartoleftpage
220 \let\cleardoublepage\pltx@cleartorightpage
222 \def\ps@plain{\let\@mkboth\@gobbletwo
223 \let\ps@jpl@in\ps@plain
225 \def\@oddfoot{\reset@font\hfil\thepage\hfil}%
226 \let\@evenhead\@empty
227 \let\@evenfoot\@oddfoot}
228 \let\ps@jpl@in\ps@plain
229 \def\ps@headnombre{\let\@mkboth\@gobbletwo
230 \let\ps@jpl@in\ps@headnombre
231 \def\@evenhead{\thepage\hfil}%
232 \def\@oddhead{\hfil\thepage}%
233 \let\@oddfoot\@empty\let\@evenfoot\@empty}
234 \def\ps@footnombre{\let\@mkboth\@gobbletwo
235 \let\ps@jpl@in\ps@footnombre
236 \def\@evenfoot{\thepage\hfil}%
237 \def\@oddfoot{\hfil\thepage}%
238 \let\@oddhead\@empty\let\@evenhead\@empty}
240 \def\ps@headings{\let\ps@jpl@in\ps@headnombre
241 \let\@oddfoot\@empty\let\@evenfoot\@empty
242 \def\@evenhead{\thepage\hfil\leftmark}%
243 \def\@oddhead{{\rightmark}\hfil\thepage}%
244 \let\@mkboth\markboth
245 \def\chaptermark##1{\markboth{%
246 \ifnum \c@secnumdepth >\m@ne
247 \@chapapp\thechapter\@chappos\hskip1\zw
250 \def\sectionmark##1{\markright{%
251 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
254 \else % if not twoside
255 \def\ps@headings{\let\ps@jpl@in\ps@headnombre
257 \def\@oddhead{{\rightmark}\hfil\thepage}%
258 \let\@mkboth\markboth
259 \def\chaptermark##1{\markright{%
260 \ifnum \c@secnumdepth >\m@ne
261 \@chapapp\thechapter\@chappos\hskip1\zw
267 \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
268 \def\@evenhead{\leftmark\hfil}% right page
269 \def\@evenfoot{\thepage\hfil}% right page
270 \def\@oddhead{\hfil\rightmark}% left page
271 \def\@oddfoot{\hfil\thepage}% left page
272 \let\@mkboth\markboth
273 \def\chaptermark##1{\markboth{%
274 \ifnum \c@secnumdepth >\m@ne
275 \@chapapp\thechapter\@chappos\hskip1\zw
278 \def\sectionmark##1{\markright{%
279 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
282 \else % if one column
283 \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
284 \def\@oddhead{\hfil\rightmark}%
285 \def\@oddfoot{\hfil\thepage}%
286 \let\@mkboth\markboth
287 \def\chaptermark##1{\markright{%
288 \ifnum \c@secnumdepth >\m@ne
289 \@chapapp\thechapter\@chappos\hskip1\zw
294 \def\ps@myheadings{\let\ps@jpl@in\ps@plain%
295 \let\@oddfoot\@empty\let\@evenfoot\@empty
296 \def\@evenhead{\thepage\hfil\leftmark}%
297 \def\@oddhead{{\rightmark}\hfil\thepage}%
298 \let\@mkboth\@gobbletwo
299 \let\chaptermark\@gobble
300 \let\sectionmark\@gobble
303 \newenvironment{titlepage}
305 \if@twocolumn\@restonecoltrue\onecolumn
306 \else\@restonecolfalse\newpage\fi
307 \thispagestyle{empty}%
310 {\if@restonecol\twocolumn\else\newpage\fi
313 \newenvironment{titlepage}
316 \@restonecoltrue\onecolumn
318 \@restonecolfalse\newpage
320 \thispagestyle{empty}%
321 \ifodd\c@page\setcounter{page}\@ne\else\setcounter{page}\z@\fi %% 2017/02/15
323 {\if@restonecol\twocolumn \else \newpage \fi
325 \setcounter{page}\@ne
329 \def\p@thanks#1{\footnotemark
330 \protected@xdef\@thanks{\@thanks
331 \protect{\noindent\hbox{\yoko$\m@th^\thefootnote$}#1\protect\par}}}
333 \newcommand{\maketitle}{\begin{titlepage}%
334 \let\footnotesize\small
335 \let\footnoterule\relax
340 {\LARGE \@title \par}%
344 \begin{tabular}[t]{c}%
348 {\large \@date \par}% % Set date in \large size.
352 \setcounter{footnote}{0}%
353 \global\let\thanks\relax
354 \global\let\maketitle\relax
355 \global\let\p@thanks\relax
356 \global\let\@thanks\@empty
357 \global\let\@author\@empty
358 \global\let\@date\@empty
359 \global\let\@title\@empty
360 \global\let\title\relax
361 \global\let\author\relax
362 \global\let\date\relax
363 \global\let\and\relax
366 \newcommand{\maketitle}{\par
368 \renewcommand{\thefootnote}{\fnsymbol{footnote}}%
369 \def\@makefnmark{\hbox{\unless\ifnum\ltjgetparameter{direction}=3 $\m@th^{\@thefnmark}$
370 \else\hbox{\yoko$\m@th^{\@thefnmark}$}\fi}}%
371 \long\def\@makefntext##1{\parindent 1em\noindent
372 \hb@xt@1.8em{\hss$\m@th^{\@thefnmark}$}##1}%
374 \ifnum \col@number=\@ne \@maketitle
375 \else \twocolumn[\@maketitle]%
379 \global\@topnum\z@ % Prevents figures from going at top of page.
382 \thispagestyle{jpl@in}\@thanks
384 \setcounter{footnote}{0}%
385 \global\let\thanks\relax
386 \global\let\maketitle\relax
387 \global\let\@maketitle\relax
388 \global\let\p@thanks\relax
389 \global\let\@thanks\@empty
390 \global\let\@author\@empty
391 \global\let\@date\@empty
392 \global\let\@title\@empty
393 \global\let\title\relax
394 \global\let\author\relax
395 \global\let\date\relax
396 \global\let\and\relax
403 {\LARGE \@title \par}%
407 \begin{tabular}[t]{c}%
416 \newenvironment{abstract}{%
419 \@beginparpenalty\@lowpenalty
421 {\bfseries\abstractname}%
424 {\par\vfil\null\endtitlepage}
426 \newenvironment{abstract}{%
428 \section*{\abstractname}%
432 {\bfseries\abstractname\vspace{-.5em}\vspace{\z@}}%
435 \fi}{\if@twocolumn\else\endquotation\fi}
437 \newcommand*{\chaptermark}[1]{}
438 \setcounter{secnumdepth}{2}
441 \newcounter{section}[chapter]
442 \newcounter{subsection}[section]
443 \newcounter{subsubsection}[subsection]
444 \newcounter{paragraph}[subsubsection]
445 \newcounter{subparagraph}[paragraph]
446 \renewcommand{\thepart}{\@Roman\c@part}
447 \renewcommand{\thechapter}{\@arabic\c@chapter}
448 \renewcommand{\thesection}{\thechapter.\@arabic\c@section}
449 \renewcommand{\thesubsection}{\thesection.\@arabic\c@subsection}
450 \renewcommand{\thesubsubsection}{%
451 \thesubsection.\@arabic\c@subsubsection}
452 \renewcommand{\theparagraph}{%
453 \thesubsubsection.\@arabic\c@paragraph}
454 \renewcommand{\thesubparagraph}{%
455 \theparagraph.\@arabic\c@subparagraph}
456 \newcommand{\@chapapp}{\prechaptername}
457 \newcommand{\@chappos}{\postchaptername}
459 \if@openleft \cleardoublepage \else
460 \if@openright \cleardoublepage \else \clearpage \fi \fi
461 \thispagestyle{empty}%
462 \if@twocolumn\onecolumn\@tempswatrue\else\@tempswafalse\fi
464 \secdef\@part\@spart}
466 \ifnum \c@secnumdepth >-2\relax
467 \refstepcounter{part}%
468 \addcontentsline{toc}{part}{%
469 \prepartname\thepart\postpartname\hspace{1em}#1}%
471 \addcontentsline{toc}{part}{#1}%
475 \interlinepenalty\@M\normalfont
476 \ifnum \c@secnumdepth >-2\relax
477 \huge\bfseries\prepartname\thepart\postpartname
480 \Huge\bfseries#2\par}%
484 \interlinepenalty\@M\normalfont
485 \Huge\bfseries#1\par}%
487 \def\@endpart{\vfil\newpage
489 \if@openleft %% \if@openleft added (2017/02/15)
490 \null\thispagestyle{empty}\newpage
491 \else\if@openright %% \if@openright added (2016/12/18)
492 \null\thispagestyle{empty}\newpage
493 \fi\fi %% added (2016/12/18, 2017/02/15)
495 \if@tempswa\twocolumn\fi}
496 \newcommand{\chapter}{%
497 \if@openleft \cleardoublepage \else
498 \if@openright \cleardoublepage \else \clearpage \fi \fi
499 \thispagestyle{jpl@in}%
502 \secdef\@chapter\@schapter}
503 \def\@chapter[#1]#2{%
504 \ifnum \c@secnumdepth >\m@ne
505 \refstepcounter{chapter}%
506 \typeout{\@chapapp\space\thechapter\space\@chappos}%
507 \addcontentsline{toc}{chapter}%
508 {\protect\numberline{\@chapapp\thechapter\@chappos}#1}%
510 \addcontentsline{toc}{chapter}{#1}%
513 \addtocontents{lof}{\protect\addvspace{10\p@}}%
514 \addtocontents{lot}{\protect\addvspace{10\p@}}%
515 \@makechapterhead{#2}\@afterheading}
516 \def\@makechapterhead#1{\hbox{}%
520 \normalfont\huge\bfseries
522 \ifnum \c@secnumdepth >\m@ne
523 \setlength\@tempdima{\linewidth}%
524 \setbox\z@\hbox{\@chapapp\thechapter\@chappos\hskip1\zw}%
525 \addtolength\@tempdima{-\wd\z@}%
527 \vtop{\hsize\@tempdima#1}%
530 \fi}\nobreak\vskip3\Cvs}
532 \@makeschapterhead{#1}\@afterheading
534 \def\@makeschapterhead#1{\hbox{}%
538 \normalfont\huge\bfseries
540 \setlength\@tempdima{\linewidth}%
541 \vtop{\hsize\@tempdima#1}}\vskip3\Cvs}
542 \newcommand{\section}{\@startsection{section}{1}{\z@}%
543 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
544 {.5\Cvs \@plus.3\Cvs}%
545 {\normalfont\Large\bfseries}}
546 \newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
547 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
548 {.5\Cvs \@plus.3\Cvs}%
549 {\normalfont\large\bfseries}}
550 \newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
551 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
552 {.5\Cvs \@plus.3\Cvs}%
553 {\normalfont\normalsize\bfseries}}
554 \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
555 {3.25ex \@plus 1ex \@minus .2ex}%
557 {\normalfont\normalsize\bfseries}}
558 \newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
559 {3.25ex \@plus 1ex \@minus .2ex}%
561 {\normalfont\normalsize\bfseries}}
562 \newcommand{\appendix}{\par
563 \setcounter{chapter}{0}%
564 \setcounter{section}{0}%
565 \renewcommand{\@chapapp}{\appendixname}%
566 \renewcommand{\@chappos}\space%
567 \renewcommand{\thechapter}{\@Alph\c@chapter}}
569 \setlength\leftmargini {2em}
571 \setlength\leftmargini {2.5em}
573 \setlength\leftmarginii {2.2em}
574 \setlength\leftmarginiii {1.87em}
575 \setlength\leftmarginiv {1.7em}
577 \setlength\leftmarginv {.5em}
578 \setlength\leftmarginvi{.5em}
580 \setlength\leftmarginv {1em}
581 \setlength\leftmarginvi{1em}
583 \setlength \labelsep {.5em}
584 \setlength \labelwidth{\leftmargini}
585 \addtolength\labelwidth{-\labelsep}
586 \@beginparpenalty -\@lowpenalty
587 \@endparpenalty -\@lowpenalty
588 \@itempenalty -\@lowpenalty
589 \renewcommand{\theenumi}{\@arabic\c@enumi}
590 \renewcommand{\theenumii}{\@alph\c@enumii}
591 \renewcommand{\theenumiii}{\@roman\c@enumiii}
592 \renewcommand{\theenumiv}{\@Alph\c@enumiv}
593 \newcommand{\labelenumi}{\theenumi.}
594 \newcommand{\labelenumii}{(\theenumii)}
595 \newcommand{\labelenumiii}{\theenumiii.}
596 \newcommand{\labelenumiv}{\theenumiv.}
597 \renewcommand{\p@enumii}{\theenumi}
598 \renewcommand{\p@enumiii}{\theenumi(\theenumii)}
599 \renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
600 \renewenvironment{enumerate}
601 {\ifnum \@enumdepth >\thr@@\@toodeep\else
602 \advance\@enumdepth\@ne
603 \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
604 \expandafter \list \csname label\@enumctr\endcsname{%
605 \ifnum\ltjgetparameter{direction}=3
606 \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
608 \parskip\z@ \itemsep\z@ \parsep\z@
609 \labelwidth1\zw \labelsep.3\zw
610 \ifnum \@enumdepth=\@ne \leftmargin1\zw\relax
611 \else\leftmargin\leftskip\fi
612 \advance\leftmargin 1\zw
614 \usecounter{\@enumctr}%
615 \def\makelabel##1{\hss\llap{##1}}}%
617 \newcommand{\labelitemi}{\textbullet}
618 \newcommand{\labelitemii}{%
619 \ifnum\ltjgetparameter{direction}=3
622 {\normalfont\bfseries\textendash}
625 \newcommand{\labelitemiii}{\textasteriskcentered}
626 \newcommand{\labelitemiv}{\textperiodcentered}
627 \renewenvironment{itemize}
628 {\ifnum \@itemdepth >\thr@@\@toodeep\else
629 \advance\@itemdepth\@ne
630 \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
631 \expandafter \list \csname \@itemitem\endcsname{%
632 \ifnum\ltjgetparameter{direction}=3
633 \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
635 \parskip\z@ \itemsep\z@ \parsep\z@
636 \labelwidth1\zw \labelsep.3\zw
637 \ifnum \@itemdepth =\@ne \leftmargin1\zw\relax
638 \else\leftmargin\leftskip\fi
639 \advance\leftmargin 1\zw
641 \def\makelabel##1{\hss\llap{##1}}}%
643 \newenvironment{description}
644 {\list{}{\labelwidth\z@ \itemindent-\leftmargin
645 \ifnum\ltjgetparameter{direction}=3
646 \leftmargin\leftskip \advance\leftmargin3\Cwd
647 \rightmargin\rightskip
648 \labelsep=1\zw \itemsep\z@
649 \listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@
651 \let\makelabel\descriptionlabel}}{\endlist}
652 \newcommand{\descriptionlabel}[1]{%
653 \hspace\labelsep\normalfont\bfseries #1}
654 \newenvironment{verse}
656 \list{}{\itemsep\z@ \itemindent -1.5em%
657 \listparindent\itemindent
658 \rightmargin\leftmargin \advance\leftmargin 1.5em}%
659 \item\relax}{\endlist}
660 \newenvironment{quotation}
661 {\list{}{\listparindent 1.5em%
662 \itemindent\listparindent
663 \rightmargin\leftmargin
664 \parsep\z@ \@plus\p@}%
665 \item\relax}{\endlist}
666 \newenvironment{quote}
667 {\list{}{\rightmargin\leftmargin}%
668 \item\relax}{\endlist}
669 \newcounter{figure}[chapter]
670 \renewcommand{\thefigure}{%
671 \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@figure}
675 \def\fnum@figure{\figurename~\thefigure}
676 \newenvironment{figure}
679 \newenvironment{figure*}
682 \newcounter{table}[chapter]
683 \renewcommand{\thetable}{%
684 \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@table}
688 \def\fnum@table{\tablename~\thetable}
689 \newenvironment{table}
692 \newenvironment{table*}
695 \newlength\abovecaptionskip
696 \newlength\belowcaptionskip
697 \setlength\abovecaptionskip{10\p@}
698 \setlength\belowcaptionskip{0\p@}
699 \long\def\@makecaption#1#2{%
700 \vskip\abovecaptionskip
701 \ifnum\ltjgetparameter{direction}=3 \sbox\@tempboxa{#1\hskip1\zw#2}%
702 \else\sbox\@tempboxa{#1: #2}%
704 \ifdim \wd\@tempboxa >\hsize
705 \ifnum\ltjgetparameter{direction}=3 #1\hskip1\zw#2\relax\par
706 \else #1: #2\relax\par\fi
708 \global \@minipagefalse
709 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
711 \vskip\belowcaptionskip}
712 \setlength\arraycolsep{5\p@}
713 \setlength\tabcolsep{6\p@}
714 \setlength\arrayrulewidth{.4\p@}
715 \setlength\doublerulesep{2\p@}
716 \setlength\tabbingsep{\labelsep}
717 \skip\@mpfootins = \skip\footins
718 \setlength\fboxsep{3\p@}
719 \setlength\fboxrule{.4\p@}
720 \@addtoreset{equation}{chapter}
721 \renewcommand{\theequation}{%
722 \ifnum\c@chapter>\z@\thechapter.\fi \@arabic\c@equation}
723 \unless\ifltj@disablejfam
724 \if@compatibility\else
725 \DeclareSymbolFont{mincho}{JY3}{mc}{m}{n}
726 \DeclareSymbolFontAlphabet{\mathmc}{mincho}
727 \SetSymbolFont{mincho}{bold}{JY3}{gt}{m}{n}
729 \DeclareMathAlphabet{\mathgt}{JY3}{gt}{m}{n}
733 \reDeclareMathAlphabet{\mathrm}{\mathrm}{\mathmc}
734 \reDeclareMathAlphabet{\mathbf}{\mathbf}{\mathgt}
738 \DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
739 \DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
740 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
741 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
742 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
743 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
744 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
745 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
746 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
747 \DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
748 \DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
749 \setcounter{tocdepth}{2}
750 \newcommand{\@pnumwidth}{1.55em}
751 \newcommand{\@tocrmarg}{2.55em}
752 \newcommand{\@dotsep}{4.5}
753 \newdimen\toclineskip
754 \setlength\toclineskip{\z@}
756 \def\numberline#1{\hb@xt@\@lnumwidth{#1\hfil}}
757 \def\@dottedtocline#1#2#3#4#5{%
758 \ifnum #1>\c@tocdepth \else
759 \vskip\toclineskip \@plus.2\p@
760 {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
761 \parindent #2\relax\@afterindenttrue
765 \advance\leftskip \@lnumwidth \null\nobreak\hskip -\leftskip
767 \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
769 \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
772 \providecommand*\protected@file@percent{}
773 \def\addcontentsline#1#2#3{%
774 \protected@write\@auxout
775 {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
776 \@temptokena{\thepage}}%
777 {\string\@writefile{#1}%
778 {\protect\contentsline{#2}{#3}{\the\@temptokena}%
779 \protected@file@percent}}%
781 \newcommand{\tableofcontents}{%
782 \if@twocolumn\@restonecoltrue\onecolumn
783 \else\@restonecolfalse\fi
784 \chapter*{\contentsname
785 \@mkboth{\contentsname}{\contentsname}%
787 \if@restonecol\twocolumn\fi
789 \newcommand*{\l@part}[2]{%
790 \ifnum \c@tocdepth >-2\relax
791 \addpenalty{-\@highpenalty}%
792 \addvspace{2.25em \@plus\p@}%
794 \parindent\z@\rightskip\@pnumwidth
795 \parfillskip-\@pnumwidth
796 {\leavevmode\large\bfseries
797 \setlength\@lnumwidth{4\zw}%
799 \hb@xt@\@pnumwidth{\hss#2}}\par
802 \everypar{\global\@nobreakfalse\everypar{}}%
805 \newcommand*{\l@chapter}[2]{%
806 \ifnum \c@tocdepth >\m@ne
807 \addpenalty{-\@highpenalty}%
808 \addvspace{1.0em \@plus\p@}%
810 \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
812 \setlength\@lnumwidth{4\zw}%
813 \advance\leftskip\@lnumwidth \hskip-\leftskip
814 #1\nobreak\hfil\nobreak\hb@xt@\@pnumwidth{\hss#2}\par
815 \penalty\@highpenalty
818 \newcommand*{\l@section}{\@dottedtocline{1}{1.5em}{2.3em}}
819 \newcommand*{\l@subsection} {\@dottedtocline{2}{3.8em}{3.2em}}
820 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{7.0em}{4.1em}}
821 \newcommand*{\l@paragraph} {\@dottedtocline{4}{10em}{5em}}
822 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{12em}{6em}}
823 \newcommand{\listoffigures}{%
824 \if@twocolumn\@restonecoltrue\onecolumn
825 \else\@restonecolfalse\fi
826 \chapter*{\listfigurename}%
827 \@mkboth{\listfigurename}{\listfigurename}%
829 \if@restonecol\twocolumn\fi
831 \newcommand*{\l@figure}{\@dottedtocline{1}{1.5em}{2.3em}}
832 \newcommand{\listoftables}{%
833 \if@twocolumn\@restonecoltrue\onecolumn
834 \else\@restonecolfalse\fi
835 \chapter*{\listtablename}%
836 \@mkboth{\listtablename}{\listtablename}%
838 \if@restonecol\twocolumn\fi
840 \let\l@table\l@figure
842 \setlength\bibindent{1.5em}
843 \newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
844 \newenvironment{thebibliography}[1]
845 {\chapter*{\bibname}\@mkboth{\bibname}{\bibname}%
846 \list{\@biblabel{\@arabic\c@enumiv}}%
847 {\settowidth\labelwidth{\@biblabel{#1}}%
848 \leftmargin\labelwidth
849 \advance\leftmargin\labelsep
853 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
856 \@clubpenalty\clubpenalty
860 {\@latex@warning{Empty `thebibliography' environment}}%
862 \let\@openbib@code\@empty
863 \newenvironment{theindex}
864 {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
865 \twocolumn[\@makeschapterhead{\indexname}]%
866 \@mkboth{\indexname}{\indexname}%
867 \thispagestyle{jpl@in}\parindent\z@
868 \parskip\z@ \@plus .3\p@\relax
869 \columnseprule\z@ \columnsep 35\p@
871 {\if@restonecol\onecolumn\else\clearpage\fi}
872 \newcommand{\@idxitem}{\par\hangindent 40\p@}
873 \newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
874 \newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
875 \newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
876 \renewcommand{\footnoterule}{%
878 \hrule\@width.4\columnwidth
880 \@addtoreset{footnote}{chapter}
881 \newcommand\@makefntext[1]{\parindent 1em
882 \noindent\hb@xt@ 1.8em{\hss\@makefnmark}#1}
886 \def\pltx@today@year@#1{%
887 \ifnum\numexpr\year-#1=1 元\else
888 \ifnum\ltjgetparameter{direction}=3 \kansuji\numexpr\year-#1\relax
889 \else \number\numexpr\year-#1\relax\nobreak\fi
892 \def\pltx@today@year{%
893 \ifnum\numexpr\year*10000+\month*100+\day<19890108
894 昭和\pltx@today@year@{1925}%
895 \else\ifnum\numexpr\year*10000+\month*100+\day<20190501
896 平成\pltx@today@year@{1988}%
898 令和\pltx@today@year@{2018}%
902 \ifnum\ltjgetparameter{direction}=3 \kansuji\year
903 \else\number\year\nobreak\fi 年
907 \ifnum\ltjgetparameter{direction}=3
911 \number\month\nobreak 月
912 \number\day\nobreak 日
914 \newcommand{\prepartname}{第}
915 \newcommand{\postpartname}{部}
916 \newcommand{\prechaptername}{第}
917 \newcommand{\postchaptername}{章}
918 \newcommand{\contentsname}{目 次}
919 \newcommand{\listfigurename}{図 目 次}
920 \newcommand{\listtablename}{表 目 次}
921 \newcommand{\bibname}{関連図書}
922 \newcommand{\indexname}{索 引}
923 \newcommand{\figurename}{図}
924 \newcommand{\tablename}{表}
925 \newcommand{\appendixname}{付 録}
926 \newcommand{\abstractname}{概 要}
928 \pagenumbering{arabic}
930 \fnfixbottomtrue % 2017-02-19
931 \IfFileExists{stfloats.sty}{\RequirePackage{stfloats}\fnbelowfloat}{}
943 \AtBeginOfPackageFile*{ftnright}{\let\ltjt@orig@@makefntext=\@makefntext}
944 \AtEndOfPackageFile*{ftnright}{\let\@makefntext=\ltjt@orig@@makefntext}
947 %% End of file `ltjreport.cls'.