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.
- checksums.yaml +4 -4
- data/NEWS.ja.md +61 -4
- data/NEWS.md +61 -4
- data/README.md +2 -1
- data/doc/config.yml.sample +48 -20
- data/doc/config.yml.sample-simple +7 -6
- data/doc/format_idg.ja.md +6 -2
- data/doc/pdfmaker.ja.md +95 -4
- data/doc/pdfmaker.md +79 -0
- data/doc/quickstart.ja.md +26 -3
- data/doc/quickstart.md +25 -3
- data/doc/writing_vertical.ja.md +19 -2
- data/lib/review/epubmaker.rb +27 -27
- data/lib/review/i18n.yml +1 -0
- data/lib/review/init.rb +34 -22
- data/lib/review/latexbuilder.rb +95 -18
- data/lib/review/pdfmaker.rb +1 -0
- data/lib/review/update.rb +60 -25
- data/lib/review/version.rb +1 -1
- data/review.gemspec +1 -1
- data/samples/sample-book/src/config.yml +3 -3
- data/samples/syntax-book/config.yml +3 -3
- data/templates/latex/config.erb +3 -0
- data/templates/latex/review-jlreq/README.md +97 -7
- data/templates/latex/review-jlreq/review-base.sty +8 -0
- data/templates/latex/review-jlreq/review-jlreq.cls +28 -6
- data/templates/latex/review-jsbook/README.md +18 -20
- data/templates/latex/review-jsbook/review-base.sty +15 -0
- data/templates/latex/review-jsbook/review-jsbook.cls +172 -230
- data/test/test_epubmaker_cmd.rb +1 -1
- data/test/test_helper.rb +3 -3
- data/test/test_image_finder.rb +9 -9
- data/test/test_latexbuilder.rb +20 -1
- data/test/test_makerhelper.rb +12 -12
- data/test/test_pdfmaker_cmd.rb +1 -1
- data/test/test_update.rb +18 -4
- data/test/test_zip_exporter.rb +7 -7
- data/vendor/jsclasses/.gitignore +163 -0
- data/vendor/jsclasses/LICENSE +25 -0
- data/vendor/jsclasses/Makefile +88 -0
- data/vendor/jsclasses/README.md +43 -0
- data/vendor/jsclasses/create_archive.sh +59 -0
- data/vendor/jsclasses/jis/Makefile +62 -0
- data/vendor/jsclasses/jis/jsarticle.cls +1935 -0
- data/vendor/jsclasses/jis/jsbook.cls +2026 -0
- data/vendor/jsclasses/jis/jsclasses.dtx +5961 -0
- data/vendor/jsclasses/jis/jsclasses.ins +8 -0
- data/vendor/jsclasses/jis/jslogo.dtx +413 -0
- data/vendor/jsclasses/jis/jslogo.ins +4 -0
- data/vendor/jsclasses/jis/jslogo.sty +223 -0
- data/vendor/jsclasses/jis/jspf.cls +1766 -0
- data/vendor/jsclasses/jis/jsreport.cls +2020 -0
- data/vendor/jsclasses/jis/jsverb.dtx +322 -0
- data/vendor/jsclasses/jis/jsverb.ins +4 -0
- data/vendor/jsclasses/jis/jsverb.sty +128 -0
- data/vendor/jsclasses/jis/kiyou.cls +1882 -0
- data/vendor/jsclasses/jis/minijs.sty +52 -0
- data/vendor/jsclasses/jis/okumacro.dtx +1179 -0
- data/vendor/jsclasses/jis/okumacro.ins +4 -0
- data/vendor/jsclasses/jis/okumacro.sty +455 -0
- data/vendor/jsclasses/jis/okuverb.dtx +243 -0
- data/vendor/jsclasses/jis/okuverb.ins +4 -0
- data/vendor/jsclasses/jis/okuverb.sty +102 -0
- data/vendor/jsclasses/jis/winjis.sty +87 -0
- data/vendor/jsclasses/jsarticle.cls +1938 -0
- data/vendor/jsclasses/jsbook.cls +2029 -0
- data/vendor/jsclasses/jsclasses.dtx +5966 -0
- data/vendor/jsclasses/jsclasses.ins +8 -0
- data/vendor/jsclasses/jsclasses.pdf +0 -0
- data/vendor/jsclasses/jslogo.dtx +424 -0
- data/vendor/jsclasses/jslogo.ins +4 -0
- data/vendor/jsclasses/jslogo.pdf +0 -0
- data/vendor/jsclasses/jslogo.sty +223 -0
- data/vendor/jsclasses/jspf.cls +1769 -0
- data/vendor/jsclasses/jsreport.cls +2023 -0
- data/vendor/jsclasses/jsverb.dtx +333 -0
- data/vendor/jsclasses/jsverb.ins +4 -0
- data/vendor/jsclasses/jsverb.pdf +0 -0
- data/vendor/jsclasses/jsverb.sty +128 -0
- data/vendor/jsclasses/kiyou.cls +1885 -0
- data/vendor/jsclasses/minijs.sty +52 -0
- data/vendor/jsclasses/okumacro.dtx +1184 -0
- data/vendor/jsclasses/okumacro.ins +4 -0
- data/vendor/jsclasses/okumacro.pdf +0 -0
- data/vendor/jsclasses/okumacro.sty +458 -0
- data/vendor/jsclasses/okuverb.dtx +254 -0
- data/vendor/jsclasses/okuverb.ins +4 -0
- data/vendor/jsclasses/okuverb.pdf +0 -0
- data/vendor/jsclasses/okuverb.sty +102 -0
- data/vendor/jsclasses/winjis.sty +87 -0
- metadata +55 -2
@@ -0,0 +1,322 @@
|
|
1
|
+
% ^^A -*- japanese-latex -*-
|
2
|
+
% \iffalse
|
3
|
+
%
|
4
|
+
% jsverb.dtx
|
5
|
+
% verb/verbatim $B4X78%^%/%m(B ($B<Q$F$b>F$$$F$b$+$^$$$^$;$s(B)
|
6
|
+
% $B1|B<@2I'(B <okumura@okumuralab.org>
|
7
|
+
% http://oku.edu.mie-u.ac.jp/~okumura/
|
8
|
+
%
|
9
|
+
% $B!V<Q$F$b>F$$$F$b$+$^$$$^$;$s!W$G:$$k>l9g$O(Bmodified BSD$B$H$$$&$3$H$G$*4j$$$7$^$9!#(B
|
10
|
+
%
|
11
|
+
%<jsverb>\NeedsTeXFormat{pLaTeX2e}
|
12
|
+
%<jsverb>\ProvidesFile{jsverb.sty}[2007/01/28 okumura]
|
13
|
+
%<*driver>
|
14
|
+
\documentclass{jsarticle}
|
15
|
+
\usepackage{doc}
|
16
|
+
\xspcode"5C=1 %% \
|
17
|
+
\xspcode"22=1 %% "
|
18
|
+
\usepackage{okumacro}
|
19
|
+
\usepackage{jsverb}
|
20
|
+
\addtolength{\textwidth}{-1in}
|
21
|
+
\addtolength{\evensidemargin}{1in}
|
22
|
+
\addtolength{\oddsidemargin}{1in}
|
23
|
+
\addtolength{\marginparwidth}{1in}
|
24
|
+
\setlength\marginparsep{5pt}
|
25
|
+
\setlength\marginparpush{0pt}
|
26
|
+
% \OnlyDescription
|
27
|
+
\CodelineNumbered
|
28
|
+
\DisableCrossrefs
|
29
|
+
\setcounter{StandardModuleDepth}{1}
|
30
|
+
\GetFileInfo{jsverb.sty}
|
31
|
+
\begin{document}
|
32
|
+
\DocInput{jsverb.dtx}
|
33
|
+
\end{document}
|
34
|
+
%</driver>
|
35
|
+
%
|
36
|
+
% \fi
|
37
|
+
%
|
38
|
+
% \title{\pLaTeXe $BMQ(B \texttt{verb...} $B4X78%^%/%m(B}
|
39
|
+
% \author{$B1|B<@2I'(B}
|
40
|
+
% \date{\filedate}
|
41
|
+
% \maketitle
|
42
|
+
%
|
43
|
+
% \StopEventually{}
|
44
|
+
%
|
45
|
+
% \MakeShortVerb{\|}
|
46
|
+
%
|
47
|
+
% $B5l(B |okuverb| $B$O(B\LaTeX $B$N(B |\verb| $BL?Na$H(B |verbatim| $B4D6-$r3HD%$7$?$b$N$G!$(B
|
48
|
+
% |yen| $B%*%W%7%g%s$rIU$1$k$H(B \ttbslash\ $B$,(B \ttyen\ $B$K$J$k$[$+!$(B|verbatim| $B4D6-$N(B
|
49
|
+
% $BAH$_J}$r4JC1$K%+%9%?%^%$%:$G$-$k$h$&$K$7$?$b$N$G$9!#(B
|
50
|
+
%
|
51
|
+
% $B0lJ}!$(B\TeX $B$G$O(BASCII |0x60|$B$N(B |`| $B$H(B|0x27|$B$N(B |'| $B$rF~NO$9$k$H(B
|
52
|
+
% $B$=$l$>$l(B \texttt{`} $B$H(B \texttt{'} $B$K$J$j$^$9!#(B
|
53
|
+
% $B$3$l$i$OJ8;z$H$7$F$O$=$l$>$l(B
|
54
|
+
% U+2018 LEFT SINGLE QUOTATION MARK$B!$(B
|
55
|
+
% U+2019 RIGHT SINGLE QUOTATION MARK$B$G$9$N$G!$(B
|
56
|
+
% dvipdfmx$B$G(BPDF$B$KJQ49$7$FF|K\8l%F%-%9%H$K%3%T!<!u%Z!<%9%H$9$k$H!$(B
|
57
|
+
% $BA43QJ8;z$K$J$C$F$7$^$$$^$9!#(B
|
58
|
+
% |\verb| $B$d(B |verbatim| $B$O%W%m%0%i%`%j%9%H$K$h$/MQ$$$k$N$G!$(B
|
59
|
+
% $B0U?^$H$7$F$O$=$l$>$l(BU+0060 GRAVE ACCENT$B!$(BU+0027 APOSTROPHE$B$K(B
|
60
|
+
% $B$J$C$F$[$7$$$H;W$$$^$9!#(B
|
61
|
+
% $B$=$3$G!$(BZR$B$5$s$N$4=u8@(B
|
62
|
+
% \begin{itemize}
|
63
|
+
% \item |http://oku.edu.mie-u.ac.jp/~okumura/texfaq/qa/46673.html|
|
64
|
+
% \item |http://oku.edu.mie-u.ac.jp/~okumura/texfaq/qa/46688.html|
|
65
|
+
% \end{itemize}
|
66
|
+
% $B$K$7$?$,$C$F5l(B |okuverb| $B$rBgI}$K=q$-D>$7$?$b$N$,$3$N(B |jsverb| $B$G$9!#(B
|
67
|
+
%
|
68
|
+
% $B$J$*!$(B\ttyen\ $B$r%3%T!<!u%Z!<%9%H$7$?>l9g$O!$(B
|
69
|
+
% OT1$B%(%s%3!<%G%#%s%0$G;H$($P(B Y= $B$H$$$&(B2$BJ8;z$K!$(B
|
70
|
+
% T1$B%(%s%3!<%G%#%s%0$G;H$($P(BU+00A5 YEN SIGN$B$K$J$j$^$9!#(B
|
71
|
+
% $B%P%C%/%9%i%C%7%e!J(BU+005C REVERSE SOLIDUS$B!K$K$7$?$$>l9g$O(B \ttbslash\
|
72
|
+
% $B$N$[$&$r$*;H$$$/$@$5$$!#(B
|
73
|
+
%
|
74
|
+
% $B$J$*!$(B|doc.sty| $B$,Ds6!$9$k(B |macrocode| $B4D6-$O=q$-49$($F$$$^$;$s$N$G!$(B
|
75
|
+
% $B0J2<$N%j%9%H$G$O(B |` '| $B$,(B \texttt{` '} $B$K$J$C$F$$$^$9!#(B
|
76
|
+
%
|
77
|
+
% [2008-01-05] |http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html|
|
78
|
+
% $B$,;29M$K$J$j$^$9!#(B|upquote.sty| $B$H$$$&$b$N$b$"$j$^$7$?!#(B
|
79
|
+
%
|
80
|
+
% $B0J2<$OFbIt$N2r@b$G$9!#(B
|
81
|
+
%
|
82
|
+
% $B$^$:%*%W%7%g%s$N@k8@$G$9!#(B
|
83
|
+
%
|
84
|
+
% \begin{macro}{\if@yen}
|
85
|
+
%
|
86
|
+
% |\verb|$B!$(B|verbatim| $BEy$G(B |\| $B$r1_0u(B \ttyen\ $B$K$9$k$+$I$&$+$N%9%$%C%A$G$9!#(B
|
87
|
+
% $B$3$l$O%G%U%)!<%k%H$G56$G$9$,!$(B|yen| $B%*%W%7%g%s$G??$K$J$j$^$9!#(B
|
88
|
+
%
|
89
|
+
% \begin{macrocode}
|
90
|
+
%<*jsverb>
|
91
|
+
\newif\if@yen \@yenfalse
|
92
|
+
\DeclareOption{yen}{\@yentrue}
|
93
|
+
\ProcessOptions\relax
|
94
|
+
% \end{macrocode}
|
95
|
+
%
|
96
|
+
% \end{macro}
|
97
|
+
%
|
98
|
+
% T1$B$r;H$&$N$K(BTS1$B$,$J$$>l9g$NBP=h$G$9!#(B
|
99
|
+
% |textcomp.sty| $B$OI{:nMQ$,$"$k$N$G(B |ts1enc.def|
|
100
|
+
% $B$rFI$_9~$`$@$1$K$7$F$$$^$9!J$3$l$OJ#?t2sFI$_9~$s$G$b(B
|
101
|
+
% $BLdBj$J$5$=$&$G$9!K!#(B
|
102
|
+
%
|
103
|
+
% \begin{macrocode}
|
104
|
+
\AtBeginDocument{%
|
105
|
+
\expandafter\ifx\csname T@T1\endcsname\relax \else
|
106
|
+
\expandafter\ifx\csname T@TS1\endcsname\relax
|
107
|
+
\input{ts1enc.def}%
|
108
|
+
\fi\fi
|
109
|
+
}
|
110
|
+
% \end{macrocode}
|
111
|
+
%
|
112
|
+
% \begin{macro}{\y@n}
|
113
|
+
% \begin{macro}{\ttyen}
|
114
|
+
%
|
115
|
+
% $B4JC1$J1_5-9f$NDj5A$G$9!#8e$G(BT1$B%(%s%3!<%G%#%s%0$N>l9g$O:FDj5A$7$^$9!#(B
|
116
|
+
%
|
117
|
+
% \begin{macrocode}
|
118
|
+
\def\y@n{Y\llap=}
|
119
|
+
\def\ttyen{{\ttfamily\y@n}}
|
120
|
+
% \end{macrocode}
|
121
|
+
%
|
122
|
+
% \end{macro}
|
123
|
+
% \end{macro}
|
124
|
+
%
|
125
|
+
% \begin{macro}{\ttbslash}
|
126
|
+
%
|
127
|
+
% $B%?%$%W%i%$%?%U%)%s%H$N%P%C%/%9%i%C%7%e$G$9!#(B
|
128
|
+
%
|
129
|
+
% \begin{macrocode}
|
130
|
+
\def\ttbslash{{\ttfamily\char`\\}}
|
131
|
+
% \end{macrocode}
|
132
|
+
%
|
133
|
+
% \end{macro}
|
134
|
+
%
|
135
|
+
% \begin{macro}{\BS}
|
136
|
+
%
|
137
|
+
% $B%?%$%W%i%$%?%U%)%s%H$N1_5-9f$+%P%C%/%9%i%C%7%e$N$I$A$i$+$K$J$j$^$9!#(B
|
138
|
+
%
|
139
|
+
% \begin{macrocode}
|
140
|
+
\if@yen
|
141
|
+
\let\BS=\ttyen
|
142
|
+
\else
|
143
|
+
\let\BS=\ttbslash
|
144
|
+
\fi
|
145
|
+
% \end{macrocode}
|
146
|
+
%
|
147
|
+
% \end{macro}
|
148
|
+
%
|
149
|
+
% \begin{macro}{\verbh@@k}
|
150
|
+
%
|
151
|
+
% |\verb|$B!$(B|verbatim| $BEy$G;H$&%U%C%/$G$9!#(B
|
152
|
+
%
|
153
|
+
% \begin{macrocode}
|
154
|
+
\if@yen
|
155
|
+
\begingroup
|
156
|
+
\catcode`\|=0 \catcode`\\=13
|
157
|
+
|gdef|verbh@@k{|catcode`|\=13 |let\=|y@n}
|
158
|
+
|endgroup
|
159
|
+
\else
|
160
|
+
\let\verbh@@k=\relax
|
161
|
+
\fi
|
162
|
+
% \end{macrocode}
|
163
|
+
%
|
164
|
+
% \end{macro}
|
165
|
+
%
|
166
|
+
% \begin{macro}{\verbh@@@k}
|
167
|
+
% \begin{macro}{\verbh@@@k@}
|
168
|
+
%
|
169
|
+
% $B$5$i$J$k%U%C%/$G$9!#(B
|
170
|
+
%
|
171
|
+
% \begin{macrocode}
|
172
|
+
\begingroup
|
173
|
+
\catcode`\'=13
|
174
|
+
\catcode`\`=13
|
175
|
+
\gdef\verbh@@@k{\catcode39=13 \let'=\@rq \catcode96=13 \let`=\@lq}
|
176
|
+
\endgroup
|
177
|
+
\def\@OTone{OT1}
|
178
|
+
\def\@Tone{T1}
|
179
|
+
\def\verbh@@@k@{%
|
180
|
+
\ifx\f@encoding\@OTone
|
181
|
+
\chardef\@lq=18
|
182
|
+
\chardef\@rq=13
|
183
|
+
\verbh@@@k
|
184
|
+
\else
|
185
|
+
\ifx\f@encoding\@Tone
|
186
|
+
\chardef\@lq=0
|
187
|
+
\def\@rq{{\fontencoding{TS1}\selectfont\textquotesingle}}%
|
188
|
+
\def\y@n{{\fontencoding{TS1}\selectfont\textyen}}%
|
189
|
+
\verbh@@@k
|
190
|
+
\fi
|
191
|
+
\fi
|
192
|
+
}
|
193
|
+
% \end{macrocode}
|
194
|
+
%
|
195
|
+
% \end{macro}
|
196
|
+
% \end{macro}
|
197
|
+
%
|
198
|
+
% \begin{macro}{\verbatim@font}
|
199
|
+
%
|
200
|
+
% $B$3$l$O(B |latex.ltx| $B$K(B |\normalfont\ttfamily|
|
201
|
+
% $B$HDj5A$5$l$F$$$^$9$,!$(B|\bfseries| |\verb...| $B$H$$$C$?;H$$J}$b$7$?$$$N$G!$(B
|
202
|
+
% |\normalfont| $B$O:o=|$7$F$7$^$$$^$7$?!#(B
|
203
|
+
%
|
204
|
+
% \begin{macrocode}
|
205
|
+
\def\verbatim@font{\ttfamily}
|
206
|
+
% \end{macrocode}
|
207
|
+
%
|
208
|
+
% \end{macro}
|
209
|
+
%
|
210
|
+
% \begin{macro}{\verb}
|
211
|
+
%
|
212
|
+
% $B85$O?t<0%b!<%I;~$@$1(B |\hbox| $B$KF~$k$h$&$K$J$C$F$$$^$7$?$,!$(B
|
213
|
+
% |\noautoxspacing| $B$N8z2L$rF@$k$?$a!$>o$K(B |\hbox| $B$KF~$k$h$&$K$7$^$7$?!#(B
|
214
|
+
%
|
215
|
+
% \begin{macrocode}
|
216
|
+
\def\verb{%
|
217
|
+
\leavevmode\hbox
|
218
|
+
\bgroup
|
219
|
+
\verb@eol@error \let\do\@makeother \dospecials
|
220
|
+
\verbatim@font\@noligs
|
221
|
+
\noautoxspacing
|
222
|
+
\verbh@@k \verbh@@@k@
|
223
|
+
\@ifstar\@sverb\@verb}
|
224
|
+
% \end{macrocode}
|
225
|
+
%
|
226
|
+
% \end{macro}
|
227
|
+
%
|
228
|
+
% \begin{macro}{\@xverbatim}
|
229
|
+
% \begin{macro}{\@sxverbatim}
|
230
|
+
%
|
231
|
+
% |\| $B$N(B |\catcode| $B$r(B12$B$+$i(B13$B$KJQ$($^$7$?!#(B
|
232
|
+
%
|
233
|
+
% \begin{macrocode}
|
234
|
+
\if@yen
|
235
|
+
\begingroup \catcode `|=0 \catcode `[= 1
|
236
|
+
\catcode`]=2 \catcode `\{=12 \catcode `\}=12
|
237
|
+
\catcode`\\=13 |gdef|@xverbatim#1\end{verbatim}[#1|end[verbatim]]
|
238
|
+
|gdef|@sxverbatim#1\end{verbatim*}[#1|end[verbatim*]]
|
239
|
+
|endgroup
|
240
|
+
\fi
|
241
|
+
% \end{macrocode}
|
242
|
+
%
|
243
|
+
% \end{macro}
|
244
|
+
% \end{macro}
|
245
|
+
%
|
246
|
+
% \begin{macro}{\verbatimleftmargin}
|
247
|
+
%
|
248
|
+
% |verbatim| $B4D6-$NM>J,$J:8%^!<%8%s$G$9!#(B
|
249
|
+
% $BJ8=q%U%!%$%kCf$J$I$G<+M3$K:FDj5A$7$F$/$@$5$$!#(B
|
250
|
+
%
|
251
|
+
% \begin{macrocode}
|
252
|
+
\newdimen\verbatimleftmargin
|
253
|
+
\verbatimleftmargin=2zw
|
254
|
+
% \end{macrocode}
|
255
|
+
%
|
256
|
+
% \end{macro}
|
257
|
+
%
|
258
|
+
% \begin{macro}{\verbatimsize}
|
259
|
+
%
|
260
|
+
% |verbatim| $B4D6-$N%U%)%s%H%5%$%:$G$9!#(B
|
261
|
+
% $BJ8=q%U%!%$%kCf$J$I$G<+M3$K:FDj5A$7$F$/$@$5$$!#(B
|
262
|
+
%
|
263
|
+
% \begin{macrocode}
|
264
|
+
\def\verbatimsize{\fontsize{9}{11pt}\selectfont}
|
265
|
+
% \end{macrocode}
|
266
|
+
%
|
267
|
+
% \end{macro}
|
268
|
+
%
|
269
|
+
% \begin{macro}{\@verbatim}
|
270
|
+
%
|
271
|
+
% |verbatim| $B4D6-$G;H$&%U%)%s%H$N9TAw$j$H%5%$%:!J(B|\f@size|$B!K$,(B
|
272
|
+
% $BK\J8$H0c$&$H!$A08e$N4V3V$,0c$C$F$7$^$$$^$9!#$=$l$rJd@5$7$^$9!#(B
|
273
|
+
%
|
274
|
+
% \begin{macrocode}
|
275
|
+
\def\@verbatim{%
|
276
|
+
\trivlist \item\relax
|
277
|
+
\if@minipage
|
278
|
+
\verbatimsize
|
279
|
+
\else
|
280
|
+
\vskip\baselineskip
|
281
|
+
\vskip-\f@size pt
|
282
|
+
\verbatimsize
|
283
|
+
\vskip-\baselineskip
|
284
|
+
\vskip\f@size pt
|
285
|
+
\vskip\parskip
|
286
|
+
\fi
|
287
|
+
\leftskip\@totalleftmargin
|
288
|
+
\if@minipage \else
|
289
|
+
\advance \leftskip \verbatimleftmargin
|
290
|
+
\fi
|
291
|
+
\rightskip\z@skip
|
292
|
+
\parindent\z@
|
293
|
+
\parfillskip\@flushglue
|
294
|
+
\parskip\z@skip
|
295
|
+
\@@par
|
296
|
+
\@tempswafalse
|
297
|
+
\def\par{%
|
298
|
+
\if@tempswa
|
299
|
+
\leavevmode \null \@@par\penalty\interlinepenalty
|
300
|
+
\else
|
301
|
+
\@tempswatrue
|
302
|
+
\ifhmode\@@par\penalty\interlinepenalty\fi
|
303
|
+
\fi}%
|
304
|
+
\let\do\@makeother \dospecials
|
305
|
+
\obeylines \verbatim@font \@noligs
|
306
|
+
\noautoxspacing
|
307
|
+
\verbh@@k \verbh@@@k@
|
308
|
+
\hyphenchar\font\m@ne
|
309
|
+
\everypar \expandafter{\the\everypar \unpenalty}%
|
310
|
+
}
|
311
|
+
% \end{macrocode}
|
312
|
+
%
|
313
|
+
% \end{macro}
|
314
|
+
%
|
315
|
+
% $B0J>e$G=*$o$j$G$9!#(B
|
316
|
+
%
|
317
|
+
% \begin{macrocode}
|
318
|
+
%</jsverb>
|
319
|
+
\endinput
|
320
|
+
% \end{macrocode}
|
321
|
+
%
|
322
|
+
% \Finale
|
@@ -0,0 +1,128 @@
|
|
1
|
+
%%
|
2
|
+
%% This is file `jsverb.sty',
|
3
|
+
%% generated with the docstrip utility.
|
4
|
+
%%
|
5
|
+
%% The original source files were:
|
6
|
+
%%
|
7
|
+
%% jsverb.dtx (with options: `jsverb')
|
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 jsverb.sty.
|
15
|
+
%%
|
16
|
+
%% For distribution of the original source see the terms
|
17
|
+
%% for copying and modification in the file jsverb.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
|
+
\ProvidesFile{jsverb.sty}[2007/01/28 okumura]
|
25
|
+
\newif\if@yen \@yenfalse
|
26
|
+
\DeclareOption{yen}{\@yentrue}
|
27
|
+
\ProcessOptions\relax
|
28
|
+
\AtBeginDocument{%
|
29
|
+
\expandafter\ifx\csname T@T1\endcsname\relax \else
|
30
|
+
\expandafter\ifx\csname T@TS1\endcsname\relax
|
31
|
+
\input{ts1enc.def}%
|
32
|
+
\fi\fi
|
33
|
+
}
|
34
|
+
\def\y@n{Y\llap=}
|
35
|
+
\def\ttyen{{\ttfamily\y@n}}
|
36
|
+
\def\ttbslash{{\ttfamily\char`\\}}
|
37
|
+
\if@yen
|
38
|
+
\let\BS=\ttyen
|
39
|
+
\else
|
40
|
+
\let\BS=\ttbslash
|
41
|
+
\fi
|
42
|
+
\if@yen
|
43
|
+
\begingroup
|
44
|
+
\catcode`\|=0 \catcode`\\=13
|
45
|
+
|gdef|verbh@@k{|catcode`|\=13 |let\=|y@n}
|
46
|
+
|endgroup
|
47
|
+
\else
|
48
|
+
\let\verbh@@k=\relax
|
49
|
+
\fi
|
50
|
+
\begingroup
|
51
|
+
\catcode`\'=13
|
52
|
+
\catcode`\`=13
|
53
|
+
\gdef\verbh@@@k{\catcode39=13 \let'=\@rq \catcode96=13 \let`=\@lq}
|
54
|
+
\endgroup
|
55
|
+
\def\@OTone{OT1}
|
56
|
+
\def\@Tone{T1}
|
57
|
+
\def\verbh@@@k@{%
|
58
|
+
\ifx\f@encoding\@OTone
|
59
|
+
\chardef\@lq=18
|
60
|
+
\chardef\@rq=13
|
61
|
+
\verbh@@@k
|
62
|
+
\else
|
63
|
+
\ifx\f@encoding\@Tone
|
64
|
+
\chardef\@lq=0
|
65
|
+
\def\@rq{{\fontencoding{TS1}\selectfont\textquotesingle}}%
|
66
|
+
\def\y@n{{\fontencoding{TS1}\selectfont\textyen}}%
|
67
|
+
\verbh@@@k
|
68
|
+
\fi
|
69
|
+
\fi
|
70
|
+
}
|
71
|
+
\def\verbatim@font{\ttfamily}
|
72
|
+
\def\verb{%
|
73
|
+
\leavevmode\hbox
|
74
|
+
\bgroup
|
75
|
+
\verb@eol@error \let\do\@makeother \dospecials
|
76
|
+
\verbatim@font\@noligs
|
77
|
+
\noautoxspacing
|
78
|
+
\verbh@@k \verbh@@@k@
|
79
|
+
\@ifstar\@sverb\@verb}
|
80
|
+
\if@yen
|
81
|
+
\begingroup \catcode `|=0 \catcode `[= 1
|
82
|
+
\catcode`]=2 \catcode `\{=12 \catcode `\}=12
|
83
|
+
\catcode`\\=13 |gdef|@xverbatim#1\end{verbatim}[#1|end[verbatim]]
|
84
|
+
|gdef|@sxverbatim#1\end{verbatim*}[#1|end[verbatim*]]
|
85
|
+
|endgroup
|
86
|
+
\fi
|
87
|
+
\newdimen\verbatimleftmargin
|
88
|
+
\verbatimleftmargin=2zw
|
89
|
+
\def\verbatimsize{\fontsize{9}{11pt}\selectfont}
|
90
|
+
\def\@verbatim{%
|
91
|
+
\trivlist \item\relax
|
92
|
+
\if@minipage
|
93
|
+
\verbatimsize
|
94
|
+
\else
|
95
|
+
\vskip\baselineskip
|
96
|
+
\vskip-\f@size pt
|
97
|
+
\verbatimsize
|
98
|
+
\vskip-\baselineskip
|
99
|
+
\vskip\f@size pt
|
100
|
+
\vskip\parskip
|
101
|
+
\fi
|
102
|
+
\leftskip\@totalleftmargin
|
103
|
+
\if@minipage \else
|
104
|
+
\advance \leftskip \verbatimleftmargin
|
105
|
+
\fi
|
106
|
+
\rightskip\z@skip
|
107
|
+
\parindent\z@
|
108
|
+
\parfillskip\@flushglue
|
109
|
+
\parskip\z@skip
|
110
|
+
\@@par
|
111
|
+
\@tempswafalse
|
112
|
+
\def\par{%
|
113
|
+
\if@tempswa
|
114
|
+
\leavevmode \null \@@par\penalty\interlinepenalty
|
115
|
+
\else
|
116
|
+
\@tempswatrue
|
117
|
+
\ifhmode\@@par\penalty\interlinepenalty\fi
|
118
|
+
\fi}%
|
119
|
+
\let\do\@makeother \dospecials
|
120
|
+
\obeylines \verbatim@font \@noligs
|
121
|
+
\noautoxspacing
|
122
|
+
\verbh@@k \verbh@@@k@
|
123
|
+
\hyphenchar\font\m@ne
|
124
|
+
\everypar \expandafter{\the\everypar \unpenalty}%
|
125
|
+
}
|
126
|
+
\endinput
|
127
|
+
%%
|
128
|
+
%% End of file `jsverb.sty'.
|