review 3.0.0.preview4 → 3.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/NEWS.ja.md +61 -4
  3. data/NEWS.md +61 -4
  4. data/README.md +2 -1
  5. data/doc/config.yml.sample +48 -20
  6. data/doc/config.yml.sample-simple +7 -6
  7. data/doc/format_idg.ja.md +6 -2
  8. data/doc/pdfmaker.ja.md +95 -4
  9. data/doc/pdfmaker.md +79 -0
  10. data/doc/quickstart.ja.md +26 -3
  11. data/doc/quickstart.md +25 -3
  12. data/doc/writing_vertical.ja.md +19 -2
  13. data/lib/review/epubmaker.rb +27 -27
  14. data/lib/review/i18n.yml +1 -0
  15. data/lib/review/init.rb +34 -22
  16. data/lib/review/latexbuilder.rb +95 -18
  17. data/lib/review/pdfmaker.rb +1 -0
  18. data/lib/review/update.rb +60 -25
  19. data/lib/review/version.rb +1 -1
  20. data/review.gemspec +1 -1
  21. data/samples/sample-book/src/config.yml +3 -3
  22. data/samples/syntax-book/config.yml +3 -3
  23. data/templates/latex/config.erb +3 -0
  24. data/templates/latex/review-jlreq/README.md +97 -7
  25. data/templates/latex/review-jlreq/review-base.sty +8 -0
  26. data/templates/latex/review-jlreq/review-jlreq.cls +28 -6
  27. data/templates/latex/review-jsbook/README.md +18 -20
  28. data/templates/latex/review-jsbook/review-base.sty +15 -0
  29. data/templates/latex/review-jsbook/review-jsbook.cls +172 -230
  30. data/test/test_epubmaker_cmd.rb +1 -1
  31. data/test/test_helper.rb +3 -3
  32. data/test/test_image_finder.rb +9 -9
  33. data/test/test_latexbuilder.rb +20 -1
  34. data/test/test_makerhelper.rb +12 -12
  35. data/test/test_pdfmaker_cmd.rb +1 -1
  36. data/test/test_update.rb +18 -4
  37. data/test/test_zip_exporter.rb +7 -7
  38. data/vendor/jsclasses/.gitignore +163 -0
  39. data/vendor/jsclasses/LICENSE +25 -0
  40. data/vendor/jsclasses/Makefile +88 -0
  41. data/vendor/jsclasses/README.md +43 -0
  42. data/vendor/jsclasses/create_archive.sh +59 -0
  43. data/vendor/jsclasses/jis/Makefile +62 -0
  44. data/vendor/jsclasses/jis/jsarticle.cls +1935 -0
  45. data/vendor/jsclasses/jis/jsbook.cls +2026 -0
  46. data/vendor/jsclasses/jis/jsclasses.dtx +5961 -0
  47. data/vendor/jsclasses/jis/jsclasses.ins +8 -0
  48. data/vendor/jsclasses/jis/jslogo.dtx +413 -0
  49. data/vendor/jsclasses/jis/jslogo.ins +4 -0
  50. data/vendor/jsclasses/jis/jslogo.sty +223 -0
  51. data/vendor/jsclasses/jis/jspf.cls +1766 -0
  52. data/vendor/jsclasses/jis/jsreport.cls +2020 -0
  53. data/vendor/jsclasses/jis/jsverb.dtx +322 -0
  54. data/vendor/jsclasses/jis/jsverb.ins +4 -0
  55. data/vendor/jsclasses/jis/jsverb.sty +128 -0
  56. data/vendor/jsclasses/jis/kiyou.cls +1882 -0
  57. data/vendor/jsclasses/jis/minijs.sty +52 -0
  58. data/vendor/jsclasses/jis/okumacro.dtx +1179 -0
  59. data/vendor/jsclasses/jis/okumacro.ins +4 -0
  60. data/vendor/jsclasses/jis/okumacro.sty +455 -0
  61. data/vendor/jsclasses/jis/okuverb.dtx +243 -0
  62. data/vendor/jsclasses/jis/okuverb.ins +4 -0
  63. data/vendor/jsclasses/jis/okuverb.sty +102 -0
  64. data/vendor/jsclasses/jis/winjis.sty +87 -0
  65. data/vendor/jsclasses/jsarticle.cls +1938 -0
  66. data/vendor/jsclasses/jsbook.cls +2029 -0
  67. data/vendor/jsclasses/jsclasses.dtx +5966 -0
  68. data/vendor/jsclasses/jsclasses.ins +8 -0
  69. data/vendor/jsclasses/jsclasses.pdf +0 -0
  70. data/vendor/jsclasses/jslogo.dtx +424 -0
  71. data/vendor/jsclasses/jslogo.ins +4 -0
  72. data/vendor/jsclasses/jslogo.pdf +0 -0
  73. data/vendor/jsclasses/jslogo.sty +223 -0
  74. data/vendor/jsclasses/jspf.cls +1769 -0
  75. data/vendor/jsclasses/jsreport.cls +2023 -0
  76. data/vendor/jsclasses/jsverb.dtx +333 -0
  77. data/vendor/jsclasses/jsverb.ins +4 -0
  78. data/vendor/jsclasses/jsverb.pdf +0 -0
  79. data/vendor/jsclasses/jsverb.sty +128 -0
  80. data/vendor/jsclasses/kiyou.cls +1885 -0
  81. data/vendor/jsclasses/minijs.sty +52 -0
  82. data/vendor/jsclasses/okumacro.dtx +1184 -0
  83. data/vendor/jsclasses/okumacro.ins +4 -0
  84. data/vendor/jsclasses/okumacro.pdf +0 -0
  85. data/vendor/jsclasses/okumacro.sty +458 -0
  86. data/vendor/jsclasses/okuverb.dtx +254 -0
  87. data/vendor/jsclasses/okuverb.ins +4 -0
  88. data/vendor/jsclasses/okuverb.pdf +0 -0
  89. data/vendor/jsclasses/okuverb.sty +102 -0
  90. data/vendor/jsclasses/winjis.sty +87 -0
  91. metadata +55 -2
@@ -0,0 +1,4 @@
1
+ \def\batchfile{okumacro.ins}
2
+ \input docstrip.tex
3
+ \keepsilent
4
+ \generateFile{okumacro.sty}{f}{\from{okumacro.dtx}{okumacro}}
@@ -0,0 +1,455 @@
1
+ %%
2
+ %% This is file `okumacro.sty',
3
+ %% generated with the docstrip utility.
4
+ %%
5
+ %% The original source files were:
6
+ %%
7
+ %% okumacro.dtx (with options: `okumacro')
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 okumacro.sty.
15
+ %%
16
+ %% For distribution of the original source see the terms
17
+ %% for copying and modification in the file okumacro.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
+ \NeedsTeXFormat{pLaTeX2e}
24
+ \ProvidesPackage{okumacro}[2018/06/11 okumura, texjporg]
25
+ \providecommand{\rubyfamily}{}
26
+ \def\kanjistrut{\iftdir
27
+ \vrule \@height0.5zw \@depth0.5zw \@width\z@
28
+ \else
29
+ \vrule \@height0.88zw \@depth0.12zw \@width\z@
30
+ \fi}
31
+ \chardef\okumacro@zsp=\jis"2121\relax
32
+ \newcommand{\ruby}[3][0zw]{%
33
+ \okumacro@zsp
34
+ \kern-1zw\relax
35
+ \dimen3=\f@size\p@
36
+ \setbox1=\hbox{#2}%
37
+ \setbox3=\hbox{\rubyfamily\fontsize{0.5\dimen3}{0pt}\selectfont #3}%
38
+ \dimen1=#1\relax
39
+ \ifdim\dimen1=\z@
40
+ \ifdim\wd1>\wd3 \dimen1=\wd1 \else \dimen1=\wd3 \fi
41
+ \else
42
+ \ifdim\dimen1<\wd1
43
+ \dimen1=\wd1
44
+ \fi
45
+ \fi
46
+ \hbox{%
47
+ \kanjiskip=0pt plus 2fil
48
+ \xkanjiskip=0pt plus 2fil
49
+ \vbox{%
50
+ \hbox to \dimen1{\rubyfamily
51
+ \fontsize{0.5\dimen3}{0pt}\selectfont \kanjistrut
52
+ \ifdim\dimen1<\wd3
53
+ \hss\unhbox3\hss
54
+ \else
55
+ \hfil\unhbox3\hfil
56
+ \fi
57
+ }%
58
+ \nointerlineskip
59
+ \hbox to \dimen1{\kanjistrut\hfil\unhbox1\hfil}}}%
60
+ \kern-1zw\relax\okumacro@zsp}
61
+ \def\kenten#1{%
62
+ \okumacro@zsp
63
+ \kern-1zw\relax
64
+ \setbox1=\hbox to\z@{\hbox to 1zw{\hss $B!&(B\hss}\hss}%
65
+ \ht1=.63zw
66
+ \@kenten#1\end\relax
67
+ \kern-1zw\relax\okumacro@zsp}
68
+ \def\@kenten#1#2{%
69
+ \ifx#1\end \let\next=\relax \else
70
+ \raise.75zw\copy1\nobreak #1\ifx#2\end\else\hskip\kanjiskip\relax\fi
71
+ \let\next=\@kenten
72
+ \fi\next#2}
73
+ \newcommand{\kintou}[2]{%
74
+ \leavevmode
75
+ \hbox to #1{%
76
+ \kanjiskip=0pt plus 1fil minus 1fil
77
+ \xkanjiskip=\kanjiskip
78
+ #2}}
79
+ \newcommand{\$BMK(B}{{\@tempcnta=\year \@tempcntb=\month
80
+ \ifnum \@tempcntb<3
81
+ \advance \@tempcnta by -1
82
+ \advance \@tempcntb by 12
83
+ \fi
84
+ \multiply \@tempcntb by 13
85
+ \advance \@tempcntb by 8
86
+ \divide \@tempcntb by 5
87
+ \advance \@tempcntb by \@tempcnta
88
+ \divide \@tempcnta by 4
89
+ \advance \@tempcntb by \@tempcnta
90
+ \divide \@tempcnta by 25
91
+ \advance \@tempcntb by -\@tempcnta
92
+ \divide \@tempcnta by 4
93
+ \advance \@tempcntb by \@tempcnta
94
+ \advance \@tempcntb by \day
95
+ \@tempcnta=\@tempcntb
96
+ \divide \@tempcntb by 7
97
+ \multiply \@tempcntb by 7
98
+ \advance \@tempcnta by -\@tempcntb
99
+ \ifcase \@tempcnta $BF|(B\or $B7n(B\or $B2P(B\or $B?e(B\or $BLZ(B\or $B6b(B\or $BEZ(B\fi}}
100
+ \def\$B0';"(B{\noindent $BGR7<(B\hspace{1zw}\ifcase\month\or
101
+ $B874((B\or $B=U4((B\or $BAa=U(B\or $BM[=U(B\or $B?7NP(B\or $B8~=k(B\or
102
+ $BLT=k(B\or $B;D=k(B\or $B=i=)(B\or $BCg=)(B\or $BHU=)(B\or $B=iE_(B\fi
103
+ $B$N8u!$$^$9$^$9$4@61I$N$3$H$H$*4n$S?=$7>e$2$^$9!#(B}
104
+ \def\myallowbreak{\@ifnextchar\egroup{}{\penalty\exhyphenpenalty}{}}
105
+ \begingroup
106
+ \catcode`\-=\active
107
+ \catcode`\.=\active
108
+ \catcode`\/=\active
109
+ \gdef\mytth@@k{%
110
+ \catcode`\-=\active \def-{\char`\-\myallowbreak}%
111
+ \catcode`\.=\active \def.{\char`\.\myallowbreak}%
112
+ \catcode`\/=\active \def/{\char`\/\myallowbreak}%
113
+ }
114
+ \endgroup
115
+ \def\mytt{\ttfamily
116
+ \catcode`\#=12
117
+ \catcode`\&=12
118
+ \catcode`\^=12
119
+ \catcode`\~=12
120
+ \catcode`\_=12
121
+ \chardef\{=`\{
122
+ \chardef\}=`\}
123
+ \chardef\_=`\_
124
+ \def\\{\char"5C\penalty\exhyphenpenalty{}}% $B%P%C%/%9%i%C%7%e(B
125
+ \spaceskip=.32em plus.16em minus.09em
126
+ \frenchspacing
127
+ \noautoxspacing
128
+ \mytth@@k}
129
+ \DeclareRobustCommand{\yen}{{\ooalign{Y\crcr\hss=\hss}}}
130
+ \providecommand{\BS}{\texttt{\char"5C}}
131
+ {\catcode`\|=\z@ \catcode`\\=12|gdef|bslash{\}}
132
+ \newcommand{\asciibar}{%
133
+ \makebox[0.525em]{\rule[-0.2ex]{0.15ex}{0.7ex}\kern-0.15ex
134
+ \rule[0.8ex]{0.15ex}{0.7ex}}}
135
+ \def\$B!]!](B{$B!=(B\kern-.5zw$B!=(B\kern-.5zw$B!=(B}
136
+ \def\$B!=!=(B{$B!=(B\kern-.5zw$B!=(B\kern-.5zw$B!=(B}
137
+ \ifx\ucs\@undefined\else
138
+ \begingroup
139
+ \kansujichar1="FF0D
140
+ \kansujichar2="2014
141
+ \expandafter\expandafter\expandafter\gdef
142
+ \expandafter\csname\expandafter\kansuji\expandafter1%
143
+ \expandafter\endcsname\kansuji1{$B!=(B\kern-.5zw$B!=(B\kern-.5zw$B!=(B}
144
+ \expandafter\expandafter\expandafter\gdef
145
+ \expandafter\csname\expandafter\kansuji\expandafter2%
146
+ \expandafter\endcsname\kansuji2{$B!=(B\kern-.5zw$B!=(B\kern-.5zw$B!=(B}
147
+ \endgroup
148
+ \fi
149
+ \newcommand{\removept}[2]{%
150
+ \edef#2{\expandafter\@removePT\the#1}}
151
+ {\catcode`p=12 \catcode`t=12 \gdef\@removePT#1pt{#1}}
152
+ \newcommand{\okukeytop}[1]{{\leavevmode\kern1pt
153
+ \setbox1=\hbox{\normalfont\sffamily [}%
154
+ \dimen1=\ht1
155
+ \removept{\dimen1}{\tempC}%
156
+ \setbox0=\hbox{\normalfont\sffamily #1}%
157
+ \dp0=0pt
158
+ \dimen0=\wd0
159
+ \ifdim\dimen0<\ht1 \dimen0=\ht1 \fi
160
+ \advance \dimen0 by 5pt
161
+ \removept{\dimen0}{\tempA}%
162
+ \divide \dimen0 by 2
163
+ \removept{\dimen0}{\tempB}%
164
+ \unitlength=1pt
165
+ \advance \dimen1 by 2pt
166
+ \hbox{\vrule height\dimen1 depth2pt width0pt}%
167
+ \begin{picture}(\tempA,\tempC)
168
+ \put(0,0){\line(0,1){\tempC}}
169
+ \put(\tempA,0){\line(0,1){\tempC}}
170
+ \put(\tempB,0){\oval(\tempA,4)[b]}
171
+ \put(\tempB,\tempC){\oval(\tempA,4)[t]}
172
+ \put(\tempB,0){\makebox(0,0)[b]{\box0}}
173
+ \end{picture}\kern1pt}}
174
+ \expandafter\ifx\csname ver@tascmac.sty\endcsname\relax
175
+ \newcommand{\keytop}{\okukeytop}
176
+ \else
177
+ \renewcommand{\keytop}{\okukeytop}
178
+ \fi
179
+ \def\RETMARK{{\unitlength=1pt
180
+ \setbox0=\hbox{\normalfont\ttfamily [}%
181
+ \dimen0=\ht0
182
+ \removept{\dimen0}{\tempA}%
183
+ \advance \dimen0 by -1pt
184
+ \removept{\dimen0}{\tempB}%
185
+ \begin{picture}(\tempA,\tempA)
186
+ \put(\tempA,1){\line(0,1){\tempB}}
187
+ \put(\tempA,1){\vector(-1,0){\tempA}}
188
+ \end{picture}}}
189
+ \newcommand{\okureturn}{\okukeytop{\RETMARK}}
190
+ \expandafter\ifx\csname ver@tascmac.sty\endcsname\relax
191
+ \newcommand{\return}{\okureturn}
192
+ \else
193
+ \renewcommand{\return}{\okureturn}
194
+ \fi
195
+ \newcommand{\upkey}{\raisebox{-2pt}{%
196
+ \setlength{\unitlength}{1pt}%
197
+ \thinlines
198
+ \begin{picture}(14,9)
199
+ \put(7,2){\vector(0,1){8}}
200
+ \put(1,2){\line(0,1){7}}
201
+ \put(13,2){\line(0,1){7}}
202
+ \put(7,9){\oval(12,4)[t]}
203
+ \put(7,2){\oval(12,4)[b]}
204
+ \end{picture}%
205
+ }}
206
+ \newcommand{\downkey}{\raisebox{-2pt}{%
207
+ \setlength{\unitlength}{1pt}%
208
+ \thinlines
209
+ \begin{picture}(14,9)
210
+ \put(7,10){\vector(0,-1){8}}
211
+ \put(1,2){\line(0,1){7}}
212
+ \put(13,2){\line(0,1){7}}
213
+ \put(7,9){\oval(12,4)[t]}
214
+ \put(7,2){\oval(12,4)[b]}
215
+ \end{picture}%
216
+ }}
217
+ \newcommand{\rightkey}{\raisebox{-2pt}{%
218
+ \setlength{\unitlength}{1pt}%
219
+ \thinlines
220
+ \begin{picture}(14,9)
221
+ \put(3,6){\vector(1,0){8}}
222
+ \put(1,2){\line(0,1){7}}
223
+ \put(13,2){\line(0,1){7}}
224
+ \put(7,9){\oval(12,4)[t]}
225
+ \put(7,2){\oval(12,4)[b]}
226
+ \end{picture}%
227
+ }}
228
+ \newcommand{\leftkey}{\raisebox{-2pt}{%
229
+ \setlength{\unitlength}{1pt}%
230
+ \thinlines
231
+ \begin{picture}(14,9)
232
+ \put(11,6){\vector(-1,0){8}}
233
+ \put(1,2){\line(0,1){7}}
234
+ \put(13,2){\line(0,1){7}}
235
+ \put(7,9){\oval(12,4)[t]}
236
+ \put(7,2){\oval(12,4)[b]}
237
+ \end{picture}%
238
+ }}
239
+ \newcommand{\MARU}[1]{{%
240
+ \ooalign{\hfil
241
+ \@ifundefined{scalebox}{%
242
+ #1\/\hfil\crcr\raise.167ex}{\raise.1zw\hbox{\scalebox{0.8}{#1\/}}\hfil\crcr\raise.1zw}%
243
+ \hbox{\fontencoding{OMS}\fontfamily{cmsy}\fontseries{m}\fontshape{n}\selectfont
244
+ \char"0D}}}}
245
+ \newcommand{\PiC}{P\kern-.12em\lower.5ex\hbox{I}\kern-.075emC}
246
+ \newcommand{\PiCTeX}{\PiC\kern-.11em\TeX}
247
+ \newcommand{\JTeX}{\leavevmode\lower.5ex\hbox{J}\kern-.17em\TeX}
248
+ \newcommand{\JLaTeX}{\leavevmode\lower.5ex\hbox{\rm J}\kern-.17em\LaTeX}
249
+ \DeclareRobustCommand{\JBibTeX}{$\mbox{%
250
+ \lower.5ex\hbox{J}\ifx\f@family\cmr\kern-.15em\else\kern-.05em\fi
251
+ \BibTeX}$}
252
+ \newcommand{\pTeXsT}{p\kern-.21em\TeX\kern-.10em s\kern-.21em T}
253
+ \newcommand{\iTeX}{\accent'27\i\TeX}
254
+ \newcommand{\MlTeX}{M\kern-.1667em\lower.5ex\hbox{L}\kern-.25em\TeX}
255
+ \newenvironment{dangerous}{%
256
+ \vspace{3pt}%
257
+ \begin{list}{\ding{"2E}}{%
258
+ \setlength{\leftmargin}{3zw}%
259
+ \setlength{\itemindent}{0pt}%
260
+ \setlength{\labelwidth}{2zw}%
261
+ \setlength{\labelsep}{6pt}%
262
+ \setlength{\rightmargin}{0pt}%
263
+ \setlength{\itemsep}{0.5\baselineskip}%
264
+ \setlength{\parsep}{0pt}%
265
+ \setlength{\topsep}{0.5\baselineskip}%
266
+ \setlength{\partopsep}{0pt}%
267
+ \setlength{\listparindent}{0zw}%
268
+ }\small}{\end{list}}
269
+ \newcommand{\namelistlabel}[1]{\hspace{1zw}#1\hfil}
270
+ \newenvironment{namelist}[1]{%
271
+ \begin{list}{}{%
272
+ \let\makelabel=\namelistlabel
273
+ \settowidth{\labelwidth}{#1}%
274
+ \addtolength{\labelwidth}{2zw}%
275
+ \setlength{\leftmargin}{\labelwidth}%
276
+ \setlength{\labelsep}{0pt}%
277
+ }}{\end{list}}
278
+ \newenvironment{mybibliography}[1]{%
279
+ \list{\@biblabel{\@arabic\c@enumiv}}%
280
+ {\settowidth\labelwidth{\@biblabel{#1}}%
281
+ \leftmargin\labelwidth
282
+ \advance\leftmargin\labelsep
283
+ \@openbib@code
284
+ \@nmbrlisttrue\def\@listctr{enumiv}%
285
+ \let\p@enumiv\@empty
286
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
287
+ \sloppy
288
+ \clubpenalty4000
289
+ \@clubpenalty\clubpenalty
290
+ \widowpenalty4000%
291
+ \sfcode`\.\@m}
292
+ {\def\@noitemerr
293
+ {\@latex@warning{Empty `mybibliography' environment}}%
294
+ \endlist}
295
+ \newenvironment{FRAME}{\begin{trivlist}\item[]
296
+ \hrule width\linewidth
297
+ \hbox to \linewidth\bgroup
298
+ \advance\linewidth by -30pt
299
+ \hsize=\linewidth
300
+ \vrule\hfill
301
+ \vbox\bgroup
302
+ \vskip15pt
303
+ \def\thempfootnote{\arabic{mpfootnote}}% $B5SCm$r;;MQ?t;z$K(B
304
+ \begin{minipage}{\linewidth}}{%
305
+ \end{minipage}\vskip15pt
306
+ \egroup\hfill\vrule
307
+ \egroup\hrule width\linewidth
308
+ \end{trivlist}}
309
+ \newcommand{\SHUTTEN}[1]{%
310
+ \par\nobreak\removelastskip\rightline{\small#1}\medbreak}
311
+ \expandafter\ifx\csname ver@tascmac.sty\endcsname\relax
312
+ \newdimen\@scw
313
+ \newbox\scb@x
314
+ \fi
315
+ \newenvironment{okuscreen}[1][1]%
316
+ {\def\screensc@le{#1}\@scw=\linewidth \advance \@scw by -20pt
317
+ \dimen1=#1\p@\relax
318
+ \@tempcnta=\dimen1\relax
319
+ \@tempcntb=65536\relax
320
+ \divide\@scw by \@tempcnta
321
+ \multiply\@scw by \@tempcntb
322
+ \setbox\scb@x=\hbox\bgroup\begin{minipage}[b]{\@scw}}%
323
+ % $B$^$?$O(B \setbox\scb@x=\vbox\bgroup\advance \linewidth by -20pt \relax
324
+ {\end{minipage}\egroup
325
+ \dimen0=\linewidth \removept{\dimen0}{\hsPT}%
326
+ \divide \dimen0 by 2 \removept{\dimen0}{\hhsPT}%
327
+ \dimen0=\dp\scb@x \advance \dimen0 by 5pt
328
+ \advance \dimen0 by -.5\cdp %% !
329
+ \removept{\dimen0}{\hdxPT}%
330
+ \advance \dimen0 by \ht\scb@x \advance \dimen0 by 5pt
331
+ \advance \dimen0 by -.5\cdp %% !
332
+ \removept{\dimen0}{\htxPT}%
333
+ \begin{flushleft}
334
+ \vspace{6.5pt}%
335
+ \begin{picture}(\hsPT,\htxPT)
336
+ \put(\hhsPT,\htxPT){\oval(\hsPT,10)[t]}
337
+ \put(0,0){\line(0,1){\htxPT}}
338
+ \put(\hsPT,0){\line(0,1){\htxPT}}
339
+ \put(\hhsPT,0){\oval(\hsPT,10)[b]}
340
+ \put(10,\hdxPT){\ifdim\screensc@le pt=1pt \box\scb@x
341
+ \else\scalebox{\screensc@le}[1]{\box\scb@x}\fi}
342
+ \end{picture}%
343
+ \end{flushleft}}
344
+ \let\screen\okuscreen \let\endscreen\endokuscreen
345
+ \newdimen\EXAMPLEWIDTH
346
+ \newenvironment{EXAMPLE}{\begin{flushleft}\EXAMPLEWIDTH=\linewidth
347
+ }{\end{flushleft}}
348
+ \newenvironment{IN}{%
349
+ \makebox[35pt][l]{\small\fbox{$BF~NO(B}}%
350
+ \advance \linewidth by -35pt
351
+ \begin{minipage}[t]{\linewidth}}{%
352
+ \end{minipage}\\[6pt]}
353
+ \newenvironment{OUT}{%
354
+ \makebox[35pt][l]{\small\fbox{$B=PNO(B}}%
355
+ \advance \linewidth by -35pt
356
+ \begin{minipage}[t]{\linewidth}}{%
357
+ \end{minipage}}
358
+ \newcommand{\INEX}{\medbreak\noindent
359
+ \framebox[\columnwidth][l]{\small\hskip2zw $BF~NO(B}\nobreak
360
+ \begin{quote}\small}
361
+ \newcommand{\OUTEX}{\end{quote}
362
+ \framebox[\columnwidth][l]{\small\hskip2zw $B=PNO(B}\nobreak
363
+ \begin{quotation}\small}
364
+ \newcommand{\ENDEX}{\end{quotation}\bigbreak}
365
+ \newcommand{\ENDEXC}[1]{\end{quotation}\nobreak
366
+ \begin{flushright}\footnotesize#1\end{flushright}\bigbreak}
367
+
368
+ \def\whichpage#1{%
369
+ \expandafter\ifx\csname r@#1\endcsname\relax
370
+ \else
371
+ \@tempcnta\pageref{#1}\relax
372
+ \advance\@tempcnta-\c@page
373
+ \ifnum\@tempcnta=0
374
+ \else
375
+ \ifnum\@tempcnta=1 $B!J<!%Z!<%8!K(B
376
+ \else
377
+ \ifnum\@tempcnta=-1 $B!JA0%Z!<%8!K(B
378
+ \else $B!J(B\pageref{#1}$B%Z!<%8!K(B
379
+ \fi
380
+ \fi
381
+ \fi
382
+ \fi}
383
+ \expandafter\ifx\csname ver@tascmac.sty\endcsname\relax
384
+ \newdimen\shaderule \shaderule 5\p@
385
+ \fi
386
+ \def\okushadebox{\dimen0\linewidth \advance\dimen0-20\p@
387
+ \advance\dimen0-2\fboxrule \advance\dimen0-\shaderule
388
+ \setbox\@tempboxa=\hbox\bgroup\minipage{\dimen0}}
389
+ \def\endokushadebox{\endminipage\egroup\dimen0=10\p@ \advance\dimen0-\fboxrule
390
+ \setbox\@tempboxa=\hbox{\kern\dimen0\unhbox\@tempboxa\kern\dimen0}%
391
+ \setbox0=\vbox{\hrule\@height \fboxrule
392
+ \hbox{\vrule\@width \fboxrule \hskip-\fboxrule
393
+ \vbox{\vskip\fboxsep \box\@tempboxa\vskip\fboxsep}%
394
+ \hskip-\fboxrule\vrule \@width \fboxrule}\hrule \@height \fboxrule}%
395
+ \dimen0=\ht0 \advance\dimen0-\shaderule
396
+ \hbox{\hbox to \shaderule{\copy0\hss}\kern \z@
397
+ \vrule\@width\wd0\@height\z@\@depth\shaderule\hskip-\shaderule
398
+ \vrule\@width\shaderule\@height\dimen0}}
399
+ \let\shadebox\okushadebox \let\endshadebox\endokushadebox
400
+ \def\sankoumark{{\small $B!z(B}}
401
+ \newenvironment{sankou}{\vspace{3pt}%
402
+ \begin{list}{}{%
403
+ \setlength{\leftmargin}{3zw}%
404
+ \setlength{\itemindent}{0pt}%
405
+ \setlength{\labelwidth}{2zw}%
406
+ \setlength{\labelsep}{6pt}%
407
+ \setlength{\rightmargin}{0pt}%
408
+ \setlength{\itemsep}{0pt}%
409
+ \setlength{\parsep}{0pt}%
410
+ \setlength{\topsep}{0.5\baselineskip}%
411
+ \setlength{\partopsep}{0pt}%
412
+ \setlength{\listparindent}{0zw}%
413
+ }\item[\sankoumark]\small}{\end{list}}
414
+ \def\toimark{{\small\bf $B!ZLd![(B}}
415
+ \newenvironment{toi}{\vspace{3pt}%
416
+ \begin{list}{}{%
417
+ \setlength{\leftmargin}{3zw}%
418
+ \setlength{\itemindent}{0pt}%
419
+ \setlength{\labelwidth}{2zw}%
420
+ \setlength{\labelsep}{6pt}%
421
+ \setlength{\rightmargin}{0pt}%
422
+ \setlength{\itemsep}{0pt}%
423
+ \setlength{\parsep}{3pt plus 1pt minus 1pt}%
424
+ \setlength{\topsep}{3pt plus 1pt minus 1pt}%
425
+ \setlength{\partopsep}{3pt plus 6pt minus 1pt}%
426
+ \setlength{\listparindent}{0zw}%
427
+ }\item[\toimark]\small}{\end{list}}
428
+ \providecommand{\eps}{\varepsilon}
429
+ \def\LEQQ{\mathrel{\mathpalette\gl@align<}}
430
+ \def\GEQQ{\mathrel{\mathpalette\gl@align>}}
431
+ \def\gl@align#1#2{\lower.6ex\vbox{\baselineskip\z@skip\lineskip\z@
432
+ \ialign{$\m@th#1\hfil##\hfil$\crcr#2\crcr=\crcr}}}
433
+ \def\APPROX{\mathrel{\mathpalette\ap@align{\smash.}}}
434
+ \def\ap@align#1#2{\lower.2ex\vbox{\baselineskip\z@skip\lineskip\z@
435
+ \def\finsm@sh{\ht\z@.2ex \dp\z@.2ex \box\z@}%
436
+ \ialign{$\m@th#1\hfil##\hfil$\crcr#2\crcr=\crcr#2\crcr}}}
437
+ %%% Fractions like 1/2 by DEK (TUGboat, 6(1):36, TeXbook (Excercise 11.6))
438
+ \def\FRAC#1#2{\leavevmode\kern.1em
439
+ \raise.5ex\hbox{\the\scriptfont0 #1}\kern-.1em
440
+ /\kern-.15em\lower.25ex\hbox{\the\scriptfont0 #2}}
441
+ \newcommand{\hk}{\hspace{\kanjiskip}}
442
+ \newcommand{\hx}{\hspace{\xkanjiskip}}
443
+ \newcommand{\3}{\penalty300 }
444
+ \newcommand{\5}{\penalty50 } % \penalty\exhyphenpenalty
445
+ \newcommand{\ANGLE}[1]{%
446
+ $\langle$\kern0pt\nobreak{#1}\kern0pt\nobreak$\rangle$}
447
+ \newcommand{\$B3t(B}{\hspace{\kanjiskip}\<$B!J3t!K(B\<\hspace{\kanjiskip}}
448
+ \@ifundefined{widebaselines}{}{%
449
+ \let\endmathdisplaysave=\endmathdisplay
450
+ \def\endmathdisplay{\widebaselines\endmathdisplaysave}}
451
+ \let\start@alignsave=\start@align
452
+ \def\start@align{\vspace{4pt}\start@alignsave}
453
+ \endinput
454
+ %%
455
+ %% End of file `okumacro.sty'.