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}}
Binary file
@@ -0,0 +1,458 @@
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
+ \ifx\epTeXinputencoding\undefined\else
24
+ \epTeXinputencoding utf8 % ^^A added (2017-10-04)
25
+ \fi
26
+ \NeedsTeXFormat{pLaTeX2e}
27
+ \ProvidesPackage{okumacro}[2018/06/11 okumura, texjporg]
28
+ \providecommand{\rubyfamily}{}
29
+ \def\kanjistrut{\iftdir
30
+ \vrule \@height0.5zw \@depth0.5zw \@width\z@
31
+ \else
32
+ \vrule \@height0.88zw \@depth0.12zw \@width\z@
33
+ \fi}
34
+ \chardef\okumacro@zsp=\jis"2121\relax
35
+ \newcommand{\ruby}[3][0zw]{%
36
+ \okumacro@zsp
37
+ \kern-1zw\relax
38
+ \dimen3=\f@size\p@
39
+ \setbox1=\hbox{#2}%
40
+ \setbox3=\hbox{\rubyfamily\fontsize{0.5\dimen3}{0pt}\selectfont #3}%
41
+ \dimen1=#1\relax
42
+ \ifdim\dimen1=\z@
43
+ \ifdim\wd1>\wd3 \dimen1=\wd1 \else \dimen1=\wd3 \fi
44
+ \else
45
+ \ifdim\dimen1<\wd1
46
+ \dimen1=\wd1
47
+ \fi
48
+ \fi
49
+ \hbox{%
50
+ \kanjiskip=0pt plus 2fil
51
+ \xkanjiskip=0pt plus 2fil
52
+ \vbox{%
53
+ \hbox to \dimen1{\rubyfamily
54
+ \fontsize{0.5\dimen3}{0pt}\selectfont \kanjistrut
55
+ \ifdim\dimen1<\wd3
56
+ \hss\unhbox3\hss
57
+ \else
58
+ \hfil\unhbox3\hfil
59
+ \fi
60
+ }%
61
+ \nointerlineskip
62
+ \hbox to \dimen1{\kanjistrut\hfil\unhbox1\hfil}}}%
63
+ \kern-1zw\relax\okumacro@zsp}
64
+ \def\kenten#1{%
65
+ \okumacro@zsp
66
+ \kern-1zw\relax
67
+ \setbox1=\hbox to\z@{\hbox to 1zw{\hss ・\hss}\hss}%
68
+ \ht1=.63zw
69
+ \@kenten#1\end\relax
70
+ \kern-1zw\relax\okumacro@zsp}
71
+ \def\@kenten#1#2{%
72
+ \ifx#1\end \let\next=\relax \else
73
+ \raise.75zw\copy1\nobreak #1\ifx#2\end\else\hskip\kanjiskip\relax\fi
74
+ \let\next=\@kenten
75
+ \fi\next#2}
76
+ \newcommand{\kintou}[2]{%
77
+ \leavevmode
78
+ \hbox to #1{%
79
+ \kanjiskip=0pt plus 1fil minus 1fil
80
+ \xkanjiskip=\kanjiskip
81
+ #2}}
82
+ \newcommand{\曜}{{\@tempcnta=\year \@tempcntb=\month
83
+ \ifnum \@tempcntb<3
84
+ \advance \@tempcnta by -1
85
+ \advance \@tempcntb by 12
86
+ \fi
87
+ \multiply \@tempcntb by 13
88
+ \advance \@tempcntb by 8
89
+ \divide \@tempcntb by 5
90
+ \advance \@tempcntb by \@tempcnta
91
+ \divide \@tempcnta by 4
92
+ \advance \@tempcntb by \@tempcnta
93
+ \divide \@tempcnta by 25
94
+ \advance \@tempcntb by -\@tempcnta
95
+ \divide \@tempcnta by 4
96
+ \advance \@tempcntb by \@tempcnta
97
+ \advance \@tempcntb by \day
98
+ \@tempcnta=\@tempcntb
99
+ \divide \@tempcntb by 7
100
+ \multiply \@tempcntb by 7
101
+ \advance \@tempcnta by -\@tempcntb
102
+ \ifcase \@tempcnta 日\or 月\or 火\or 水\or 木\or 金\or 土\fi}}
103
+ \def\挨拶{\noindent 拝啓\hspace{1zw}\ifcase\month\or
104
+ 厳寒\or 春寒\or 早春\or 陽春\or 新緑\or 向暑\or
105
+ 猛暑\or 残暑\or 初秋\or 仲秋\or 晩秋\or 初冬\fi
106
+ の候,ますますご清栄のこととお喜び申し上げます。}
107
+ \def\myallowbreak{\@ifnextchar\egroup{}{\penalty\exhyphenpenalty}{}}
108
+ \begingroup
109
+ \catcode`\-=\active
110
+ \catcode`\.=\active
111
+ \catcode`\/=\active
112
+ \gdef\mytth@@k{%
113
+ \catcode`\-=\active \def-{\char`\-\myallowbreak}%
114
+ \catcode`\.=\active \def.{\char`\.\myallowbreak}%
115
+ \catcode`\/=\active \def/{\char`\/\myallowbreak}%
116
+ }
117
+ \endgroup
118
+ \def\mytt{\ttfamily
119
+ \catcode`\#=12
120
+ \catcode`\&=12
121
+ \catcode`\^=12
122
+ \catcode`\~=12
123
+ \catcode`\_=12
124
+ \chardef\{=`\{
125
+ \chardef\}=`\}
126
+ \chardef\_=`\_
127
+ \def\\{\char"5C\penalty\exhyphenpenalty{}}% バックスラッシュ
128
+ \spaceskip=.32em plus.16em minus.09em
129
+ \frenchspacing
130
+ \noautoxspacing
131
+ \mytth@@k}
132
+ \DeclareRobustCommand{\yen}{{\ooalign{Y\crcr\hss=\hss}}}
133
+ \providecommand{\BS}{\texttt{\char"5C}}
134
+ {\catcode`\|=\z@ \catcode`\\=12|gdef|bslash{\}}
135
+ \newcommand{\asciibar}{%
136
+ \makebox[0.525em]{\rule[-0.2ex]{0.15ex}{0.7ex}\kern-0.15ex
137
+ \rule[0.8ex]{0.15ex}{0.7ex}}}
138
+ \def\−−{―\kern-.5zw―\kern-.5zw―}
139
+ \def\――{―\kern-.5zw―\kern-.5zw―}
140
+ \ifx\ucs\@undefined\else
141
+ \begingroup
142
+ \kansujichar1="FF0D
143
+ \kansujichar2="2014
144
+ \expandafter\expandafter\expandafter\gdef
145
+ \expandafter\csname\expandafter\kansuji\expandafter1%
146
+ \expandafter\endcsname\kansuji1{―\kern-.5zw―\kern-.5zw―}
147
+ \expandafter\expandafter\expandafter\gdef
148
+ \expandafter\csname\expandafter\kansuji\expandafter2%
149
+ \expandafter\endcsname\kansuji2{―\kern-.5zw―\kern-.5zw―}
150
+ \endgroup
151
+ \fi
152
+ \newcommand{\removept}[2]{%
153
+ \edef#2{\expandafter\@removePT\the#1}}
154
+ {\catcode`p=12 \catcode`t=12 \gdef\@removePT#1pt{#1}}
155
+ \newcommand{\okukeytop}[1]{{\leavevmode\kern1pt
156
+ \setbox1=\hbox{\normalfont\sffamily [}%
157
+ \dimen1=\ht1
158
+ \removept{\dimen1}{\tempC}%
159
+ \setbox0=\hbox{\normalfont\sffamily #1}%
160
+ \dp0=0pt
161
+ \dimen0=\wd0
162
+ \ifdim\dimen0<\ht1 \dimen0=\ht1 \fi
163
+ \advance \dimen0 by 5pt
164
+ \removept{\dimen0}{\tempA}%
165
+ \divide \dimen0 by 2
166
+ \removept{\dimen0}{\tempB}%
167
+ \unitlength=1pt
168
+ \advance \dimen1 by 2pt
169
+ \hbox{\vrule height\dimen1 depth2pt width0pt}%
170
+ \begin{picture}(\tempA,\tempC)
171
+ \put(0,0){\line(0,1){\tempC}}
172
+ \put(\tempA,0){\line(0,1){\tempC}}
173
+ \put(\tempB,0){\oval(\tempA,4)[b]}
174
+ \put(\tempB,\tempC){\oval(\tempA,4)[t]}
175
+ \put(\tempB,0){\makebox(0,0)[b]{\box0}}
176
+ \end{picture}\kern1pt}}
177
+ \expandafter\ifx\csname ver@tascmac.sty\endcsname\relax
178
+ \newcommand{\keytop}{\okukeytop}
179
+ \else
180
+ \renewcommand{\keytop}{\okukeytop}
181
+ \fi
182
+ \def\RETMARK{{\unitlength=1pt
183
+ \setbox0=\hbox{\normalfont\ttfamily [}%
184
+ \dimen0=\ht0
185
+ \removept{\dimen0}{\tempA}%
186
+ \advance \dimen0 by -1pt
187
+ \removept{\dimen0}{\tempB}%
188
+ \begin{picture}(\tempA,\tempA)
189
+ \put(\tempA,1){\line(0,1){\tempB}}
190
+ \put(\tempA,1){\vector(-1,0){\tempA}}
191
+ \end{picture}}}
192
+ \newcommand{\okureturn}{\okukeytop{\RETMARK}}
193
+ \expandafter\ifx\csname ver@tascmac.sty\endcsname\relax
194
+ \newcommand{\return}{\okureturn}
195
+ \else
196
+ \renewcommand{\return}{\okureturn}
197
+ \fi
198
+ \newcommand{\upkey}{\raisebox{-2pt}{%
199
+ \setlength{\unitlength}{1pt}%
200
+ \thinlines
201
+ \begin{picture}(14,9)
202
+ \put(7,2){\vector(0,1){8}}
203
+ \put(1,2){\line(0,1){7}}
204
+ \put(13,2){\line(0,1){7}}
205
+ \put(7,9){\oval(12,4)[t]}
206
+ \put(7,2){\oval(12,4)[b]}
207
+ \end{picture}%
208
+ }}
209
+ \newcommand{\downkey}{\raisebox{-2pt}{%
210
+ \setlength{\unitlength}{1pt}%
211
+ \thinlines
212
+ \begin{picture}(14,9)
213
+ \put(7,10){\vector(0,-1){8}}
214
+ \put(1,2){\line(0,1){7}}
215
+ \put(13,2){\line(0,1){7}}
216
+ \put(7,9){\oval(12,4)[t]}
217
+ \put(7,2){\oval(12,4)[b]}
218
+ \end{picture}%
219
+ }}
220
+ \newcommand{\rightkey}{\raisebox{-2pt}{%
221
+ \setlength{\unitlength}{1pt}%
222
+ \thinlines
223
+ \begin{picture}(14,9)
224
+ \put(3,6){\vector(1,0){8}}
225
+ \put(1,2){\line(0,1){7}}
226
+ \put(13,2){\line(0,1){7}}
227
+ \put(7,9){\oval(12,4)[t]}
228
+ \put(7,2){\oval(12,4)[b]}
229
+ \end{picture}%
230
+ }}
231
+ \newcommand{\leftkey}{\raisebox{-2pt}{%
232
+ \setlength{\unitlength}{1pt}%
233
+ \thinlines
234
+ \begin{picture}(14,9)
235
+ \put(11,6){\vector(-1,0){8}}
236
+ \put(1,2){\line(0,1){7}}
237
+ \put(13,2){\line(0,1){7}}
238
+ \put(7,9){\oval(12,4)[t]}
239
+ \put(7,2){\oval(12,4)[b]}
240
+ \end{picture}%
241
+ }}
242
+ \newcommand{\MARU}[1]{{%
243
+ \ooalign{\hfil
244
+ \@ifundefined{scalebox}{%
245
+ #1\/\hfil\crcr\raise.167ex}{\raise.1zw\hbox{\scalebox{0.8}{#1\/}}\hfil\crcr\raise.1zw}%
246
+ \hbox{\fontencoding{OMS}\fontfamily{cmsy}\fontseries{m}\fontshape{n}\selectfont
247
+ \char"0D}}}}
248
+ \newcommand{\PiC}{P\kern-.12em\lower.5ex\hbox{I}\kern-.075emC}
249
+ \newcommand{\PiCTeX}{\PiC\kern-.11em\TeX}
250
+ \newcommand{\JTeX}{\leavevmode\lower.5ex\hbox{J}\kern-.17em\TeX}
251
+ \newcommand{\JLaTeX}{\leavevmode\lower.5ex\hbox{\rm J}\kern-.17em\LaTeX}
252
+ \DeclareRobustCommand{\JBibTeX}{$\mbox{%
253
+ \lower.5ex\hbox{J}\ifx\f@family\cmr\kern-.15em\else\kern-.05em\fi
254
+ \BibTeX}$}
255
+ \newcommand{\pTeXsT}{p\kern-.21em\TeX\kern-.10em s\kern-.21em T}
256
+ \newcommand{\iTeX}{\accent'27\i\TeX}
257
+ \newcommand{\MlTeX}{M\kern-.1667em\lower.5ex\hbox{L}\kern-.25em\TeX}
258
+ \newenvironment{dangerous}{%
259
+ \vspace{3pt}%
260
+ \begin{list}{\ding{"2E}}{%
261
+ \setlength{\leftmargin}{3zw}%
262
+ \setlength{\itemindent}{0pt}%
263
+ \setlength{\labelwidth}{2zw}%
264
+ \setlength{\labelsep}{6pt}%
265
+ \setlength{\rightmargin}{0pt}%
266
+ \setlength{\itemsep}{0.5\baselineskip}%
267
+ \setlength{\parsep}{0pt}%
268
+ \setlength{\topsep}{0.5\baselineskip}%
269
+ \setlength{\partopsep}{0pt}%
270
+ \setlength{\listparindent}{0zw}%
271
+ }\small}{\end{list}}
272
+ \newcommand{\namelistlabel}[1]{\hspace{1zw}#1\hfil}
273
+ \newenvironment{namelist}[1]{%
274
+ \begin{list}{}{%
275
+ \let\makelabel=\namelistlabel
276
+ \settowidth{\labelwidth}{#1}%
277
+ \addtolength{\labelwidth}{2zw}%
278
+ \setlength{\leftmargin}{\labelwidth}%
279
+ \setlength{\labelsep}{0pt}%
280
+ }}{\end{list}}
281
+ \newenvironment{mybibliography}[1]{%
282
+ \list{\@biblabel{\@arabic\c@enumiv}}%
283
+ {\settowidth\labelwidth{\@biblabel{#1}}%
284
+ \leftmargin\labelwidth
285
+ \advance\leftmargin\labelsep
286
+ \@openbib@code
287
+ \@nmbrlisttrue\def\@listctr{enumiv}%
288
+ \let\p@enumiv\@empty
289
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
290
+ \sloppy
291
+ \clubpenalty4000
292
+ \@clubpenalty\clubpenalty
293
+ \widowpenalty4000%
294
+ \sfcode`\.\@m}
295
+ {\def\@noitemerr
296
+ {\@latex@warning{Empty `mybibliography' environment}}%
297
+ \endlist}
298
+ \newenvironment{FRAME}{\begin{trivlist}\item[]
299
+ \hrule width\linewidth
300
+ \hbox to \linewidth\bgroup
301
+ \advance\linewidth by -30pt
302
+ \hsize=\linewidth
303
+ \vrule\hfill
304
+ \vbox\bgroup
305
+ \vskip15pt
306
+ \def\thempfootnote{\arabic{mpfootnote}}% 脚注を算用数字に
307
+ \begin{minipage}{\linewidth}}{%
308
+ \end{minipage}\vskip15pt
309
+ \egroup\hfill\vrule
310
+ \egroup\hrule width\linewidth
311
+ \end{trivlist}}
312
+ \newcommand{\SHUTTEN}[1]{%
313
+ \par\nobreak\removelastskip\rightline{\small#1}\medbreak}
314
+ \expandafter\ifx\csname ver@tascmac.sty\endcsname\relax
315
+ \newdimen\@scw
316
+ \newbox\scb@x
317
+ \fi
318
+ \newenvironment{okuscreen}[1][1]%
319
+ {\def\screensc@le{#1}\@scw=\linewidth \advance \@scw by -20pt
320
+ \dimen1=#1\p@\relax
321
+ \@tempcnta=\dimen1\relax
322
+ \@tempcntb=65536\relax
323
+ \divide\@scw by \@tempcnta
324
+ \multiply\@scw by \@tempcntb
325
+ \setbox\scb@x=\hbox\bgroup\begin{minipage}[b]{\@scw}}%
326
+ % または \setbox\scb@x=\vbox\bgroup\advance \linewidth by -20pt \relax
327
+ {\end{minipage}\egroup
328
+ \dimen0=\linewidth \removept{\dimen0}{\hsPT}%
329
+ \divide \dimen0 by 2 \removept{\dimen0}{\hhsPT}%
330
+ \dimen0=\dp\scb@x \advance \dimen0 by 5pt
331
+ \advance \dimen0 by -.5\cdp %% !
332
+ \removept{\dimen0}{\hdxPT}%
333
+ \advance \dimen0 by \ht\scb@x \advance \dimen0 by 5pt
334
+ \advance \dimen0 by -.5\cdp %% !
335
+ \removept{\dimen0}{\htxPT}%
336
+ \begin{flushleft}
337
+ \vspace{6.5pt}%
338
+ \begin{picture}(\hsPT,\htxPT)
339
+ \put(\hhsPT,\htxPT){\oval(\hsPT,10)[t]}
340
+ \put(0,0){\line(0,1){\htxPT}}
341
+ \put(\hsPT,0){\line(0,1){\htxPT}}
342
+ \put(\hhsPT,0){\oval(\hsPT,10)[b]}
343
+ \put(10,\hdxPT){\ifdim\screensc@le pt=1pt \box\scb@x
344
+ \else\scalebox{\screensc@le}[1]{\box\scb@x}\fi}
345
+ \end{picture}%
346
+ \end{flushleft}}
347
+ \let\screen\okuscreen \let\endscreen\endokuscreen
348
+ \newdimen\EXAMPLEWIDTH
349
+ \newenvironment{EXAMPLE}{\begin{flushleft}\EXAMPLEWIDTH=\linewidth
350
+ }{\end{flushleft}}
351
+ \newenvironment{IN}{%
352
+ \makebox[35pt][l]{\small\fbox{入力}}%
353
+ \advance \linewidth by -35pt
354
+ \begin{minipage}[t]{\linewidth}}{%
355
+ \end{minipage}\\[6pt]}
356
+ \newenvironment{OUT}{%
357
+ \makebox[35pt][l]{\small\fbox{出力}}%
358
+ \advance \linewidth by -35pt
359
+ \begin{minipage}[t]{\linewidth}}{%
360
+ \end{minipage}}
361
+ \newcommand{\INEX}{\medbreak\noindent
362
+ \framebox[\columnwidth][l]{\small\hskip2zw 入力}\nobreak
363
+ \begin{quote}\small}
364
+ \newcommand{\OUTEX}{\end{quote}
365
+ \framebox[\columnwidth][l]{\small\hskip2zw 出力}\nobreak
366
+ \begin{quotation}\small}
367
+ \newcommand{\ENDEX}{\end{quotation}\bigbreak}
368
+ \newcommand{\ENDEXC}[1]{\end{quotation}\nobreak
369
+ \begin{flushright}\footnotesize#1\end{flushright}\bigbreak}
370
+
371
+ \def\whichpage#1{%
372
+ \expandafter\ifx\csname r@#1\endcsname\relax
373
+ \else
374
+ \@tempcnta\pageref{#1}\relax
375
+ \advance\@tempcnta-\c@page
376
+ \ifnum\@tempcnta=0
377
+ \else
378
+ \ifnum\@tempcnta=1 (次ページ)
379
+ \else
380
+ \ifnum\@tempcnta=-1 (前ページ)
381
+ \else (\pageref{#1}ページ)
382
+ \fi
383
+ \fi
384
+ \fi
385
+ \fi}
386
+ \expandafter\ifx\csname ver@tascmac.sty\endcsname\relax
387
+ \newdimen\shaderule \shaderule 5\p@
388
+ \fi
389
+ \def\okushadebox{\dimen0\linewidth \advance\dimen0-20\p@
390
+ \advance\dimen0-2\fboxrule \advance\dimen0-\shaderule
391
+ \setbox\@tempboxa=\hbox\bgroup\minipage{\dimen0}}
392
+ \def\endokushadebox{\endminipage\egroup\dimen0=10\p@ \advance\dimen0-\fboxrule
393
+ \setbox\@tempboxa=\hbox{\kern\dimen0\unhbox\@tempboxa\kern\dimen0}%
394
+ \setbox0=\vbox{\hrule\@height \fboxrule
395
+ \hbox{\vrule\@width \fboxrule \hskip-\fboxrule
396
+ \vbox{\vskip\fboxsep \box\@tempboxa\vskip\fboxsep}%
397
+ \hskip-\fboxrule\vrule \@width \fboxrule}\hrule \@height \fboxrule}%
398
+ \dimen0=\ht0 \advance\dimen0-\shaderule
399
+ \hbox{\hbox to \shaderule{\copy0\hss}\kern \z@
400
+ \vrule\@width\wd0\@height\z@\@depth\shaderule\hskip-\shaderule
401
+ \vrule\@width\shaderule\@height\dimen0}}
402
+ \let\shadebox\okushadebox \let\endshadebox\endokushadebox
403
+ \def\sankoumark{{\small ★}}
404
+ \newenvironment{sankou}{\vspace{3pt}%
405
+ \begin{list}{}{%
406
+ \setlength{\leftmargin}{3zw}%
407
+ \setlength{\itemindent}{0pt}%
408
+ \setlength{\labelwidth}{2zw}%
409
+ \setlength{\labelsep}{6pt}%
410
+ \setlength{\rightmargin}{0pt}%
411
+ \setlength{\itemsep}{0pt}%
412
+ \setlength{\parsep}{0pt}%
413
+ \setlength{\topsep}{0.5\baselineskip}%
414
+ \setlength{\partopsep}{0pt}%
415
+ \setlength{\listparindent}{0zw}%
416
+ }\item[\sankoumark]\small}{\end{list}}
417
+ \def\toimark{{\small\bf 【問】}}
418
+ \newenvironment{toi}{\vspace{3pt}%
419
+ \begin{list}{}{%
420
+ \setlength{\leftmargin}{3zw}%
421
+ \setlength{\itemindent}{0pt}%
422
+ \setlength{\labelwidth}{2zw}%
423
+ \setlength{\labelsep}{6pt}%
424
+ \setlength{\rightmargin}{0pt}%
425
+ \setlength{\itemsep}{0pt}%
426
+ \setlength{\parsep}{3pt plus 1pt minus 1pt}%
427
+ \setlength{\topsep}{3pt plus 1pt minus 1pt}%
428
+ \setlength{\partopsep}{3pt plus 6pt minus 1pt}%
429
+ \setlength{\listparindent}{0zw}%
430
+ }\item[\toimark]\small}{\end{list}}
431
+ \providecommand{\eps}{\varepsilon}
432
+ \def\LEQQ{\mathrel{\mathpalette\gl@align<}}
433
+ \def\GEQQ{\mathrel{\mathpalette\gl@align>}}
434
+ \def\gl@align#1#2{\lower.6ex\vbox{\baselineskip\z@skip\lineskip\z@
435
+ \ialign{$\m@th#1\hfil##\hfil$\crcr#2\crcr=\crcr}}}
436
+ \def\APPROX{\mathrel{\mathpalette\ap@align{\smash.}}}
437
+ \def\ap@align#1#2{\lower.2ex\vbox{\baselineskip\z@skip\lineskip\z@
438
+ \def\finsm@sh{\ht\z@.2ex \dp\z@.2ex \box\z@}%
439
+ \ialign{$\m@th#1\hfil##\hfil$\crcr#2\crcr=\crcr#2\crcr}}}
440
+ %%% Fractions like 1/2 by DEK (TUGboat, 6(1):36, TeXbook (Excercise 11.6))
441
+ \def\FRAC#1#2{\leavevmode\kern.1em
442
+ \raise.5ex\hbox{\the\scriptfont0 #1}\kern-.1em
443
+ /\kern-.15em\lower.25ex\hbox{\the\scriptfont0 #2}}
444
+ \newcommand{\hk}{\hspace{\kanjiskip}}
445
+ \newcommand{\hx}{\hspace{\xkanjiskip}}
446
+ \newcommand{\3}{\penalty300 }
447
+ \newcommand{\5}{\penalty50 } % \penalty\exhyphenpenalty
448
+ \newcommand{\ANGLE}[1]{%
449
+ $\langle$\kern0pt\nobreak{#1}\kern0pt\nobreak$\rangle$}
450
+ \newcommand{\株}{\hspace{\kanjiskip}\<(株)\<\hspace{\kanjiskip}}
451
+ \@ifundefined{widebaselines}{}{%
452
+ \let\endmathdisplaysave=\endmathdisplay
453
+ \def\endmathdisplay{\widebaselines\endmathdisplaysave}}
454
+ \let\start@alignsave=\start@align
455
+ \def\start@align{\vspace{4pt}\start@alignsave}
456
+ \endinput
457
+ %%
458
+ %% End of file `okumacro.sty'.