Advertisement
Guest User

Untitled

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