pandoc2review 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/pandoc.yml +18 -0
  3. data/.gitignore +47 -0
  4. data/Gemfile +6 -0
  5. data/LICENSE +339 -0
  6. data/README.md +105 -0
  7. data/Rakefile +13 -0
  8. data/exe/pandoc2review +12 -0
  9. data/lib/pandoc2review.rb +99 -0
  10. data/lua/filters.lua +163 -0
  11. data/lua/review.lua +620 -0
  12. data/markdown-format.ja.md +721 -0
  13. data/pandoc2review.gemspec +29 -0
  14. data/samples/format.md +276 -0
  15. data/samples/reviewsample/.gitignore +154 -0
  16. data/samples/reviewsample/Gemfile +4 -0
  17. data/samples/reviewsample/Rakefile +3 -0
  18. data/samples/reviewsample/catalog.yml +10 -0
  19. data/samples/reviewsample/ch01.md +38 -0
  20. data/samples/reviewsample/ch02.re +3 -0
  21. data/samples/reviewsample/config-ebook.yml +6 -0
  22. data/samples/reviewsample/config.yml +20 -0
  23. data/samples/reviewsample/images/cover-a5.ai +5836 -16
  24. data/samples/reviewsample/images/cover.jpg +0 -0
  25. data/samples/reviewsample/images/pandoc2review.png +0 -0
  26. data/samples/reviewsample/lib/tasks/review.rake +128 -0
  27. data/samples/reviewsample/lib/tasks/z01_pandoc2review.rake +69 -0
  28. data/samples/reviewsample/sty/README.md +168 -0
  29. data/samples/reviewsample/sty/gentombow.sty +769 -0
  30. data/samples/reviewsample/sty/jsbook.cls +2072 -0
  31. data/samples/reviewsample/sty/jumoline.sty +310 -0
  32. data/samples/reviewsample/sty/plistings.sty +326 -0
  33. data/samples/reviewsample/sty/review-base.sty +530 -0
  34. data/samples/reviewsample/sty/review-custom.sty +1 -0
  35. data/samples/reviewsample/sty/review-jsbook.cls +503 -0
  36. data/samples/reviewsample/sty/review-style.sty +49 -0
  37. data/samples/reviewsample/sty/reviewmacro.sty +15 -0
  38. data/samples/reviewsample/style.css +494 -0
  39. metadata +128 -0
@@ -0,0 +1,2072 @@
1
+ %%
2
+ %% This is file `jsbook.cls',
3
+ %% generated with the docstrip utility.
4
+ %%
5
+ %% The original source files were:
6
+ %%
7
+ %% jsclasses.dtx (with options: `class,book')
8
+ %%
9
+ %% Maintained on GitHub: https://github.com/texjporg/jsclasses
10
+ %%
11
+ \ifx\epTeXinputencoding\undefined\else
12
+ \epTeXinputencoding utf8 % ^^A added (2017-10-04)
13
+ \fi
14
+ \NeedsTeXFormat{pLaTeX2e}
15
+ \ProvidesClass{jsbook}
16
+ [2020/10/09 jsclasses (okumura, texjporg)]
17
+ \def\jsc@clsname{jsbook}
18
+ \newif\ifjsc@needsp@tch
19
+ \jsc@needsp@tchfalse
20
+ \newif\if@restonecol
21
+ \newif\if@titlepage
22
+ \newif\if@openright
23
+ \newif\if@openleft
24
+ \newif\if@mainmatter \@mainmattertrue
25
+ \newif\if@enablejfam \@enablejfamtrue
26
+ \DeclareOption{a3paper}{%
27
+ \setlength\paperheight {420mm}%
28
+ \setlength\paperwidth {297mm}}
29
+ \DeclareOption{a4paper}{%
30
+ \setlength\paperheight {297mm}%
31
+ \setlength\paperwidth {210mm}}
32
+ \DeclareOption{a5paper}{%
33
+ \setlength\paperheight {210mm}%
34
+ \setlength\paperwidth {148mm}}
35
+ \DeclareOption{a6paper}{%
36
+ \setlength\paperheight {148mm}%
37
+ \setlength\paperwidth {105mm}}
38
+ \DeclareOption{b4paper}{%
39
+ \setlength\paperheight {364mm}%
40
+ \setlength\paperwidth {257mm}}
41
+ \DeclareOption{b5paper}{%
42
+ \setlength\paperheight {257mm}%
43
+ \setlength\paperwidth {182mm}}
44
+ \DeclareOption{b6paper}{%
45
+ \setlength\paperheight {182mm}%
46
+ \setlength\paperwidth {128mm}}
47
+ \DeclareOption{a4j}{%
48
+ \setlength\paperheight {297mm}%
49
+ \setlength\paperwidth {210mm}}
50
+ \DeclareOption{a5j}{%
51
+ \setlength\paperheight {210mm}%
52
+ \setlength\paperwidth {148mm}}
53
+ \DeclareOption{b4j}{%
54
+ \setlength\paperheight {364mm}%
55
+ \setlength\paperwidth {257mm}}
56
+ \DeclareOption{b5j}{%
57
+ \setlength\paperheight {257mm}%
58
+ \setlength\paperwidth {182mm}}
59
+ \DeclareOption{a4var}{%
60
+ \setlength\paperheight {283mm}%
61
+ \setlength\paperwidth {210mm}}
62
+ \DeclareOption{b5var}{%
63
+ \setlength\paperheight {230mm}%
64
+ \setlength\paperwidth {182mm}}
65
+ \DeclareOption{letterpaper}{%
66
+ \setlength\paperheight {11in}%
67
+ \setlength\paperwidth {8.5in}}
68
+ \DeclareOption{legalpaper}{%
69
+ \setlength\paperheight {14in}%
70
+ \setlength\paperwidth {8.5in}}
71
+ \DeclareOption{executivepaper}{%
72
+ \setlength\paperheight {10.5in}%
73
+ \setlength\paperwidth {7.25in}}
74
+ \newif\if@landscape
75
+ \@landscapefalse
76
+ \DeclareOption{landscape}{\@landscapetrue}
77
+ \newif\if@slide
78
+ \@slidefalse
79
+ \newcommand{\@ptsize}{0}
80
+ \newif\ifjsc@mag\jsc@magtrue
81
+ \newif\ifjsc@mag@xreal\jsc@mag@xrealfalse
82
+ \def\jsc@magscale{1}
83
+ \DeclareOption{8pt}{\def\jsc@magscale{0.833}\renewcommand{\@ptsize}{-2}}
84
+ \DeclareOption{9pt}{\def\jsc@magscale{0.913}\renewcommand{\@ptsize}{-1}}
85
+ \DeclareOption{10pt}{\def\jsc@magscale{1}\renewcommand{\@ptsize}{0}}
86
+ \DeclareOption{11pt}{\def\jsc@magscale{1.095}\renewcommand{\@ptsize}{1}}
87
+ \DeclareOption{12pt}{\def\jsc@magscale{1.200}\renewcommand{\@ptsize}{2}}
88
+ \DeclareOption{14pt}{\def\jsc@magscale{1.440}\renewcommand{\@ptsize}{4}}
89
+ \DeclareOption{17pt}{\def\jsc@magscale{1.728}\renewcommand{\@ptsize}{7}}
90
+ \DeclareOption{20pt}{\def\jsc@magscale{2}\renewcommand{\@ptsize}{10}}
91
+ \DeclareOption{21pt}{\def\jsc@magscale{2.074}\renewcommand{\@ptsize}{11}}
92
+ \DeclareOption{25pt}{\def\jsc@magscale{2.488}\renewcommand{\@ptsize}{15}}
93
+ \DeclareOption{30pt}{\def\jsc@magscale{2.986}\renewcommand{\@ptsize}{20}}
94
+ \DeclareOption{36pt}{\def\jsc@magscale{3.583}\renewcommand{\@ptsize}{26}}
95
+ \DeclareOption{43pt}{\def\jsc@magscale{4.300}\renewcommand{\@ptsize}{33}}
96
+ \DeclareOption{12Q}{\def\jsc@magscale{0.923}\renewcommand{\@ptsize}{1200}}
97
+ \DeclareOption{14Q}{\def\jsc@magscale{1.077}\renewcommand{\@ptsize}{1400}}
98
+ \DeclareOption{10ptj}{\def\jsc@magscale{1.085}\renewcommand{\@ptsize}{1001}}
99
+ \DeclareOption{10.5ptj}{\def\jsc@magscale{1.139}\renewcommand{\@ptsize}{1051}}
100
+ \DeclareOption{11ptj}{\def\jsc@magscale{1.194}\renewcommand{\@ptsize}{1101}}
101
+ \DeclareOption{12ptj}{\def\jsc@magscale{1.302}\renewcommand{\@ptsize}{1201}}
102
+ \DeclareOption{usemag}{\jsc@magtrue\jsc@mag@xrealfalse}
103
+ \DeclareOption{nomag}{\jsc@magfalse\jsc@mag@xrealfalse}
104
+ \DeclareOption{nomag*}{\jsc@magfalse\jsc@mag@xrealtrue}
105
+ \hour\time \divide\hour by 60\relax
106
+ \@tempcnta\hour \multiply\@tempcnta 60\relax
107
+ \minute\time \advance\minute-\@tempcnta
108
+ \DeclareOption{tombow}{%
109
+ \tombowtrue \tombowdatetrue
110
+ \setlength{\@tombowwidth}{.1\p@}%
111
+ \@bannertoken{%
112
+ \jobname\space(\number\year-\two@digits\month-\two@digits\day
113
+ \space\two@digits\hour:\two@digits\minute)}%
114
+ \maketombowbox}
115
+ \DeclareOption{tombo}{%
116
+ \tombowtrue \tombowdatefalse
117
+ \setlength{\@tombowwidth}{.1\p@}%
118
+ \maketombowbox}
119
+ \DeclareOption{mentuke}{%
120
+ \tombowtrue \tombowdatefalse
121
+ \setlength{\@tombowwidth}{\z@}%
122
+ \maketombowbox}
123
+ \DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
124
+ \DeclareOption{twoside}{\@twosidetrue \@mparswitchtrue}
125
+ \DeclareOption{vartwoside}{\@twosidetrue \@mparswitchfalse}
126
+ \DeclareOption{onecolumn}{\@twocolumnfalse}
127
+ \DeclareOption{twocolumn}{\@twocolumntrue}
128
+ \DeclareOption{titlepage}{\@titlepagetrue}
129
+ \DeclareOption{notitlepage}{\@titlepagefalse}
130
+ \DeclareOption{openright}{\@openrighttrue\@openleftfalse}
131
+ \DeclareOption{openleft}{\@openlefttrue\@openrightfalse}
132
+ \DeclareOption{openany}{\@openrightfalse\@openleftfalse}
133
+ \def\eqnarray{%
134
+ \stepcounter{equation}%
135
+ \def\@currentlabel{\p@equation\theequation}%
136
+ \global\@eqnswtrue
137
+ \m@th
138
+ \global\@eqcnt\z@
139
+ \tabskip\@centering
140
+ \let\\\@eqncr
141
+ $$\everycr{}\halign to\displaywidth\bgroup
142
+ \hskip\@centering$\displaystyle\tabskip\z@skip{##}$\@eqnsel
143
+ &\global\@eqcnt\@ne \hfil$\displaystyle{{}##{}}$\hfil
144
+ &\global\@eqcnt\tw@ $\displaystyle{##}$\hfil\tabskip\@centering
145
+ &\global\@eqcnt\thr@@ \hb@xt@\z@\bgroup\hss##\egroup
146
+ \tabskip\z@skip
147
+ \cr}
148
+ \DeclareOption{leqno}{\input{leqno.clo}}
149
+ \DeclareOption{fleqn}{\input{fleqn.clo}%
150
+ \def\eqnarray{%
151
+ \stepcounter{equation}%
152
+ \def\@currentlabel{\p@equation\theequation}%
153
+ \global\@eqnswtrue\m@th
154
+ \global\@eqcnt\z@
155
+ \tabskip\mathindent
156
+ \let\\=\@eqncr
157
+ \setlength\abovedisplayskip{\topsep}%
158
+ \ifvmode
159
+ \addtolength\abovedisplayskip{\partopsep}%
160
+ \fi
161
+ \addtolength\abovedisplayskip{\parskip}%
162
+ \setlength\belowdisplayskip{\abovedisplayskip}%
163
+ \setlength\belowdisplayshortskip{\abovedisplayskip}%
164
+ \setlength\abovedisplayshortskip{\abovedisplayskip}%
165
+ $$\everycr{}\halign to\linewidth% $$
166
+ \bgroup
167
+ \hskip\@centering$\displaystyle\tabskip\z@skip{##}$\@eqnsel
168
+ &\global\@eqcnt\@ne \hfil$\displaystyle{{}##{}}$\hfil
169
+ &\global\@eqcnt\tw@
170
+ $\displaystyle{##}$\hfil \tabskip\@centering
171
+ &\global\@eqcnt\thr@@ \hb@xt@\z@\bgroup\hss##\egroup
172
+ \tabskip\z@skip\cr
173
+ }}
174
+ \DeclareOption{disablejfam}{\@enablejfamfalse}
175
+ \DeclareOption{draft}{\setlength\overfullrule{5pt}}
176
+ \DeclareOption{final}{\setlength\overfullrule{0pt}}
177
+ \newif\ifmingoth
178
+ \mingothfalse
179
+ \newif\ifjisfont
180
+ \jisfontfalse
181
+ \newif\if@jsc@uplatex
182
+ \@jsc@uplatexfalse
183
+ \newif\if@jsc@autodetect
184
+ \@jsc@autodetectfalse
185
+ \DeclareOption{winjis}{%
186
+ \ClassWarningNoLine{\jsc@clsname}{%
187
+ The option `winjis' has been removed;\MessageBreak
188
+ Use `\string\usepackage{winjis}' instead}}
189
+ \DeclareOption{mingoth}{\mingothtrue}
190
+ \DeclareOption{jis}{\jisfonttrue}
191
+ \DeclareOption{uplatex}{\@jsc@uplatextrue}
192
+ \DeclareOption{autodetect-engine}{\@jsc@autodetecttrue}
193
+ \def\jsc@JYn{\if@jsc@uplatex JY2\else JY1\fi}
194
+ \def\jsc@JTn{\if@jsc@uplatex JT2\else JT1\fi}
195
+ \def\jsc@pfx@{\if@jsc@uplatex u\else \fi}
196
+ \newif\ifpapersize
197
+ \papersizefalse
198
+ \DeclareOption{papersize}{\papersizetrue}
199
+ \newif\if@english
200
+ \@englishfalse
201
+ \DeclareOption{english}{\@englishtrue}
202
+ \newif\if@report
203
+ \@reportfalse
204
+ \DeclareOption{report}{\@reporttrue\@openrightfalse\@twosidefalse\@mparswitchfalse}
205
+ \newif\if@jslogo \@jslogotrue
206
+ \DeclareOption{jslogo}{\@jslogotrue}
207
+ \DeclareOption{nojslogo}{\@jslogofalse}
208
+ \ExecuteOptions{a4paper,twoside,onecolumn,titlepage,openright,final}
209
+ \ProcessOptions
210
+ \if@slide
211
+ \def\maybeblue{\@ifundefined{ver@color.sty}{}{\color{blue}}}
212
+ \fi
213
+ \if@landscape
214
+ \setlength\@tempdima {\paperheight}
215
+ \setlength\paperheight{\paperwidth}
216
+ \setlength\paperwidth {\@tempdima}
217
+ \fi
218
+ \ifnum \ifx\ucs\@undefined\z@\else\ucs"3000 \fi ="3000
219
+ \if@jsc@autodetect
220
+ \ClassInfo\jsc@clsname{Autodetected engine: upLaTeX}
221
+ \@jsc@uplatextrue
222
+ \g@addto@macro\@classoptionslist{,uplatex}
223
+ \fi
224
+ \if@jsc@uplatex\else
225
+ \ClassError\jsc@clsname
226
+ {You are running upLaTeX.\MessageBreak
227
+ Please use pLaTeX instead, or add 'uplatex' to\MessageBreak
228
+ the class option list}
229
+ {\@ehc}
230
+ \@jsc@uplatextrue
231
+ \fi
232
+ \else
233
+ \if@jsc@uplatex
234
+ \ClassError\jsc@clsname
235
+ {You are running pLaTeX.\MessageBreak
236
+ Please use upLaTeX instead, or remove 'uplatex' from\MessageBreak
237
+ the class option list}
238
+ {\@ehc}
239
+ \@jsc@uplatexfalse
240
+ \fi
241
+ \if@jsc@autodetect
242
+ \ClassInfo\jsc@clsname{Autodetected engine: pLaTeX}
243
+ \@jsc@uplatexfalse
244
+ \fi
245
+ \fi
246
+ \iftombow
247
+ \newdimen\stockwidth \newdimen\stockheight
248
+ \setlength{\stockwidth}{\paperwidth}
249
+ \setlength{\stockheight}{\paperheight}
250
+ \advance \stockwidth 2in
251
+ \advance \stockheight 2in
252
+ \fi
253
+ \ifpapersize
254
+ \iftombow
255
+ \edef\jsc@papersize@special{papersize=\the\stockwidth,\the\stockheight}
256
+ \else
257
+ \edef\jsc@papersize@special{papersize=\the\paperwidth,\the\paperheight}
258
+ \fi
259
+ \AtBeginDvi{\special{\jsc@papersize@special}}
260
+ \fi
261
+ \if@slide\def\n@baseline{13}\else\def\n@baseline{16}\fi
262
+ \newdimen\jsc@mpt
263
+ \newdimen\jsc@mmm
264
+ \def\inv@mag{1}
265
+ \ifjsc@mag
266
+ \jsc@mpt=1\p@
267
+ \jsc@mmm=1mm
268
+ \ifnum\@ptsize=-2
269
+ \mag 833
270
+ \def\inv@mag{1.20048}
271
+ \def\n@baseline{15}%
272
+ \fi
273
+ \ifnum\@ptsize=-1
274
+ \mag 913 % formerly 900
275
+ \def\inv@mag{1.09529}
276
+ \def\n@baseline{15}%
277
+ \fi
278
+ \ifnum\@ptsize=1
279
+ \mag 1095 % formerly 1100
280
+ \def\inv@mag{0.913242}
281
+ \fi
282
+ \ifnum\@ptsize=2
283
+ \mag 1200
284
+ \def\inv@mag{0.833333}
285
+ \fi
286
+ \ifnum\@ptsize=4
287
+ \mag 1440
288
+ \def\inv@mag{0.694444}
289
+ \fi
290
+ \ifnum\@ptsize=7
291
+ \mag 1728
292
+ \def\inv@mag{0.578704}
293
+ \fi
294
+ \ifnum\@ptsize=10
295
+ \mag 2000
296
+ \def\inv@mag{0.5}
297
+ \fi
298
+ \ifnum\@ptsize=11
299
+ \mag 2074
300
+ \def\inv@mag{0.48216}
301
+ \fi
302
+ \ifnum\@ptsize=15
303
+ \mag 2488
304
+ \def\inv@mag{0.401929}
305
+ \fi
306
+ \ifnum\@ptsize=20
307
+ \mag 2986
308
+ \def\inv@mag{0.334896}
309
+ \fi
310
+ \ifnum\@ptsize=26
311
+ \mag 3583
312
+ \def\inv@mag{0.279096}
313
+ \fi
314
+ \ifnum\@ptsize=33
315
+ \mag 4300
316
+ \def\inv@mag{0.232558}
317
+ \fi
318
+ \ifnum\@ptsize=1200
319
+ \mag 923
320
+ \def\inv@mag{1.0834236}
321
+ \fi
322
+ \ifnum\@ptsize=1400
323
+ \mag 1077
324
+ \def\inv@mag{0.928505}
325
+ \fi
326
+ \ifnum\@ptsize=1001
327
+ \mag 1085
328
+ \def\inv@mag{0.921659}
329
+ \fi
330
+ \ifnum\@ptsize=1051
331
+ \mag 1139
332
+ \def\inv@mag{0.877963}
333
+ \fi
334
+ \ifnum\@ptsize=1101
335
+ \mag 1194
336
+ \def\inv@mag{0.837521}
337
+ \fi
338
+ \ifnum\@ptsize=1201
339
+ \mag 1302
340
+ \def\inv@mag{0.768049}
341
+ \fi
342
+ \else
343
+ \jsc@mpt=\jsc@magscale\p@
344
+ \jsc@mmm=\jsc@magscale mm
345
+ \def\inv@mag{1}
346
+ \ifnum\@ptsize=-2
347
+ \def\n@baseline{15}%
348
+ \fi
349
+ \ifnum\@ptsize=-1
350
+ \def\n@baseline{15}%
351
+ \fi
352
+ \fi
353
+ \ifjsc@mag@xreal
354
+ \RequirePackage{type1cm}
355
+ \mathchardef\jsc@csta=259
356
+ \def\jsc@invscale#1#2{%
357
+ \begingroup \@tempdima=#1\relax \@tempdimb#2\p@\relax
358
+ \@tempcnta\@tempdima \multiply\@tempcnta\@cclvi
359
+ \divide\@tempcnta\@tempdimb \multiply\@tempcnta\@cclvi
360
+ \@tempcntb\p@ \divide\@tempcntb\@tempdimb
361
+ \advance\@tempcnta-\@tempcntb \advance\@tempcnta-\tw@
362
+ \@tempdimb\@tempcnta\@ne
363
+ \advance\@tempcnta\@tempcntb \advance\@tempcnta\@tempcntb
364
+ \advance\@tempcnta\jsc@csta \@tempdimc\@tempcnta\@ne
365
+ \@whiledim\@tempdimb<\@tempdimc\do{%
366
+ \@tempcntb\@tempdimb \advance\@tempcntb\@tempdimc
367
+ \advance\@tempcntb\@ne \divide\@tempcntb\tw@
368
+ \ifdim #2\@tempcntb>\@tempdima
369
+ \advance\@tempcntb\m@ne \@tempdimc=\@tempcntb\@ne
370
+ \else \@tempdimb=\@tempcntb\@ne \fi}%
371
+ \xdef\jsc@gtmpa{\the\@tempdimb}%
372
+ \endgroup #1=\jsc@gtmpa\relax}
373
+ \expandafter\let\csname OT1/cmr/m/n/10\endcsname\relax
374
+ \expandafter\let\csname OMX/cmex/m/n/10\endcsname\relax
375
+ \let\jsc@get@external@font\get@external@font
376
+ \def\get@external@font{%
377
+ \jsc@preadjust@extract@font
378
+ \jsc@get@external@font}
379
+ \def\jsc@fstrunc#1{%
380
+ \edef\jsc@tmpa{\strip@pt#1}%
381
+ \expandafter\jsc@fstrunc@a\jsc@tmpa.****\@nil}
382
+ \def\jsc@fstrunc@a#1.#2#3#4#5#6\@nil{%
383
+ \if#5*\else
384
+ \edef\jsc@tmpa{#1%
385
+ \ifnum#2#3>\z@ .#2\ifnum#3>\z@ #3\fi\fi}%
386
+ \fi}
387
+ \def\jsc@preadjust@extract@font{%
388
+ \let\jsc@req@size\f@size
389
+ \dimen@\f@size\p@ \jsc@invscale\dimen@\jsc@magscale
390
+ \advance\dimen@.005pt\relax \jsc@fstrunc\dimen@
391
+ \let\jsc@ref@size\jsc@tmpa
392
+ \let\f@size\jsc@ref@size}
393
+ \def\execute@size@function#1{%
394
+ \let\jsc@cref@size\f@size
395
+ \let\f@size\jsc@req@size
396
+ \csname s@fct@#1\endcsname}
397
+ \let\jsc@DeclareErrorFont\DeclareErrorFont
398
+ \def\DeclareErrorFont#1#2#3#4#5{%
399
+ \@tempdimc#5\p@ \@tempdimc\jsc@magscale\@tempdimc
400
+ \edef\jsc@tmpa{{#1}{#2}{#3}{#4}{\strip@pt\@tempdimc}}
401
+ \expandafter\jsc@DeclareErrorFont\jsc@tmpa}
402
+ \def\gen@sfcnt{%
403
+ \edef\mandatory@arg{\mandatory@arg\jsc@cref@size}%
404
+ \empty@sfcnt}
405
+ \def\genb@sfcnt{%
406
+ \edef\mandatory@arg{%
407
+ \mandatory@arg\expandafter\genb@x\jsc@cref@size..\@@}%
408
+ \empty@sfcnt}
409
+ \DeclareErrorFont{OT1}{cmr}{m}{n}{10}
410
+ \fi
411
+ \def\jsc@smallskip{\vspace\jsc@smallskipamount}
412
+ \newskip\jsc@smallskipamount
413
+ \jsc@smallskipamount=3\jsc@mpt plus 1\jsc@mpt minus 1\jsc@mpt
414
+ \setlength\paperwidth{\inv@mag\paperwidth}%
415
+ \setlength\paperheight{\inv@mag\paperheight}%
416
+ \iftombow
417
+ \setlength\stockwidth{\inv@mag\stockwidth}%
418
+ \setlength\stockheight{\inv@mag\stockheight}%
419
+ \fi
420
+ \def\Cjascale{0.924690}
421
+ \ifmingoth
422
+ \DeclareFontShape{\jsc@JYn}{mc}{m}{n}{<-> s * [0.961] \jsc@pfx@ min10}{}
423
+ \DeclareFontShape{\jsc@JYn}{gt}{m}{n}{<-> s * [0.961] \jsc@pfx@ goth10}{}
424
+ \DeclareFontShape{\jsc@JTn}{mc}{m}{n}{<-> s * [0.961] \jsc@pfx@ tmin10}{}
425
+ \DeclareFontShape{\jsc@JTn}{gt}{m}{n}{<-> s * [0.961] \jsc@pfx@ tgoth10}{}
426
+ \else
427
+ \ifjisfont
428
+ \DeclareFontShape{\jsc@JYn}{mc}{m}{n}{<-> s * [0.961] \jsc@pfx@ jis}{}
429
+ \DeclareFontShape{\jsc@JYn}{gt}{m}{n}{<-> s * [0.961] \jsc@pfx@ jisg}{}
430
+ \DeclareFontShape{\jsc@JTn}{mc}{m}{n}{<-> s * [0.961] \jsc@pfx@ tmin10}{}
431
+ \DeclareFontShape{\jsc@JTn}{gt}{m}{n}{<-> s * [0.961] \jsc@pfx@ tgoth10}{}
432
+ \else
433
+ \if@jsc@uplatex
434
+ \DeclareFontShape{JY2}{mc}{m}{n}{<-> s * [0.924690] upjisr-h}{}
435
+ \DeclareFontShape{JY2}{gt}{m}{n}{<-> s * [0.924690] upjisg-h}{}
436
+ \DeclareFontShape{JT2}{mc}{m}{n}{<-> s * [0.924690] upjisr-v}{}
437
+ \DeclareFontShape{JT2}{gt}{m}{n}{<-> s * [0.924690] upjisg-v}{}
438
+ \else
439
+ \DeclareFontShape{\jsc@JYn}{mc}{m}{n}{<-> s * [0.961] \jsc@pfx@ jis}{}
440
+ \DeclareFontShape{\jsc@JYn}{gt}{m}{n}{<-> s * [0.961] \jsc@pfx@ jisg}{}
441
+ \DeclareFontShape{\jsc@JTn}{mc}{m}{n}{<-> s * [0.961] \jsc@pfx@ tmin10}{}
442
+ \DeclareFontShape{\jsc@JTn}{gt}{m}{n}{<-> s * [0.961] \jsc@pfx@ tgoth10}{}
443
+ \fi
444
+ \fi
445
+ \fi
446
+ \DeclareFontShape{\jsc@JYn}{mc}{m}{it}{<->ssub*mc/m/n}{}
447
+ \DeclareFontShape{\jsc@JYn}{mc}{m}{sl}{<->ssub*mc/m/n}{}
448
+ \DeclareFontShape{\jsc@JYn}{mc}{m}{sc}{<->ssub*mc/m/n}{}
449
+ \DeclareFontShape{\jsc@JYn}{gt}{m}{it}{<->ssub*gt/m/n}{}
450
+ \DeclareFontShape{\jsc@JYn}{gt}{m}{sl}{<->ssub*gt/m/n}{}
451
+ \DeclareFontShape{\jsc@JYn}{mc}{bx}{it}{<->ssub*gt/m/n}{}
452
+ \DeclareFontShape{\jsc@JYn}{mc}{bx}{sl}{<->ssub*gt/m/n}{}
453
+ \DeclareFontShape{\jsc@JTn}{mc}{m}{it}{<->ssub*mc/m/n}{}
454
+ \DeclareFontShape{\jsc@JTn}{mc}{m}{sl}{<->ssub*mc/m/n}{}
455
+ \DeclareFontShape{\jsc@JTn}{mc}{m}{sc}{<->ssub*mc/m/n}{}
456
+ \DeclareFontShape{\jsc@JTn}{gt}{m}{it}{<->ssub*gt/m/n}{}
457
+ \DeclareFontShape{\jsc@JTn}{gt}{m}{sl}{<->ssub*gt/m/n}{}
458
+ \DeclareFontShape{\jsc@JTn}{mc}{bx}{it}{<->ssub*gt/m/n}{}
459
+ \DeclareFontShape{\jsc@JTn}{mc}{bx}{sl}{<->ssub*gt/m/n}{}
460
+ %% ad-hoc "relation font"
461
+ \@ifl@t@r\fmtversion{2020/10/01}
462
+ {\jsc@needsp@tchfalse}{\jsc@needsp@tchtrue}
463
+ \ifjsc@needsp@tch % --- for 2020-02-02 or older BEGIN
464
+ \ifx\@rmfamilyhook\@undefined % old
465
+ \DeclareRobustCommand\rmfamily
466
+ {\not@math@alphabet\rmfamily\mathrm
467
+ \romanfamily\rmdefault\kanjifamily\mcdefault\selectfont}
468
+ \DeclareRobustCommand\sffamily
469
+ {\not@math@alphabet\sffamily\mathsf
470
+ \romanfamily\sfdefault\kanjifamily\gtdefault\selectfont}
471
+ \DeclareRobustCommand\ttfamily
472
+ {\not@math@alphabet\ttfamily\mathtt
473
+ \romanfamily\ttdefault\kanjifamily\gtdefault\selectfont}
474
+ \AtBeginDocument{%
475
+ \ifx\mweights@init\@undefined\else % mweights.sty is loaded
476
+ % my definitions above should have been overwritten, recover it!
477
+ % \selectfont is executed twice but I don't care about speed...
478
+ \expandafter\g@addto@macro\csname rmfamily \endcsname
479
+ {\kanjifamily\mcdefault\selectfont}%
480
+ \expandafter\g@addto@macro\csname sffamily \endcsname
481
+ {\kanjifamily\gtdefault\selectfont}%
482
+ \expandafter\g@addto@macro\csname ttfamily \endcsname
483
+ {\kanjifamily\gtdefault\selectfont}%
484
+ \fi}
485
+ \else % 2020-02-02
486
+ \g@addto@macro\@rmfamilyhook
487
+ {\prepare@family@series@update@kanji{mc}\mcdefault}
488
+ \g@addto@macro\@sffamilyhook
489
+ {\prepare@family@series@update@kanji{gt}\gtdefault}
490
+ \g@addto@macro\@ttfamilyhook
491
+ {\prepare@family@series@update@kanji{gt}\gtdefault}
492
+ \fi
493
+ \else % --- for 2020-02-02 or older END & for 2020-10-01 BEGIN
494
+ \AddToHook{rmfamily}%
495
+ {\prepare@family@series@update@kanji{mc}\mcdefault}
496
+ \AddToHook{sffamily}%
497
+ {\prepare@family@series@update@kanji{gt}\gtdefault}
498
+ \AddToHook{ttfamily}%
499
+ {\prepare@family@series@update@kanji{gt}\gtdefault}
500
+ \fi % --- for 2020-10-01 END
501
+ \ifx\DeclareFixJFMCJKTextFontCommand\@undefined
502
+ \DeclareRobustCommand\textmc[1]{%
503
+ \relax\ifmmode \expandafter\nfss@text \fi{\mcfamily #1}}
504
+ \DeclareRobustCommand\textgt[1]{%
505
+ \relax\ifmmode \expandafter\nfss@text \fi{\gtfamily #1}}
506
+ \fi
507
+ \def\reDeclareMathAlphabet#1#2#3{%
508
+ \edef\@tempa{\expandafter\@gobble\string#2}%
509
+ \edef\@tempb{\expandafter\@gobble\string#3}%
510
+ \edef\@tempc{\string @\expandafter\@gobbletwo\string#2}%
511
+ \ifx\@tempc\@tempa%
512
+ \edef\@tempa{\expandafter\@gobbletwo\string#2}%
513
+ \edef\@tempb{\expandafter\@gobbletwo\string#3}%
514
+ \fi
515
+ \begingroup
516
+ \let\protect\noexpand
517
+ \def\@tempaa{\relax}%
518
+ \expandafter\ifx\csname RDMAorg@\@tempa\endcsname\relax
519
+ \edef\@tempaa{\expandafter\def\expandafter\noexpand%
520
+ \csname RDMAorg@\@tempa\endcsname{%
521
+ \expandafter\noexpand\csname\@tempa\endcsname}}%
522
+ \fi
523
+ \def\@tempbb{\relax}%
524
+ \expandafter\ifx\csname RDMAorg@\@tempb\endcsname\relax
525
+ \edef\@tempbb{\expandafter\def\expandafter\noexpand%
526
+ \csname RDMAorg@\@tempb\endcsname{%
527
+ \expandafter\noexpand\csname\@tempb\endcsname}}%
528
+ \fi
529
+ \edef\@tempc{\@tempaa\@tempbb}%
530
+ \expandafter\endgroup\@tempc%
531
+ \edef#1{\noexpand\protect\expandafter\noexpand\csname%
532
+ \expandafter\@gobble\string#1\space\space\endcsname}%
533
+ \expandafter\edef\csname\expandafter\@gobble\string#1\space\space\endcsname%
534
+ {\noexpand\DualLang@mathalph@bet%
535
+ {\expandafter\noexpand\csname RDMAorg@\@tempa\endcsname}%
536
+ {\expandafter\noexpand\csname RDMAorg@\@tempb\endcsname}%
537
+ }%
538
+ }
539
+ \@onlypreamble\reDeclareMathAlphabet
540
+ \def\DualLang@mathalph@bet#1#2{%
541
+ \relax\ifmmode
542
+ \ifx\math@bgroup\bgroup% 2e normal style (\mathrm{...})
543
+ \bgroup\let\DualLang@Mfontsw\DLMfontsw@standard
544
+ \else
545
+ \ifx\math@bgroup\relax% 2e two letter style (\rm->\mathrm)
546
+ \let\DualLang@Mfontsw\DLMfontsw@oldstyle
547
+ \else
548
+ \ifx\math@bgroup\@empty% 2.09 oldlfont style ({\mathrm ...})
549
+ \let\DualLang@Mfontsw\DLMfontsw@oldlfont
550
+ \else% panic! assume 2e normal style
551
+ \bgroup\let\DualLang@Mfontsw\DLMfontsw@standard
552
+ \fi
553
+ \fi
554
+ \fi
555
+ \else
556
+ \let\DualLang@Mfontsw\@firstoftwo
557
+ \fi
558
+ \DualLang@Mfontsw{#1}{#2}%
559
+ }
560
+ \def\DLMfontsw@standard#1#2#3{#1{#2{#3}}\egroup}
561
+ \def\DLMfontsw@oldstyle#1#2{#1\relax\@fontswitch\relax{#2}}
562
+ \def\DLMfontsw@oldlfont#1#2{#1\relax#2\relax}
563
+ \if@enablejfam
564
+ \DeclareSymbolFont{mincho}{\jsc@JYn}{mc}{m}{n}
565
+ \DeclareSymbolFontAlphabet{\mathmc}{mincho}
566
+ \SetSymbolFont{mincho}{bold}{\jsc@JYn}{gt}{m}{n}
567
+ \jfam\symmincho
568
+ \DeclareMathAlphabet{\mathgt}{\jsc@JYn}{gt}{m}{n}
569
+ \AtBeginDocument{%
570
+ \reDeclareMathAlphabet{\mathrm}{\@mathrm}{\@mathmc}
571
+ \reDeclareMathAlphabet{\mathbf}{\@mathbf}{\@mathgt}}
572
+ \fi
573
+ \prebreakpenalty\jis"2147=10000 % 5000 ’
574
+ \postbreakpenalty\jis"2148=10000 % 5000 “
575
+ \prebreakpenalty\jis"2149=10000 % 5000 ”
576
+ \inhibitxspcode`!=1
577
+ \inhibitxspcode`〒=2
578
+ \xspcode`+=3
579
+ \xspcode`\%=3
580
+ \xspcode`^^80=3
581
+ \xspcode`^^81=3
582
+ \xspcode`^^82=3
583
+ \xspcode`^^83=3
584
+ \xspcode`^^84=3
585
+ \xspcode`^^85=3
586
+ \xspcode`^^86=3
587
+ \xspcode`^^87=3
588
+ \xspcode`^^88=3
589
+ \xspcode`^^89=3
590
+ \xspcode`^^8a=3
591
+ \xspcode`^^8b=3
592
+ \xspcode`^^8c=3
593
+ \xspcode`^^8d=3
594
+ \xspcode`^^8e=3
595
+ \xspcode`^^8f=3
596
+ \xspcode`^^90=3
597
+ \xspcode`^^91=3
598
+ \xspcode`^^92=3
599
+ \xspcode`^^93=3
600
+ \xspcode`^^94=3
601
+ \xspcode`^^95=3
602
+ \xspcode`^^96=3
603
+ \xspcode`^^97=3
604
+ \xspcode`^^98=3
605
+ \xspcode`^^99=3
606
+ \xspcode`^^9a=3
607
+ \xspcode`^^9b=3
608
+ \xspcode`^^9c=3
609
+ \xspcode`^^9d=3
610
+ \xspcode`^^9e=3
611
+ \xspcode`^^9f=3
612
+ \xspcode`^^a0=3
613
+ \xspcode`^^a1=3
614
+ \xspcode`^^a2=3
615
+ \xspcode`^^a3=3
616
+ \xspcode`^^a4=3
617
+ \xspcode`^^a5=3
618
+ \xspcode`^^a6=3
619
+ \xspcode`^^a7=3
620
+ \xspcode`^^a8=3
621
+ \xspcode`^^a9=3
622
+ \xspcode`^^aa=3
623
+ \xspcode`^^ab=3
624
+ \xspcode`^^ac=3
625
+ \xspcode`^^ad=3
626
+ \xspcode`^^ae=3
627
+ \xspcode`^^af=3
628
+ \xspcode`^^b0=3
629
+ \xspcode`^^b1=3
630
+ \xspcode`^^b2=3
631
+ \xspcode`^^b3=3
632
+ \xspcode`^^b4=3
633
+ \xspcode`^^b5=3
634
+ \xspcode`^^b6=3
635
+ \xspcode`^^b7=3
636
+ \xspcode`^^b8=3
637
+ \xspcode`^^b9=3
638
+ \xspcode`^^ba=3
639
+ \xspcode`^^bb=3
640
+ \xspcode`^^bc=3
641
+ \xspcode`^^bd=3
642
+ \xspcode`^^be=3
643
+ \xspcode`^^bf=3
644
+ \xspcode`^^c0=3
645
+ \xspcode`^^c1=3
646
+ \xspcode`^^c2=3
647
+ \xspcode`^^c3=3
648
+ \xspcode`^^c4=3
649
+ \xspcode`^^c5=3
650
+ \xspcode`^^c6=3
651
+ \xspcode`^^c7=3
652
+ \xspcode`^^c8=3
653
+ \xspcode`^^c9=3
654
+ \xspcode`^^ca=3
655
+ \xspcode`^^cb=3
656
+ \xspcode`^^cc=3
657
+ \xspcode`^^cd=3
658
+ \xspcode`^^ce=3
659
+ \xspcode`^^cf=3
660
+ \xspcode`^^d0=3
661
+ \xspcode`^^d1=3
662
+ \xspcode`^^d2=3
663
+ \xspcode`^^d3=3
664
+ \xspcode`^^d4=3
665
+ \xspcode`^^d5=3
666
+ \xspcode`^^d6=3
667
+ \xspcode`^^d7=3
668
+ \xspcode`^^d8=3
669
+ \xspcode`^^d9=3
670
+ \xspcode`^^da=3
671
+ \xspcode`^^db=3
672
+ \xspcode`^^dc=3
673
+ \xspcode`^^dd=3
674
+ \xspcode`^^de=3
675
+ \xspcode`^^df=3
676
+ \xspcode`^^e0=3
677
+ \xspcode`^^e1=3
678
+ \xspcode`^^e2=3
679
+ \xspcode`^^e3=3
680
+ \xspcode`^^e4=3
681
+ \xspcode`^^e5=3
682
+ \xspcode`^^e6=3
683
+ \xspcode`^^e7=3
684
+ \xspcode`^^e8=3
685
+ \xspcode`^^e9=3
686
+ \xspcode`^^ea=3
687
+ \xspcode`^^eb=3
688
+ \xspcode`^^ec=3
689
+ \xspcode`^^ed=3
690
+ \xspcode`^^ee=3
691
+ \xspcode`^^ef=3
692
+ \xspcode`^^f0=3
693
+ \xspcode`^^f1=3
694
+ \xspcode`^^f2=3
695
+ \xspcode`^^f3=3
696
+ \xspcode`^^f4=3
697
+ \xspcode`^^f5=3
698
+ \xspcode`^^f6=3
699
+ \xspcode`^^f7=3
700
+ \xspcode`^^f8=3
701
+ \xspcode`^^f9=3
702
+ \xspcode`^^fa=3
703
+ \xspcode`^^fb=3
704
+ \xspcode`^^fc=3
705
+ \xspcode`^^fd=3
706
+ \xspcode`^^fe=3
707
+ \xspcode`^^ff=3
708
+ \def\@{\spacefactor3000{}}
709
+ %% \@setfontsize with \parindent and \(x)kanjiskip settings
710
+ \def\@setfontsize#1#2#3{%
711
+ \ifx\protect\@typeset@protect
712
+ \let\@currsize#1%
713
+ \fi
714
+ \fontsize{#2}{#3}\selectfont
715
+ \ifdim\parindent>\z@
716
+ \if@english
717
+ \parindent=1em
718
+ \else
719
+ \parindent=1zw
720
+ \fi
721
+ \fi
722
+ \kanjiskip=0zw plus .1zw minus .01zw
723
+ \ifdim\xkanjiskip>\z@
724
+ \if@slide \xkanjiskip=0.1em \else
725
+ \xkanjiskip=0.25em plus 0.15em minus 0.06em
726
+ \fi
727
+ \fi
728
+ }
729
+ \def\jsc@setfontsize#1#2#3{%
730
+ \@setfontsize#1{#2\jsc@mpt}{#3\jsc@mpt}}
731
+ \emergencystretch 3zw
732
+ \newif\ifnarrowbaselines
733
+ \if@english
734
+ \narrowbaselinestrue
735
+ \fi
736
+ \def\narrowbaselines{%
737
+ \narrowbaselinestrue
738
+ \skip0=\abovedisplayskip
739
+ \skip2=\abovedisplayshortskip
740
+ \skip4=\belowdisplayskip
741
+ \skip6=\belowdisplayshortskip
742
+ \@currsize\selectfont
743
+ \abovedisplayskip=\skip0
744
+ \abovedisplayshortskip=\skip2
745
+ \belowdisplayskip=\skip4
746
+ \belowdisplayshortskip=\skip6\relax}
747
+ \def\widebaselines{\narrowbaselinesfalse\@currsize\selectfont}
748
+ \renewcommand{\normalsize}{%
749
+ \ifnarrowbaselines
750
+ \jsc@setfontsize\normalsize\@xpt\@xiipt
751
+ \else
752
+ \jsc@setfontsize\normalsize\@xpt{\n@baseline}%
753
+ \fi
754
+ \abovedisplayskip 11\jsc@mpt \@plus3\jsc@mpt \@minus4\jsc@mpt
755
+ \abovedisplayshortskip \z@ \@plus3\jsc@mpt
756
+ \belowdisplayskip 9\jsc@mpt \@plus3\jsc@mpt \@minus4\jsc@mpt
757
+ \belowdisplayshortskip \belowdisplayskip
758
+ \let\@listi\@listI}
759
+ %% initialize
760
+ \normalsize
761
+ \setbox0\hbox{\char\jis"3441}%
762
+ \setlength\Cht{\ht0}
763
+ \setlength\Cdp{\dp0}
764
+ \setlength\Cwd{\wd0}
765
+ \setlength\Cvs{\baselineskip}
766
+ \setlength\Chs{\wd0}
767
+ \setbox0=\box\voidb@x
768
+ \newcommand{\small}{%
769
+ \ifnarrowbaselines
770
+ \jsc@setfontsize\small\@ixpt{11}%
771
+ \else
772
+ \jsc@setfontsize\small\@ixpt{13}%
773
+ \fi
774
+ \abovedisplayskip 9\jsc@mpt \@plus3\jsc@mpt \@minus4\jsc@mpt
775
+ \abovedisplayshortskip \z@ \@plus3\jsc@mpt
776
+ \belowdisplayskip \abovedisplayskip
777
+ \belowdisplayshortskip \belowdisplayskip
778
+ \def\@listi{\leftmargin\leftmargini
779
+ \topsep \z@
780
+ \parsep \z@
781
+ \itemsep \parsep}}
782
+ \newcommand{\footnotesize}{%
783
+ \ifnarrowbaselines
784
+ \jsc@setfontsize\footnotesize\@viiipt{9.5}%
785
+ \else
786
+ \jsc@setfontsize\footnotesize\@viiipt{11}%
787
+ \fi
788
+ \abovedisplayskip 6\jsc@mpt \@plus2\jsc@mpt \@minus3\jsc@mpt
789
+ \abovedisplayshortskip \z@ \@plus2\jsc@mpt
790
+ \belowdisplayskip \abovedisplayskip
791
+ \belowdisplayshortskip \belowdisplayskip
792
+ \def\@listi{\leftmargin\leftmargini
793
+ \topsep \z@
794
+ \parsep \z@
795
+ \itemsep \parsep}}
796
+ \newcommand{\scriptsize}{\jsc@setfontsize\scriptsize\@viipt\@viiipt}
797
+ \newcommand{\tiny}{\jsc@setfontsize\tiny\@vpt\@vipt}
798
+ \if@twocolumn
799
+ \newcommand{\large}{\jsc@setfontsize\large\@xiipt{\n@baseline}}
800
+ \else
801
+ \newcommand{\large}{\jsc@setfontsize\large\@xiipt{17}}
802
+ \fi
803
+ \newcommand{\Large}{\jsc@setfontsize\Large\@xivpt{21}}
804
+ \newcommand{\LARGE}{\jsc@setfontsize\LARGE\@xviipt{25}}
805
+ \newcommand{\huge}{\jsc@setfontsize\huge\@xxpt{28}}
806
+ \newcommand{\Huge}{\jsc@setfontsize\Huge\@xxvpt{33}}
807
+ \newcommand{\HUGE}{\jsc@setfontsize\HUGE{30}{40}}
808
+ \everydisplay=\expandafter{\the\everydisplay \narrowbaselines}
809
+ \newcommand{\headfont}{\gtfamily\sffamily}
810
+ \setlength\columnsep{2zw}
811
+ \setlength\columnseprule{\z@}
812
+ \setlength\lineskip{1\jsc@mpt}
813
+ \setlength\normallineskip{1\jsc@mpt}
814
+ \setlength\lineskiplimit{1\jsc@mpt}
815
+ \setlength\normallineskiplimit{1\jsc@mpt}
816
+ \renewcommand{\baselinestretch}{}
817
+ \setlength\parskip{\z@}
818
+ \if@slide
819
+ \setlength\parindent{0zw}
820
+ \else
821
+ \setlength\parindent{1zw}
822
+ \fi
823
+ \@lowpenalty 51
824
+ \@medpenalty 151
825
+ \@highpenalty 301
826
+ \setlength\topskip{1.38zw}%% from 10\jsc@mpt (2016-08-17)
827
+ \if@slide
828
+ \setlength\headheight{0\jsc@mpt}
829
+ \else
830
+ \setlength\headheight{20\jsc@mpt}%% from 2\topskip (2016-08-17); from \topskip (2003-06-26)
831
+ \fi
832
+ \if@report
833
+ \setlength\footskip{0.03367\paperheight}
834
+ \ifdim\footskip<\baselineskip
835
+ \setlength\footskip{\baselineskip}
836
+ \fi
837
+ \else
838
+ \setlength\footskip{0pt}
839
+ \fi
840
+ \if@report
841
+ \setlength\headsep{\footskip}
842
+ \addtolength\headsep{-\topskip}
843
+ \else
844
+ \setlength\headsep{6\jsc@mmm}
845
+ \addtolength\headsep{-\topskip}%% added (2016-10-08)
846
+ \addtolength\headsep{10\jsc@mpt}%% added (2016-10-08)
847
+ \fi
848
+ \setlength\maxdepth{.5\topskip}
849
+ \newdimen\fullwidth
850
+ \if@report
851
+ \setlength\fullwidth{0.76\paperwidth}
852
+ \else
853
+ \setlength\fullwidth{\paperwidth}
854
+ \addtolength\fullwidth{-36\jsc@mmm}
855
+ \fi
856
+ \if@twocolumn \@tempdima=2zw \else \@tempdima=1zw \fi
857
+ \divide\fullwidth\@tempdima \multiply\fullwidth\@tempdima
858
+ \setlength\textwidth{\fullwidth}
859
+ \if@report \else
860
+ \if@twocolumn \else
861
+ \ifdim \fullwidth>40zw
862
+ \setlength\textwidth{40zw}
863
+ \fi
864
+ \fi
865
+ \fi
866
+ \if@slide
867
+ \setlength{\textheight}{0.95\paperheight}
868
+ \else
869
+ \setlength{\textheight}{0.83\paperheight}
870
+ \fi
871
+ \addtolength{\textheight}{-10\jsc@mpt}%% from -\topskip (2016-10-08); from -\headheight (2003-06-26)
872
+ \addtolength{\textheight}{-\headsep}
873
+ \addtolength{\textheight}{-\footskip}
874
+ \addtolength{\textheight}{-\topskip}
875
+ \divide\textheight\baselineskip
876
+ \multiply\textheight\baselineskip
877
+ \addtolength{\textheight}{\topskip}
878
+ \addtolength{\textheight}{0.1\jsc@mpt}
879
+ \def\flushbottom{%
880
+ \def\@textbottom{\vskip \z@ \@plus.1\jsc@mpt}%
881
+ \let\@texttop\relax}
882
+ \setlength\marginparsep{\columnsep}
883
+ \setlength\marginparpush{\baselineskip}
884
+ \setlength{\oddsidemargin}{\paperwidth}
885
+ \addtolength{\oddsidemargin}{-\fullwidth}
886
+ \setlength{\oddsidemargin}{.5\oddsidemargin}
887
+ \iftombow
888
+ \addtolength{\oddsidemargin}{-1in}
889
+ \else
890
+ \addtolength{\oddsidemargin}{-\inv@mag in}
891
+ \fi
892
+ \setlength{\evensidemargin}{\oddsidemargin}
893
+ \if@mparswitch
894
+ \addtolength{\evensidemargin}{\fullwidth}
895
+ \addtolength{\evensidemargin}{-\textwidth}
896
+ \fi
897
+ \setlength\marginparwidth{\paperwidth}
898
+ \addtolength\marginparwidth{-\oddsidemargin}
899
+ \addtolength\marginparwidth{-\inv@mag in}
900
+ \addtolength\marginparwidth{-\textwidth}
901
+ \addtolength\marginparwidth{-10\jsc@mmm}
902
+ \addtolength\marginparwidth{-\marginparsep}
903
+ \@tempdima=1zw
904
+ \divide\marginparwidth\@tempdima
905
+ \multiply\marginparwidth\@tempdima
906
+ \setlength\topmargin{\paperheight}
907
+ \addtolength\topmargin{-\textheight}
908
+ \if@slide
909
+ \addtolength\topmargin{-\headheight}
910
+ \else
911
+ \addtolength\topmargin{-10\jsc@mpt}%% from -\topskip (2016-10-08); from -\headheight (2003-06-26)
912
+ \fi
913
+ \addtolength\topmargin{-\headsep}
914
+ \addtolength\topmargin{-\footskip}
915
+ \setlength\topmargin{0.5\topmargin}
916
+ \iftombow
917
+ \addtolength\topmargin{-1in}
918
+ \else
919
+ \addtolength\topmargin{-\inv@mag in}
920
+ \fi
921
+ {\footnotesize\global\setlength\footnotesep{\baselineskip}}
922
+ \setlength\footnotesep{0.7\footnotesep}
923
+ \setlength{\skip\footins}{16\jsc@mpt \@plus 5\jsc@mpt \@minus 2\jsc@mpt}
924
+ \setcounter{topnumber}{9}
925
+ \renewcommand{\topfraction}{.85}
926
+ \setcounter{bottomnumber}{9}
927
+ \renewcommand{\bottomfraction}{.8}
928
+ \setcounter{totalnumber}{20}
929
+ \renewcommand{\textfraction}{.1}
930
+ \renewcommand{\floatpagefraction}{.8}
931
+ \setcounter{dbltopnumber}{9}
932
+ \renewcommand{\dbltopfraction}{.8}
933
+ \renewcommand{\dblfloatpagefraction}{.8}
934
+ \setlength\floatsep {12\jsc@mpt \@plus 2\jsc@mpt \@minus 2\jsc@mpt}
935
+ \setlength\textfloatsep{20\jsc@mpt \@plus 2\jsc@mpt \@minus 4\jsc@mpt}
936
+ \setlength\intextsep {12\jsc@mpt \@plus 2\jsc@mpt \@minus 2\jsc@mpt}
937
+ \setlength\dblfloatsep {12\jsc@mpt \@plus 2\jsc@mpt \@minus 2\jsc@mpt}
938
+ \setlength\dbltextfloatsep{20\jsc@mpt \@plus 2\jsc@mpt \@minus 4\jsc@mpt}
939
+ \setlength\@fptop{0\jsc@mpt \@plus 1fil}
940
+ \setlength\@fpsep{8\jsc@mpt \@plus 2fil}
941
+ \setlength\@fpbot{0\jsc@mpt \@plus 1fil}
942
+ \setlength\@dblfptop{0\jsc@mpt \@plus 1fil}
943
+ \setlength\@dblfpsep{8\jsc@mpt \@plus 2fil}
944
+ \setlength\@dblfpbot{0\jsc@mpt \@plus 1fil}
945
+ \def\pltx@cleartorightpage{\clearpage\if@twoside
946
+ \ifodd\c@page
947
+ \iftdir
948
+ \hbox{}\thispagestyle{empty}\newpage
949
+ \if@twocolumn\hbox{}\newpage\fi
950
+ \fi
951
+ \else
952
+ \ifydir
953
+ \hbox{}\thispagestyle{empty}\newpage
954
+ \if@twocolumn\hbox{}\newpage\fi
955
+ \fi
956
+ \fi\fi}
957
+ \def\pltx@cleartoleftpage{\clearpage\if@twoside
958
+ \ifodd\c@page
959
+ \ifydir
960
+ \hbox{}\thispagestyle{empty}\newpage
961
+ \if@twocolumn\hbox{}\newpage\fi
962
+ \fi
963
+ \else
964
+ \iftdir
965
+ \hbox{}\thispagestyle{empty}\newpage
966
+ \if@twocolumn\hbox{}\newpage\fi
967
+ \fi
968
+ \fi\fi}
969
+ \def\pltx@cleartooddpage{\clearpage\if@twoside
970
+ \ifodd\c@page\else
971
+ \hbox{}\thispagestyle{empty}\newpage
972
+ \if@twocolumn\hbox{}\newpage\fi
973
+ \fi\fi}
974
+ \def\pltx@cleartoevenpage{\clearpage\if@twoside
975
+ \ifodd\c@page
976
+ \hbox{}\thispagestyle{empty}\newpage
977
+ \if@twocolumn\hbox{}\newpage\fi
978
+ \fi\fi}
979
+ \if@openleft
980
+ \let\cleardoublepage\pltx@cleartoleftpage
981
+ \else\if@openright
982
+ \let\cleardoublepage\pltx@cleartorightpage
983
+ \fi\fi
984
+ \def\ps@plainfoot{%
985
+ \let\@mkboth\@gobbletwo
986
+ \let\@oddhead\@empty
987
+ \def\@oddfoot{\normalfont\hfil\thepage\hfil}%
988
+ \let\@evenhead\@empty
989
+ \let\@evenfoot\@oddfoot}
990
+ \def\ps@plainhead{%
991
+ \let\@mkboth\@gobbletwo
992
+ \let\@oddfoot\@empty
993
+ \let\@evenfoot\@empty
994
+ \def\@evenhead{%
995
+ \if@mparswitch \hss \fi
996
+ \hbox to \fullwidth{\textbf{\thepage}\hfil}%
997
+ \if@mparswitch\else \hss \fi}%
998
+ \def\@oddhead{%
999
+ \hbox to \fullwidth{\hfil\textbf{\thepage}}\hss}}
1000
+ \if@report \let\ps@plain\ps@plainfoot \else \let\ps@plain\ps@plainhead \fi
1001
+ \newif\if@omit@number
1002
+ \def\ps@headings{%
1003
+ \let\@oddfoot\@empty
1004
+ \let\@evenfoot\@empty
1005
+ \def\@evenhead{%
1006
+ \if@mparswitch \hss \fi
1007
+ \underline{\hbox to \fullwidth{\autoxspacing
1008
+ \textbf{\thepage}\hfil\leftmark}}%
1009
+ \if@mparswitch\else \hss \fi}%
1010
+ \def\@oddhead{\underline{\hbox to \fullwidth{\autoxspacing
1011
+ {\if@twoside\rightmark\else\leftmark\fi}\hfil\textbf{\thepage}}}\hss}%
1012
+ \let\@mkboth\markboth
1013
+ \def\chaptermark##1{\markboth{%
1014
+ \ifnum \c@secnumdepth >\m@ne
1015
+ \if@mainmatter
1016
+ \if@omit@number\else
1017
+ \@chapapp\thechapter\@chappos\hskip1zw
1018
+ \fi
1019
+ \fi
1020
+ \fi
1021
+ ##1}{}}%
1022
+ \def\sectionmark##1{\markright{%
1023
+ \ifnum \c@secnumdepth >\z@ \thesection \hskip1zw\fi
1024
+ ##1}}}%
1025
+ \def\ps@myheadings{%
1026
+ \let\@oddfoot\@empty\let\@evenfoot\@empty
1027
+ \def\@evenhead{%
1028
+ \if@mparswitch \hss \fi%
1029
+ \hbox to \fullwidth{\thepage\hfil\leftmark}%
1030
+ \if@mparswitch\else \hss \fi}%
1031
+ \def\@oddhead{%
1032
+ \hbox to \fullwidth{\rightmark\hfil\thepage}\hss}%
1033
+ \let\@mkboth\@gobbletwo
1034
+ \let\chaptermark\@gobble
1035
+ \let\sectionmark\@gobble
1036
+ }
1037
+ \def\plainifnotempty{%
1038
+ \ifx \@oddhead \@empty
1039
+ \ifx \@oddfoot \@empty
1040
+ \else
1041
+ \thispagestyle{plainfoot}%
1042
+ \fi
1043
+ \else
1044
+ \thispagestyle{plainhead}%
1045
+ \fi}
1046
+ \if@titlepage
1047
+ \newcommand{\maketitle}{%
1048
+ \begin{titlepage}%
1049
+ \let\footnotesize\small
1050
+ \let\footnoterule\relax
1051
+ \let\footnote\thanks
1052
+ \null\vfil
1053
+ \if@slide
1054
+ {\footnotesize \@date}%
1055
+ \begin{center}
1056
+ \mbox{} \\[1zw]
1057
+ \large
1058
+ {\maybeblue\hrule height0\jsc@mpt depth2\jsc@mpt\relax}\par
1059
+ \jsc@smallskip
1060
+ \@title
1061
+ \jsc@smallskip
1062
+ {\maybeblue\hrule height0\jsc@mpt depth2\jsc@mpt\relax}\par
1063
+ \vfill
1064
+ {\small \@author}%
1065
+ \end{center}
1066
+ \else
1067
+ \vskip 60\jsc@mpt
1068
+ \begin{center}%
1069
+ {\LARGE \@title \par}%
1070
+ \vskip 3em%
1071
+ {\large
1072
+ \lineskip .75em
1073
+ \begin{tabular}[t]{c}%
1074
+ \@author
1075
+ \end{tabular}\par}%
1076
+ \vskip 1.5em
1077
+ {\large \@date \par}%
1078
+ \end{center}%
1079
+ \fi
1080
+ \par
1081
+ \@thanks\vfil\null
1082
+ \end{titlepage}%
1083
+ \setcounter{footnote}{0}%
1084
+ \global\let\thanks\relax
1085
+ \global\let\maketitle\relax
1086
+ \global\let\@thanks\@empty
1087
+ \global\let\@author\@empty
1088
+ \global\let\@date\@empty
1089
+ \global\let\@title\@empty
1090
+ \global\let\title\relax
1091
+ \global\let\author\relax
1092
+ \global\let\date\relax
1093
+ \global\let\and\relax
1094
+ }%
1095
+ \else
1096
+ \newcommand{\maketitle}{\par
1097
+ \begingroup
1098
+ \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
1099
+ \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
1100
+ \long\def\@makefntext##1{\advance\leftskip 3zw
1101
+ \parindent 1zw\noindent
1102
+ \llap{\@textsuperscript{\normalfont\@thefnmark}\hskip0.3zw}##1}%
1103
+ \if@twocolumn
1104
+ \ifnum \col@number=\@ne
1105
+ \@maketitle
1106
+ \else
1107
+ \twocolumn[\@maketitle]%
1108
+ \fi
1109
+ \else
1110
+ \newpage
1111
+ \global\@topnum\z@ % Prevents figures from going at top of page.
1112
+ \@maketitle
1113
+ \fi
1114
+ \plainifnotempty
1115
+ \@thanks
1116
+ \endgroup
1117
+ \setcounter{footnote}{0}%
1118
+ \global\let\thanks\relax
1119
+ \global\let\maketitle\relax
1120
+ \global\let\@thanks\@empty
1121
+ \global\let\@author\@empty
1122
+ \global\let\@date\@empty
1123
+ \global\let\@title\@empty
1124
+ \global\let\title\relax
1125
+ \global\let\author\relax
1126
+ \global\let\date\relax
1127
+ \global\let\and\relax
1128
+ }
1129
+ \def\@maketitle{%
1130
+ \newpage\null
1131
+ \vskip 2em
1132
+ \begin{center}%
1133
+ \let\footnote\thanks
1134
+ {\LARGE \@title \par}%
1135
+ \vskip 1.5em
1136
+ {\large
1137
+ \lineskip .5em
1138
+ \begin{tabular}[t]{c}%
1139
+ \@author
1140
+ \end{tabular}\par}%
1141
+ \vskip 1em
1142
+ {\large \@date}%
1143
+ \end{center}%
1144
+ \par\vskip 1.5em
1145
+ }
1146
+ \fi
1147
+ \def\@startsection#1#2#3#4#5#6{%
1148
+ \if@noskipsec \leavevmode \fi
1149
+ \par
1150
+ \@tempskipa #4\relax
1151
+ \if@english \@afterindentfalse \else \@afterindenttrue \fi
1152
+ \ifdim \@tempskipa <\z@
1153
+ \@tempskipa -\@tempskipa \@afterindentfalse
1154
+ \fi
1155
+ \if@nobreak
1156
+ \everypar{}%
1157
+ \else
1158
+ \addpenalty\@secpenalty
1159
+ \ifdim \@tempskipa >\z@
1160
+ \if@slide\else
1161
+ \null
1162
+ \vspace*{-\baselineskip}%
1163
+ \fi
1164
+ \vskip\@tempskipa
1165
+ \fi
1166
+ \fi
1167
+ \noindent
1168
+ \@ifstar
1169
+ {\@ssect{#3}{#4}{#5}{#6}}%
1170
+ {\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}}
1171
+ \def\@sect#1#2#3#4#5#6[#7]#8{%
1172
+ \ifnum #2>\c@secnumdepth
1173
+ \let\@svsec\@empty
1174
+ \else
1175
+ \refstepcounter{#1}%
1176
+ \protected@edef\@svsec{\@seccntformat{#1}\relax}%
1177
+ \fi
1178
+ \@tempskipa #5\relax
1179
+ \ifdim \@tempskipa<\z@
1180
+ \def\@svsechd{%
1181
+ #6{\hskip #3\relax
1182
+ \@svsec #8}%
1183
+ \csname #1mark\endcsname{#7}%
1184
+ \addcontentsline{toc}{#1}{%
1185
+ \ifnum #2>\c@secnumdepth \else
1186
+ \protect\numberline{\csname the#1\endcsname}%
1187
+ \fi
1188
+ #7}}% 目次にフルネームを載せるなら #8
1189
+ \else
1190
+ \begingroup
1191
+ \interlinepenalty \@M % 下から移動
1192
+ #6{%
1193
+ \@hangfrom{\hskip #3\relax\@svsec}%
1194
+ #8\@@par}%
1195
+ \endgroup
1196
+ \csname #1mark\endcsname{#7}%
1197
+ \addcontentsline{toc}{#1}{%
1198
+ \ifnum #2>\c@secnumdepth \else
1199
+ \protect\numberline{\csname the#1\endcsname}%
1200
+ \fi
1201
+ #7}% 目次にフルネームを載せるならここは #8
1202
+ \fi
1203
+ \@xsect{#5}}
1204
+ \def\@xsect#1{%
1205
+ \@tempskipa #1\relax
1206
+ \ifdim \@tempskipa<\z@
1207
+ \@nobreakfalse
1208
+ \global\@noskipsectrue
1209
+ \everypar{%
1210
+ \if@noskipsec
1211
+ \global\@noskipsecfalse
1212
+ {\setbox\z@\lastbox}%
1213
+ \clubpenalty\@M
1214
+ \begingroup \@svsechd \endgroup
1215
+ \unskip
1216
+ \@tempskipa #1\relax
1217
+ \hskip -\@tempskipa
1218
+ \else
1219
+ \clubpenalty \@clubpenalty
1220
+ \everypar{\everyparhook}%
1221
+ \fi\everyparhook}%
1222
+ \else
1223
+ \par \nobreak
1224
+ \vskip \@tempskipa
1225
+ \@afterheading
1226
+ \fi
1227
+ \if@slide
1228
+ {\vskip\if@twocolumn-5\jsc@mpt\else-6\jsc@mpt\fi
1229
+ \maybeblue\hrule height0\jsc@mpt depth1\jsc@mpt
1230
+ \vskip\if@twocolumn 4\jsc@mpt\else 7\jsc@mpt\fi\relax}%
1231
+ \fi
1232
+ \par % 2000-12-18
1233
+ \ignorespaces}
1234
+ \def\@ssect#1#2#3#4#5{%
1235
+ \@tempskipa #3\relax
1236
+ \ifdim \@tempskipa<\z@
1237
+ \def\@svsechd{#4{\hskip #1\relax #5}}%
1238
+ \else
1239
+ \begingroup
1240
+ #4{%
1241
+ \@hangfrom{\hskip #1}%
1242
+ \interlinepenalty \@M #5\@@par}%
1243
+ \endgroup
1244
+ \fi
1245
+ \@xsect{#3}}
1246
+ \newcommand*\chaptermark[1]{}
1247
+ \setcounter{secnumdepth}{2}
1248
+ \newcounter{part}
1249
+ \newcounter{chapter}
1250
+ \newcounter{section}[chapter]
1251
+ \newcounter{subsection}[section]
1252
+ \newcounter{subsubsection}[subsection]
1253
+ \newcounter{paragraph}[subsubsection]
1254
+ \newcounter{subparagraph}[paragraph]
1255
+ \renewcommand{\thepart}{\@Roman\c@part}
1256
+ \renewcommand{\thechapter}{\@arabic\c@chapter}
1257
+ \renewcommand{\thesection}{\thechapter.\@arabic\c@section}
1258
+ \renewcommand{\thesubsection}{\thesection.\@arabic\c@subsection}
1259
+ \renewcommand{\thesubsubsection}{%
1260
+ \thesubsection.\@arabic\c@subsubsection}
1261
+ \renewcommand{\theparagraph}{%
1262
+ \thesubsubsection.\@arabic\c@paragraph}
1263
+ \renewcommand{\thesubparagraph}{%
1264
+ \theparagraph.\@arabic\c@subparagraph}
1265
+ \newcommand{\@chapapp}{\prechaptername}
1266
+ \newcommand{\@chappos}{\postchaptername}
1267
+ \newcommand\frontmatter{%
1268
+ \pltx@cleartooddpage
1269
+ \@mainmatterfalse
1270
+ \pagenumbering{roman}}
1271
+ \newcommand\mainmatter{%
1272
+ \pltx@cleartooddpage
1273
+ \@mainmattertrue
1274
+ \pagenumbering{arabic}}
1275
+ \newcommand\backmatter{%
1276
+ \if@openleft
1277
+ \cleardoublepage
1278
+ \else\if@openright
1279
+ \cleardoublepage
1280
+ \else
1281
+ \clearpage
1282
+ \fi\fi
1283
+ \@mainmatterfalse}
1284
+ \newcommand\part{%
1285
+ \if@openleft
1286
+ \cleardoublepage
1287
+ \else\if@openright
1288
+ \cleardoublepage
1289
+ \else
1290
+ \clearpage
1291
+ \fi\fi
1292
+ \thispagestyle{empty}% 欧文用標準スタイルでは plain
1293
+ \if@twocolumn
1294
+ \onecolumn
1295
+ \@restonecoltrue
1296
+ \else
1297
+ \@restonecolfalse
1298
+ \fi
1299
+ \null\vfil
1300
+ \secdef\@part\@spart}
1301
+ \def\@part[#1]#2{%
1302
+ \ifnum \c@secnumdepth >-2\relax
1303
+ \refstepcounter{part}%
1304
+ \addcontentsline{toc}{part}{%
1305
+ \prepartname\thepart\postpartname\hspace{1zw}#1}%
1306
+ \else
1307
+ \addcontentsline{toc}{part}{#1}%
1308
+ \fi
1309
+ \markboth{}{}%
1310
+ {\centering
1311
+ \interlinepenalty \@M
1312
+ \normalfont
1313
+ \ifnum \c@secnumdepth >-2\relax
1314
+ \huge\headfont \prepartname\thepart\postpartname
1315
+ \par\vskip20\jsc@mpt
1316
+ \fi
1317
+ \Huge \headfont #2\par}%
1318
+ \@endpart}
1319
+ \def\@spart#1{{%
1320
+ \centering
1321
+ \interlinepenalty \@M
1322
+ \normalfont
1323
+ \Huge \headfont #1\par}%
1324
+ \@endpart}
1325
+ \def\@endpart{\vfil\newpage
1326
+ \if@twoside
1327
+ \if@openleft %% added (2017/02/24)
1328
+ \null\thispagestyle{empty}\newpage
1329
+ \else\if@openright %% added (2016/12/13)
1330
+ \null\thispagestyle{empty}\newpage
1331
+ \fi\fi %% added (2016/12/13, 2017/02/24)
1332
+ \fi
1333
+ \if@restonecol
1334
+ \twocolumn
1335
+ \fi}
1336
+ \newcommand{\chapter}{%
1337
+ \if@openleft\cleardoublepage\else
1338
+ \if@openright\cleardoublepage\else\clearpage\fi\fi
1339
+ \plainifnotempty % 元: \thispagestyle{plain}
1340
+ \global\@topnum\z@
1341
+ \if@english \@afterindentfalse \else \@afterindenttrue \fi
1342
+ \secdef
1343
+ {\@omit@numberfalse\@chapter}%
1344
+ {\@omit@numbertrue\@schapter}}
1345
+ \def\@chapter[#1]#2{%
1346
+ \ifnum \c@secnumdepth >\m@ne
1347
+ \if@mainmatter
1348
+ \refstepcounter{chapter}%
1349
+ \typeout{\@chapapp\thechapter\@chappos}%
1350
+ \addcontentsline{toc}{chapter}%
1351
+ {\protect\numberline
1352
+ % {\if@english\thechapter\else\@chapapp\thechapter\@chappos\fi}%
1353
+ {\@chapapp\thechapter\@chappos}%
1354
+ #1}%
1355
+ \else\addcontentsline{toc}{chapter}{#1}\fi
1356
+ \else
1357
+ \addcontentsline{toc}{chapter}{#1}%
1358
+ \fi
1359
+ \chaptermark{#1}%
1360
+ \addtocontents{lof}{\protect\addvspace{10\jsc@mpt}}%
1361
+ \addtocontents{lot}{\protect\addvspace{10\jsc@mpt}}%
1362
+ \if@twocolumn
1363
+ \@topnewpage[\@makechapterhead{#2}]%
1364
+ \else
1365
+ \@makechapterhead{#2}%
1366
+ \@afterheading
1367
+ \fi}
1368
+ \def\@makechapterhead#1{%
1369
+ \vspace*{2\Cvs}% 欧文は50pt
1370
+ {\parindent \z@ \raggedright \normalfont
1371
+ \ifnum \c@secnumdepth >\m@ne
1372
+ \if@mainmatter
1373
+ \huge\headfont \@chapapp\thechapter\@chappos
1374
+ \par\nobreak
1375
+ \vskip \Cvs % 欧文は20pt
1376
+ \fi
1377
+ \fi
1378
+ \interlinepenalty\@M
1379
+ \Huge \headfont #1\par\nobreak
1380
+ \vskip 3\Cvs}} % 欧文は40pt
1381
+ \def\@schapter#1{%
1382
+ \chaptermark{#1}%
1383
+ \if@twocolumn
1384
+ \@topnewpage[\@makeschapterhead{#1}]%
1385
+ \else
1386
+ \@makeschapterhead{#1}\@afterheading
1387
+ \fi}
1388
+ \def\@makeschapterhead#1{%
1389
+ \vspace*{2\Cvs}% 欧文は50pt
1390
+ {\parindent \z@ \raggedright
1391
+ \normalfont
1392
+ \interlinepenalty\@M
1393
+ \Huge \headfont #1\par\nobreak
1394
+ \vskip 3\Cvs}} % 欧文は40pt
1395
+ \if@twocolumn
1396
+ \newcommand{\section}{%
1397
+ \@startsection{section}{1}{\z@}%
1398
+ {0.6\Cvs}{0.4\Cvs}%
1399
+ {\normalfont\large\headfont\raggedright}}
1400
+ \else
1401
+ \newcommand{\section}{%
1402
+ \if@slide\clearpage\fi
1403
+ \@startsection{section}{1}{\z@}%
1404
+ {\Cvs \@plus.5\Cdp \@minus.2\Cdp}% 前アキ
1405
+ {.5\Cvs \@plus.3\Cdp}% 後アキ
1406
+ {\normalfont\Large\headfont\raggedright}}
1407
+ \fi
1408
+ \if@twocolumn
1409
+ \newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
1410
+ {\z@}{\if@slide .4\Cvs \else \z@ \fi}%
1411
+ {\normalfont\normalsize\headfont}}
1412
+ \else
1413
+ \newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
1414
+ {\Cvs \@plus.5\Cdp \@minus.2\Cdp}% 前アキ
1415
+ {.5\Cvs \@plus.3\Cdp}% 後アキ
1416
+ {\normalfont\large\headfont}}
1417
+ \fi
1418
+ \if@twocolumn
1419
+ \newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
1420
+ {\z@}{\if@slide .4\Cvs \else \z@ \fi}%
1421
+ {\normalfont\normalsize\headfont}}
1422
+ \else
1423
+ \newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
1424
+ {\Cvs \@plus.5\Cdp \@minus.2\Cdp}%
1425
+ {\if@slide .5\Cvs \@plus.3\Cdp \else \z@ \fi}%
1426
+ {\normalfont\normalsize\headfont}}
1427
+ \fi
1428
+ \newcommand{\jsParagraphMark}{■}
1429
+ \if@twocolumn
1430
+ \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
1431
+ {\z@}{\if@slide .4\Cvs \else -1zw\fi}% 改行せず 1zw のアキ
1432
+ {\normalfont\normalsize\headfont\jsParagraphMark}}
1433
+ \else
1434
+ \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
1435
+ {0.5\Cvs \@plus.5\Cdp \@minus.2\Cdp}%
1436
+ {\if@slide .5\Cvs \@plus.3\Cdp \else -1zw\fi}% 改行せず 1zw のアキ
1437
+ {\normalfont\normalsize\headfont\jsParagraphMark}}
1438
+ \fi
1439
+ \if@twocolumn
1440
+ \newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
1441
+ {\z@}{\if@slide .4\Cvs \@plus.3\Cdp \else -1zw\fi}%
1442
+ {\normalfont\normalsize\headfont}}
1443
+ \else
1444
+ \newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
1445
+ {\z@}{\if@slide .5\Cvs \@plus.3\Cdp \else -1zw\fi}%
1446
+ {\normalfont\normalsize\headfont}}
1447
+ \fi
1448
+ \if@slide
1449
+ \setlength\leftmargini{1zw}
1450
+ \else
1451
+ \if@twocolumn
1452
+ \setlength\leftmargini{2zw}
1453
+ \else
1454
+ \setlength\leftmargini{3zw}
1455
+ \fi
1456
+ \fi
1457
+ \if@slide
1458
+ \setlength\leftmarginii {1zw}
1459
+ \setlength\leftmarginiii{1zw}
1460
+ \setlength\leftmarginiv {1zw}
1461
+ \setlength\leftmarginv {1zw}
1462
+ \setlength\leftmarginvi {1zw}
1463
+ \else
1464
+ \setlength\leftmarginii {2zw}
1465
+ \setlength\leftmarginiii{2zw}
1466
+ \setlength\leftmarginiv {2zw}
1467
+ \setlength\leftmarginv {1zw}
1468
+ \setlength\leftmarginvi {1zw}
1469
+ \fi
1470
+ \setlength \labelsep {0.5zw} % .5em
1471
+ \setlength \labelwidth{\leftmargini}
1472
+ \addtolength\labelwidth{-\labelsep}
1473
+ \setlength\partopsep{\z@} % {2\p@ \@plus 1\p@ \@minus 1\p@}
1474
+ \@beginparpenalty -\@lowpenalty
1475
+ \@endparpenalty -\@lowpenalty
1476
+ \@itempenalty -\@lowpenalty
1477
+ \def\@listi{\leftmargin\leftmargini
1478
+ \parsep \z@
1479
+ \topsep 0.5\baselineskip
1480
+ \itemsep \z@ \relax}
1481
+ \let\@listI\@listi
1482
+ \@listi
1483
+ \def\@listii{\leftmargin\leftmarginii
1484
+ \labelwidth\leftmarginii \advance\labelwidth-\labelsep
1485
+ \topsep \z@
1486
+ \parsep \z@
1487
+ \itemsep\parsep}
1488
+ \def\@listiii{\leftmargin\leftmarginiii
1489
+ \labelwidth\leftmarginiii \advance\labelwidth-\labelsep
1490
+ \topsep \z@
1491
+ \parsep \z@
1492
+ \itemsep\parsep}
1493
+ \def\@listiv {\leftmargin\leftmarginiv
1494
+ \labelwidth\leftmarginiv
1495
+ \advance\labelwidth-\labelsep}
1496
+ \def\@listv {\leftmargin\leftmarginv
1497
+ \labelwidth\leftmarginv
1498
+ \advance\labelwidth-\labelsep}
1499
+ \def\@listvi {\leftmargin\leftmarginvi
1500
+ \labelwidth\leftmarginvi
1501
+ \advance\labelwidth-\labelsep}
1502
+ \renewcommand{\theenumi}{\@arabic\c@enumi}
1503
+ \renewcommand{\theenumii}{\@alph\c@enumii}
1504
+ \renewcommand{\theenumiii}{\@roman\c@enumiii}
1505
+ \renewcommand{\theenumiv}{\@Alph\c@enumiv}
1506
+ \newcommand{\labelenumi}{\theenumi.}
1507
+ \newcommand{\labelenumii}{\inhibitglue (\theenumii )\inhibitglue}
1508
+ \newcommand{\labelenumiii}{\theenumiii.}
1509
+ \newcommand{\labelenumiv}{\theenumiv.}
1510
+ \renewcommand{\p@enumii}{\theenumi}
1511
+ \renewcommand{\p@enumiii}{\theenumi\inhibitglue (\theenumii )}
1512
+ \renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
1513
+ \newcommand\labelitemi{\textbullet}
1514
+ \newcommand\labelitemii{\normalfont\bfseries \textendash}
1515
+ \newcommand\labelitemiii{\textasteriskcentered}
1516
+ \newcommand\labelitemiv{\textperiodcentered}
1517
+ \newenvironment{description}{%
1518
+ \list{}{%
1519
+ \labelwidth=\leftmargin
1520
+ \labelsep=1zw
1521
+ \advance \labelwidth by -\labelsep
1522
+ \let \makelabel=\descriptionlabel}}{\endlist}
1523
+ \newcommand*\descriptionlabel[1]{\normalfont\headfont #1\hfil}
1524
+ \newenvironment{abstract}{%
1525
+ \begin{list}{}{%
1526
+ \listparindent=1zw
1527
+ \itemindent=\listparindent
1528
+ \rightmargin=0pt
1529
+ \leftmargin=5zw}\item[]}{\end{list}\vspace{\baselineskip}}
1530
+ \newenvironment{verse}{%
1531
+ \let \\=\@centercr
1532
+ \list{}{%
1533
+ \itemsep \z@
1534
+ \itemindent -2zw % 元: -1.5em
1535
+ \listparindent\itemindent
1536
+ \rightmargin \z@
1537
+ \advance\leftmargin 2zw}% 元: 1.5em
1538
+ \item\relax}{\endlist}
1539
+ \newenvironment{quotation}{%
1540
+ \list{}{%
1541
+ \listparindent\parindent
1542
+ \itemindent\listparindent
1543
+ \rightmargin \z@}%
1544
+ \item\relax}{\endlist}
1545
+ \newenvironment{quote}%
1546
+ {\list{}{\rightmargin\z@}\item\relax}{\endlist}
1547
+ \def\@begintheorem#1#2{\trivlist\labelsep=1zw
1548
+ \item[\hskip \labelsep{\headfont #1\ #2}]}
1549
+ \def\@opargbegintheorem#1#2#3{\trivlist\labelsep=1zw
1550
+ \item[\hskip \labelsep{\headfont #1\ #2(#3)}]}
1551
+ \newenvironment{titlepage}{%
1552
+ \pltx@cleartooddpage %% 2017-02-24
1553
+ \if@twocolumn
1554
+ \@restonecoltrue\onecolumn
1555
+ \else
1556
+ \@restonecolfalse\newpage
1557
+ \fi
1558
+ \thispagestyle{empty}%
1559
+ \ifodd\c@page\setcounter{page}\@ne\else\setcounter{page}\z@\fi %% 2017-02-24
1560
+ }%
1561
+ {\if@restonecol\twocolumn \else \newpage \fi
1562
+ \if@twoside\else
1563
+ \setcounter{page}\@ne
1564
+ \fi}
1565
+ \newcommand{\appendix}{\par
1566
+ \setcounter{chapter}{0}%
1567
+ \setcounter{section}{0}%
1568
+ \gdef\@chapapp{\appendixname}%
1569
+ \gdef\@chappos{}%
1570
+ \gdef\thechapter{\@Alph\c@chapter}}
1571
+ \setlength\arraycolsep{5\jsc@mpt}
1572
+ \setlength\tabcolsep{6\jsc@mpt}
1573
+ \setlength\arrayrulewidth{.4\jsc@mpt}
1574
+ \setlength\doublerulesep{2\jsc@mpt}
1575
+ \setlength\tabbingsep{\labelsep}
1576
+ \skip\@mpfootins = \skip\footins
1577
+ \setlength\fboxsep{3\jsc@mpt}
1578
+ \setlength\fboxrule{.4\jsc@mpt}
1579
+ \@addtoreset{equation}{chapter}
1580
+ \renewcommand\theequation
1581
+ {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@equation}
1582
+ \newcounter{figure}[chapter]
1583
+ \renewcommand \thefigure
1584
+ {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@figure}
1585
+ \def\fps@figure{tbp}
1586
+ \def\ftype@figure{1}
1587
+ \def\ext@figure{lof}
1588
+ \def\fnum@figure{\figurename\nobreak\thefigure}
1589
+ \newenvironment{figure}%
1590
+ {\@float{figure}}%
1591
+ {\end@float}
1592
+ \newenvironment{figure*}%
1593
+ {\@dblfloat{figure}}%
1594
+ {\end@dblfloat}
1595
+ \newcounter{table}[chapter]
1596
+ \renewcommand \thetable
1597
+ {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@table}
1598
+ \def\fps@table{tbp}
1599
+ \def\ftype@table{2}
1600
+ \def\ext@table{lot}
1601
+ \def\fnum@table{\tablename\nobreak\thetable}
1602
+ \newenvironment{table}%
1603
+ {\@float{table}}%
1604
+ {\end@float}
1605
+ \newenvironment{table*}%
1606
+ {\@dblfloat{table}}%
1607
+ {\end@dblfloat}
1608
+ \newlength\abovecaptionskip
1609
+ \newlength\belowcaptionskip
1610
+ \setlength\abovecaptionskip{5\jsc@mpt} % 元: 10\p@
1611
+ \setlength\belowcaptionskip{5\jsc@mpt} % 元: 0\p@
1612
+ \long\def\@makecaption#1#2{{\small
1613
+ \advance\leftskip .0628\linewidth
1614
+ \advance\rightskip .0628\linewidth
1615
+ \vskip\abovecaptionskip
1616
+ \sbox\@tempboxa{#1\hskip1zw\relax #2}%
1617
+ \ifdim \wd\@tempboxa <\hsize \centering \fi
1618
+ #1{\hskip1zw\relax}#2\par
1619
+ \vskip\belowcaptionskip}}
1620
+ \DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
1621
+ \DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
1622
+ \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
1623
+ \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
1624
+ \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
1625
+ \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
1626
+ \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
1627
+ \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
1628
+ \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
1629
+ \DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
1630
+ \DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
1631
+ \newcommand\@pnumwidth{1.55em}
1632
+ \newcommand\@tocrmarg{2.55em}
1633
+ \newcommand\@dotsep{4.5}
1634
+ \setcounter{tocdepth}{1}
1635
+ \newdimen\jsc@tocl@width
1636
+ \newcommand{\tableofcontents}{%
1637
+ \settowidth\jsc@tocl@width{\headfont\prechaptername\postchaptername}%
1638
+ \settowidth\@tempdima{\headfont\appendixname}%
1639
+ \ifdim\jsc@tocl@width<\@tempdima \setlength\jsc@tocl@width{\@tempdima}\fi
1640
+ \ifdim\jsc@tocl@width<2zw \divide\jsc@tocl@width by 2 \advance\jsc@tocl@width 1zw\fi
1641
+ \if@twocolumn
1642
+ \@restonecoltrue\onecolumn
1643
+ \else
1644
+ \@restonecolfalse
1645
+ \fi
1646
+ \chapter*{\contentsname}%
1647
+ \@mkboth{\contentsname}{}%
1648
+ \@starttoc{toc}%
1649
+ \if@restonecol\twocolumn\fi
1650
+ }
1651
+ \newcommand*{\l@part}[2]{%
1652
+ \ifnum \c@tocdepth >-2\relax
1653
+ \addpenalty{-\@highpenalty}%
1654
+ \addvspace{2.25em \@plus\jsc@mpt}%
1655
+ \begingroup
1656
+ \parindent \z@
1657
+ \rightskip \@tocrmarg
1658
+ \parfillskip -\rightskip
1659
+ {\leavevmode
1660
+ \large \headfont
1661
+ \setlength\@lnumwidth{4zw}%
1662
+ #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
1663
+ \nobreak
1664
+ \global\@nobreaktrue
1665
+ \everypar{\global\@nobreakfalse\everypar{}}%
1666
+ \endgroup
1667
+ \fi}
1668
+ \newcommand*{\l@chapter}[2]{%
1669
+ \ifnum \c@tocdepth >\m@ne
1670
+ \addpenalty{-\@highpenalty}%
1671
+ \addvspace{1.0em \@plus\jsc@mpt}
1672
+ \begingroup
1673
+ \parindent\z@
1674
+ \rightskip\@tocrmarg
1675
+ \parfillskip-\rightskip
1676
+ \leavevmode\headfont
1677
+ % \if@english\setlength\@lnumwidth{5.5em}\else\setlength\@lnumwidth{4.683zw}\fi
1678
+ \setlength\@lnumwidth{\jsc@tocl@width}\advance\@lnumwidth 2.683zw
1679
+ \advance\leftskip\@lnumwidth \hskip-\leftskip
1680
+ #1\nobreak\hfil\nobreak\hbox to\@pnumwidth{\hss#2}\par
1681
+ \penalty\@highpenalty
1682
+ \endgroup
1683
+ \fi}
1684
+ % \newcommand*{\l@section}{\@dottedtocline{1}{1zw}{3.683zw}}
1685
+ \newcommand*{\l@section}{%
1686
+ \@tempdima\jsc@tocl@width \advance\@tempdima -1zw
1687
+ \@dottedtocline{1}{\@tempdima}{3.683zw}}
1688
+ \newcommand*{\l@subsection}{%
1689
+ \@tempdima\jsc@tocl@width \advance\@tempdima 2.683zw
1690
+ \@dottedtocline{2}{\@tempdima}{3.5zw}}
1691
+ \newcommand*{\l@subsubsection}{%
1692
+ \@tempdima\jsc@tocl@width \advance\@tempdima 6.183zw
1693
+ \@dottedtocline{3}{\@tempdima}{4.5zw}}
1694
+ \newcommand*{\l@paragraph}{%
1695
+ \@tempdima\jsc@tocl@width \advance\@tempdima 10.683zw
1696
+ \@dottedtocline{4}{\@tempdima}{5.5zw}}
1697
+ \newcommand*{\l@subparagraph}{%
1698
+ \@tempdima\jsc@tocl@width \advance\@tempdima 16.183zw
1699
+ \@dottedtocline{5}{\@tempdima}{6.5zw}}
1700
+ \newdimen\@lnumwidth
1701
+ \def\numberline#1{\hb@xt@\@lnumwidth{#1\hfil}\hspace{0pt}}
1702
+ \def\jsTocLine{\leaders\hbox{%
1703
+ $\m@th \mkern \@dotsep mu\hbox{.}\mkern \@dotsep mu$}\hfill}
1704
+ \def\@dottedtocline#1#2#3#4#5{\ifnum #1>\c@tocdepth \else
1705
+ \vskip \z@ \@plus.2\jsc@mpt
1706
+ {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
1707
+ \parindent #2\relax\@afterindenttrue
1708
+ \interlinepenalty\@M
1709
+ \leavevmode
1710
+ \@lnumwidth #3\relax
1711
+ \advance\leftskip \@lnumwidth \null\nobreak\hskip -\leftskip
1712
+ {#4}\nobreak
1713
+ \jsTocLine \nobreak\hb@xt@\@pnumwidth{%
1714
+ \hfil\normalfont \normalcolor #5}\par}\fi}
1715
+ \newcommand{\listoffigures}{%
1716
+ \if@twocolumn\@restonecoltrue\onecolumn
1717
+ \else\@restonecolfalse\fi
1718
+ \chapter*{\listfigurename}%
1719
+ \@mkboth{\listfigurename}{}%
1720
+ \@starttoc{lof}%
1721
+ \if@restonecol\twocolumn\fi
1722
+ }
1723
+ \newcommand*{\l@figure}{\@dottedtocline{1}{1zw}{3.683zw}}
1724
+ \newcommand{\listoftables}{%
1725
+ \if@twocolumn\@restonecoltrue\onecolumn
1726
+ \else\@restonecolfalse\fi
1727
+ \chapter*{\listtablename}%
1728
+ \@mkboth{\listtablename}{}%
1729
+ \@starttoc{lot}%
1730
+ \if@restonecol\twocolumn\fi
1731
+ }
1732
+ \let\l@table\l@figure
1733
+ \newdimen\bibindent
1734
+ \setlength\bibindent{2zw}
1735
+ \newenvironment{thebibliography}[1]{%
1736
+ \global\let\presectionname\relax
1737
+ \global\let\postsectionname\relax
1738
+ \chapter*{\bibname}\@mkboth{\bibname}{}%
1739
+ \addcontentsline{toc}{chapter}{\bibname}%
1740
+ \list{\@biblabel{\@arabic\c@enumiv}}%
1741
+ {\settowidth\labelwidth{\@biblabel{#1}}%
1742
+ \leftmargin\labelwidth
1743
+ \advance\leftmargin\labelsep
1744
+ \@openbib@code
1745
+ \usecounter{enumiv}%
1746
+ \let\p@enumiv\@empty
1747
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
1748
+ \sloppy
1749
+ \clubpenalty4000
1750
+ \@clubpenalty\clubpenalty
1751
+ \widowpenalty4000%
1752
+ \sfcode`\.\@m}
1753
+ {\def\@noitemerr
1754
+ {\@latex@warning{Empty `thebibliography' environment}}%
1755
+ \endlist}
1756
+ \newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
1757
+ \let\@openbib@code\@empty
1758
+ \newenvironment{theindex}{% 索引を3段組で出力する環境
1759
+ \if@twocolumn
1760
+ \onecolumn\@restonecolfalse
1761
+ \else
1762
+ \clearpage\@restonecoltrue
1763
+ \fi
1764
+ \columnseprule.4pt \columnsep 2zw
1765
+ \ifx\multicols\@undefined
1766
+ \twocolumn[\@makeschapterhead{\indexname}%
1767
+ \addcontentsline{toc}{chapter}{\indexname}]%
1768
+ \else
1769
+ \ifdim\textwidth<\fullwidth
1770
+ \setlength{\evensidemargin}{\oddsidemargin}
1771
+ \setlength{\textwidth}{\fullwidth}
1772
+ \setlength{\linewidth}{\fullwidth}
1773
+ \begin{multicols}{3}[\chapter*{\indexname}%
1774
+ \addcontentsline{toc}{chapter}{\indexname}]%
1775
+ \else
1776
+ \begin{multicols}{2}[\chapter*{\indexname}%
1777
+ \addcontentsline{toc}{chapter}{\indexname}]%
1778
+ \fi
1779
+ \fi
1780
+ \@mkboth{\indexname}{}%
1781
+ \plainifnotempty % \thispagestyle{plain}
1782
+ \parindent\z@
1783
+ \parskip\z@ \@plus .3\jsc@mpt\relax
1784
+ \let\item\@idxitem
1785
+ \raggedright
1786
+ \footnotesize\narrowbaselines
1787
+ }{
1788
+ \ifx\multicols\@undefined
1789
+ \if@restonecol\onecolumn\fi
1790
+ \else
1791
+ \end{multicols}
1792
+ \fi
1793
+ \clearpage
1794
+ }
1795
+ \newcommand{\@idxitem}{\par\hangindent 4zw} % 元 40pt
1796
+ \newcommand{\subitem}{\@idxitem \hspace*{2zw}} % 元 20pt
1797
+ \newcommand{\subsubitem}{\@idxitem \hspace*{3zw}} % 元 30pt
1798
+ \newcommand{\indexspace}{\par \vskip 10\jsc@mpt \@plus5\jsc@mpt \@minus3\jsc@mpt\relax}
1799
+ \newcommand\seename{\if@english see\else →\fi}
1800
+ \newcommand\alsoname{\if@english see also\else →\fi}
1801
+ \@ifl@t@r\pfmtversion{2016/09/03}
1802
+ {\jsc@needsp@tchfalse}{\jsc@needsp@tchtrue}
1803
+ \ifjsc@needsp@tch
1804
+ \let\footnotes@ve=\footnote
1805
+ \def\footnote{\inhibitglue\footnotes@ve}
1806
+ \let\footnotemarks@ve=\footnotemark
1807
+ \def\footnotemark{\inhibitglue\footnotemarks@ve}
1808
+ \fi
1809
+ \@ifl@t@r\pfmtversion{2016/04/17}
1810
+ {\jsc@needsp@tchfalse}{\jsc@needsp@tchtrue}
1811
+ \ifjsc@needsp@tch
1812
+ \renewcommand\@makefnmark{%
1813
+ \ifydir \hbox{}\hbox{\@textsuperscript{\normalfont\@thefnmark}}\hbox{}%
1814
+ \else\hbox{\yoko\@textsuperscript{\normalfont\@thefnmark}}\fi}
1815
+ \fi
1816
+ \def\thefootnote{\ifnum\c@footnote>\z@\leavevmode\lower.5ex\hbox{*}\@arabic\c@footnote\fi}
1817
+ \renewcommand{\footnoterule}{%
1818
+ \kern-3\jsc@mpt
1819
+ \hrule width .4\columnwidth height 0.4\jsc@mpt
1820
+ \kern 2.6\jsc@mpt}
1821
+ \@addtoreset{footnote}{chapter}
1822
+ \long\def\@footnotetext{%
1823
+ \insert\footins\bgroup
1824
+ \normalfont\footnotesize
1825
+ \interlinepenalty\interfootnotelinepenalty
1826
+ \splittopskip\footnotesep
1827
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
1828
+ \hsize\columnwidth \@parboxrestore
1829
+ \protected@edef\@currentlabel{%
1830
+ \csname p@footnote\endcsname\@thefnmark
1831
+ }%
1832
+ \color@begingroup
1833
+ \@makefntext{%
1834
+ \rule\z@\footnotesep\ignorespaces}%
1835
+ \futurelet\jsc@next\jsc@fo@t}
1836
+ \def\jsc@fo@t{\ifcat\bgroup\noexpand\jsc@next \let\jsc@next\jsc@f@@t
1837
+ \else \let\jsc@next\jsc@f@t\fi \jsc@next}
1838
+ \def\jsc@f@@t{\bgroup\aftergroup\jsc@@foot\let\jsc@next}
1839
+ \def\jsc@f@t#1{#1\jsc@@foot}
1840
+ \def\jsc@@foot{\@finalstrut\strutbox\color@endgroup\egroup
1841
+ \ifx\pltx@foot@penalty\@undefined\else
1842
+ \ifhmode\null\fi
1843
+ \ifnum\pltx@foot@penalty=\z@\else
1844
+ \penalty\pltx@foot@penalty
1845
+ \pltx@foot@penalty\z@
1846
+ \fi
1847
+ \fi}
1848
+ \newcommand\@makefntext[1]{%
1849
+ \advance\leftskip 3zw
1850
+ \parindent 1zw
1851
+ \noindent
1852
+ \llap{\@makefnmark\hskip0.3zw}#1}
1853
+ \def\@inhibitglue{%
1854
+ \futurelet\@let@token\@@inhibitglue}
1855
+ \begingroup
1856
+ \let\GDEF=\gdef
1857
+ \let\CATCODE=\catcode
1858
+ \let\ENDGROUP=\endgroup
1859
+ \CATCODE`k=12
1860
+ \CATCODE`a=12
1861
+ \CATCODE`n=12
1862
+ \CATCODE`j=12
1863
+ \CATCODE`i=12
1864
+ \CATCODE`c=12
1865
+ \CATCODE`h=12
1866
+ \CATCODE`r=12
1867
+ \CATCODE`t=12
1868
+ \CATCODE`e=12
1869
+ \GDEF\KANJI@CHARACTER{kanji character }
1870
+ \ENDGROUP
1871
+ \def\@@inhibitglue{%
1872
+ \expandafter\expandafter\expandafter\jsc@inhibitglue\expandafter\meaning\expandafter\@let@token\KANJI@CHARACTER\relax\jsc@end}
1873
+ \expandafter\def\expandafter\jsc@inhibitglue\expandafter#\expandafter1\KANJI@CHARACTER#2#3\jsc@end{%
1874
+ \def\jsc@ig@temp{#1}%
1875
+ \ifx\jsc@ig@temp\@empty
1876
+ \ifnum\the\inhibitxspcode`#2=2\relax
1877
+ \inhibitglue
1878
+ \fi
1879
+ \fi}
1880
+ \let\everyparhook=\@inhibitglue
1881
+ \AtBeginDocument{\everypar{\everyparhook}}
1882
+ \def\@doendpe{%
1883
+ \@endpetrue
1884
+ \def\par{%
1885
+ \@restorepar\clubpenalty\@clubpenalty\everypar{\everyparhook}\par\@endpefalse}%
1886
+ \everypar{{\setbox\z@\lastbox}\everypar{\everyparhook}\@endpefalse\everyparhook}}
1887
+ \def\@setminipage{%
1888
+ \@minipagetrue
1889
+ \everypar{\@minipagefalse\everypar{\everyparhook}}%
1890
+ }
1891
+ \def\@item[#1]{%
1892
+ \if@noparitem
1893
+ \@donoparitem
1894
+ \else
1895
+ \if@inlabel
1896
+ \indent \par
1897
+ \fi
1898
+ \ifhmode
1899
+ \unskip\unskip \par
1900
+ \fi
1901
+ \if@newlist
1902
+ \if@nobreak
1903
+ \@nbitem
1904
+ \else
1905
+ \addpenalty\@beginparpenalty
1906
+ \addvspace\@topsep
1907
+ \addvspace{-\parskip}%
1908
+ \fi
1909
+ \else
1910
+ \addpenalty\@itempenalty
1911
+ \addvspace\itemsep
1912
+ \fi
1913
+ \global\@inlabeltrue
1914
+ \fi
1915
+ \everypar{%
1916
+ \@minipagefalse
1917
+ \global\@newlistfalse
1918
+ \if@inlabel
1919
+ \global\@inlabelfalse
1920
+ {\setbox\z@\lastbox
1921
+ \ifvoid\z@
1922
+ \kern-\itemindent
1923
+ \fi}%
1924
+ \box\@labels
1925
+ \penalty\z@
1926
+ \fi
1927
+ \if@nobreak
1928
+ \@nobreakfalse
1929
+ \clubpenalty \@M
1930
+ \else
1931
+ \clubpenalty \@clubpenalty
1932
+ \everypar{\everyparhook}%
1933
+ \fi\everyparhook}%
1934
+ \if@noitemarg
1935
+ \@noitemargfalse
1936
+ \if@nmbrlist
1937
+ \refstepcounter\@listctr
1938
+ \fi
1939
+ \fi
1940
+ \sbox\@tempboxa{\makelabel{#1}}%
1941
+ \global\setbox\@labels\hbox{%
1942
+ \unhbox\@labels
1943
+ \hskip \itemindent
1944
+ \hskip -\labelwidth
1945
+ \hskip -\labelsep
1946
+ \ifdim \wd\@tempboxa >\labelwidth
1947
+ \box\@tempboxa
1948
+ \else
1949
+ \hbox to\labelwidth {\unhbox\@tempboxa}%
1950
+ \fi
1951
+ \hskip \labelsep}%
1952
+ \ignorespaces}
1953
+ \def\@afterheading{%
1954
+ \@nobreaktrue
1955
+ \everypar{%
1956
+ \if@nobreak
1957
+ \@nobreakfalse
1958
+ \clubpenalty \@M
1959
+ \if@afterindent \else
1960
+ {\setbox\z@\lastbox}%
1961
+ \fi
1962
+ \else
1963
+ \clubpenalty \@clubpenalty
1964
+ \everypar{\everyparhook}%
1965
+ \fi\everyparhook}}
1966
+ \def\@gnewline #1{%
1967
+ \ifvmode
1968
+ \@nolnerr
1969
+ \else
1970
+ \unskip \reserved@e {\reserved@f#1}\nobreak \hfil \break \null
1971
+ \inhibitglue \ignorespaces
1972
+ \fi}
1973
+ \if@jslogo
1974
+ \IfFileExists{jslogo.sty}{%
1975
+ \RequirePackage{jslogo}%
1976
+ \def\小{\jslg@small}%
1977
+ \def\上小{\jslg@uppersmall}%
1978
+ }{%
1979
+ \ClassWarningNoLine{\jsc@clsname}{%
1980
+ The redefinitions of LaTeX-related logos has\MessageBreak
1981
+ been moved to jslogo.sty since 2016, but\MessageBreak
1982
+ jslogo.sty not found. Current release of\MessageBreak
1983
+ 'jsclasses' includes it, so please check\MessageBreak
1984
+ the installation}%
1985
+ }
1986
+ \fi
1987
+ \newcommand{\prepartname}{\if@english Part~\else 第\fi}
1988
+ \newcommand{\postpartname}{\if@english\else 部\fi}
1989
+ \newcommand{\prechaptername}{\if@english Chapter~\else 第\fi}
1990
+ \newcommand{\postchaptername}{\if@english\else 章\fi}
1991
+ \newcommand{\presectionname}{}% 第
1992
+ \newcommand{\postsectionname}{}% 節
1993
+ \newcommand{\contentsname}{\if@english Contents\else 目次\fi}
1994
+ \newcommand{\listfigurename}{\if@english List of Figures\else 図目次\fi}
1995
+ \newcommand{\listtablename}{\if@english List of Tables\else 表目次\fi}
1996
+ \newcommand{\refname}{\if@english References\else 参考文献\fi}
1997
+ \newcommand{\bibname}{\if@english Bibliography\else 参考文献\fi}
1998
+ \newcommand{\indexname}{\if@english Index\else 索引\fi}
1999
+ \newcommand{\figurename}{\if@english Fig.~\else 図\fi}
2000
+ \newcommand{\tablename}{\if@english Table~\else 表\fi}
2001
+ \newcommand{\appendixname}{\if@english \else 付録\fi}
2002
+ \newif\if西暦 \西暦true
2003
+ \def\西暦{\西暦true}
2004
+ \def\和暦{\西暦false}
2005
+ \newcount\heisei \heisei\year \advance\heisei-1988\relax
2006
+ \def\pltx@today@year@#1{%
2007
+ \ifnum\numexpr\year-#1=1 元\else
2008
+ \ifnum1=\iftdir\ifmdir0\else1\fi\else0\fi
2009
+ \kansuji\numexpr\year-#1\relax
2010
+ \else
2011
+ \number\numexpr\year-#1\relax\nobreak
2012
+ \fi
2013
+ \fi 年
2014
+ }
2015
+ \def\pltx@today@year{%
2016
+ \ifnum\numexpr\year*10000+\month*100+\day<19890108
2017
+ 昭和\pltx@today@year@{1925}%
2018
+ \else\ifnum\numexpr\year*10000+\month*100+\day<20190501
2019
+ 平成\pltx@today@year@{1988}%
2020
+ \else
2021
+ 令和\pltx@today@year@{2018}%
2022
+ \fi\fi}
2023
+ \def\today{%
2024
+ \if@english
2025
+ \ifcase\month\or
2026
+ January\or February\or March\or April\or May\or June\or
2027
+ July\or August\or September\or October\or November\or December\fi
2028
+ \space\number\day, \number\year
2029
+ \else\if西暦
2030
+ \ifnum1=\iftdir\ifmdir0\else1\fi\else0\fi \kansuji\year
2031
+ \else\number\year\nobreak\fi 年
2032
+ \else
2033
+ \pltx@today@year
2034
+ \fi
2035
+ \ifnum1=\iftdir\ifmdir0\else1\fi\else0\fi
2036
+ \kansuji\month 月
2037
+ \kansuji\day 日
2038
+ \else
2039
+ \number\month\nobreak 月
2040
+ \number\day\nobreak 日
2041
+ \fi\fi}
2042
+ \hyphenation{ado-be post-script ghost-script phe-nom-e-no-log-i-cal man-u-script}
2043
+ \if@report \pagestyle{plain} \else \pagestyle{headings} \fi
2044
+ \pagenumbering{arabic}
2045
+ \if@twocolumn
2046
+ \twocolumn
2047
+ \sloppy
2048
+ \flushbottom
2049
+ \else
2050
+ \onecolumn
2051
+ \raggedbottom
2052
+ \fi
2053
+ \if@slide
2054
+ \renewcommand\kanjifamilydefault{\gtdefault}
2055
+ \renewcommand\familydefault{\sfdefault}
2056
+ \raggedright
2057
+ \xkanjiskip=0.1em\relax
2058
+ \fi
2059
+ \@ifpackageloaded{exppl2e}{\jsc@needsp@tchtrue}{\jsc@needsp@tchfalse}
2060
+ \ifjsc@needsp@tch\else
2061
+ \expandafter\endinput
2062
+ \fi
2063
+ \def\@gnewline #1{%
2064
+ \ifvmode
2065
+ \@nolnerr
2066
+ \else
2067
+ \unskip \reserved@e {\reserved@f#1}\nobreak \hfil \break \hskip \z@
2068
+ \ignorespaces
2069
+ \fi}
2070
+ \endinput
2071
+ %%
2072
+ %% End of file `jsbook.cls'.