1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
|
% ̕ tpic specials ܂݂܂Btpic p dviout/prt Ō䗗B
\documentstyle[11pt,a4j,jtwocolumn]{jarticle}
\title{Tpic ɂ}
\author{Oh-Yeah? (Nifty-Serve GGA03472)}
\date{June 7, 1992}
\begin{document}
\maketitle
\section{ʂĂʖA\TeX ~Graphics}
̂悤ɁA\TeX ͖{͂gł邽߂̃vOłA `
̋@\͋ɂ߂Č肳Ă܂BȂf炵o͂ڂɂāA}G
荞߂炢ȂƎvЂƂ炵A\LaTeX picture ͂߁A
PiCTeX epic ȂǁA̍HvȂĂ܂B ̃AhEI\
tg 100 \% \TeX ݊ۂĂA쐬͕W \TeX VXe
y dvi hCoł̂܂o͂ł܂B ̔ʁA݊䂦̐Ȃ
A`̌XĂAȕׂĐ}߂ɑ
̃fBXNeʂƃKvƂ肵܂BɃp\R \TeX ł݂
}ƂƁABig\TeX łA Ƃ֗čsxƋAĂ
B\verb+v(^^;)v+
Ai͂悭m܂j \TeX Postscript ̐}荞ލHv
悤łBÃAv[`ɂ Postscript v^Kv
B
tpic A\TeX ɃOtBbNX@\t邽߂ɍlĂꂽ̂̂ЂƂ
BƂ낪̏ꍇA\TeX special R}h𗘗p̂ŁAT|[g
dvi hCoKvƂȂ܂B \TeX ͕Ŵ̂ł̂łA\TeX
g tpic specials R}ĥ܂ dvi t@CɏނłBb
AuOtBbNX dvi hCoɔCƂvƂ킯łB ݊͂
x]ɂȂ܂A ̑ \TeX ɕSȂ̂ŁA dvi
t@C͂ƏĂ݁AxiԂjȂ܂BEjE
_E spline ȐE~Eȉ~EʂRɕ`܂B܂AVF[fBOih
Ԃj㏑̋@\܂Bdvi hCo tpic T|[gĂA
v^͓Rʂ̂̂ł悢킯łB
\begin{center}
\unitlength 0.001in
\begin{picture}(2000,1700)(0,-1600)
\special{pn 8}%
\special{sh}%
\special{ia 350 200 400 250 0 6.28319}%
\special{sh 0}%
\special{ar 400 250 400 250 0 6.28319}%
\put(400,-250){\makebox(0,0){document}}%
\special{sh 0}%
\special{ia 750 475 200 200 0 6.28319}%
\special{sh 0.1}%
\special{ar 750 475 200 200 0 6.28319}%
\put(750,-450){\makebox(0,0){tpic}}%
\special{pa 800 250}%
\special{pa 1200 250}%
\special{fp}%
\special{sh 1}%
\special{pa 1200 250}%
\special{pa 1100 275}%
\special{pa 1100 225}%
\special{pa 1200 250}%
\special{fp}%
\special{sh}%
\special{pa 1150 450}%
\special{pa 1950 450}%
\special{pa 1950 -50}%
\special{pa 1750 -50}%
\special{pa 1550 100}%
\special{pa 1350 -50}%
\special{pa 1150 -50}%
\special{pa 1150 450}%
\special{ip}%
\special{sh 0}%
\special{pa 1200 500}%
\special{pa 2000 500}%
\special{pa 2000 0}%
\special{pa 1800 0}%
\special{pa 1600 150}%
\special{pa 1400 0}%
\special{pa 1200 0}%
\special{pa 1200 500}%
\special{fp}%
\put(1600,-250){\makebox(0,0){\TeX}}%
\special{pa 1600 500}%
\special{pa 1600 1050}%
\special{fp}%
\special{sh 1}%
\special{pa 1600 1050}%
\special{pa 1625 950}%
\special{pa 1575 950}%
\special{pa 1600 1050}%
\special{fp}%
\special{sh}%
\special{pa 1150 1450}%
\special{pa 1550 1400}%
\special{pa 1950 1450}%
\special{pa 1950 1200}%
\special{pa 1950 950}%
\special{pa 1550 1000}%
\special{pa 1150 950}%
\special{pa 1200 1200}%
\special{pa 1150 1450}%
\special{sp -0.05}%
\special{sh 0}%
\special{pa 1200 1500}%
\special{pa 1600 1450}%
\special{pa 2000 1500}%
\special{pa 1950 1250}%
\special{pa 2000 1000}%
\special{pa 1600 1050}%
\special{pa 1200 1000}%
\special{pa 1250 1250}%
\special{pa 1200 1500}%
\special{sp}%
\put(1600,-1250){\makebox(0,0){dvi driver}}%
\special{sh 0}%
\special{ia 1950 1475 200 200 0 6.28319}%
\special{sh 0.2}%
\special{ar 1950 1475 200 200 0 6.28319}%
\put(1950,-1450){\makebox(0,0){tpic}}%
\special{pa 1250 1250}%
\special{pa 800 1250}%
\special{fp}%
\special{sh 1}%
\special{pa 800 1250}%
\special{pa 900 1275}%
\special{pa 900 1225}%
\special{pa 800 1250}%
\special{fp}%
\special{sh}%
\special{ia 350 1200 400 250 0 6.28319}%
\special{sh 0}%
\special{ar 400 1250 400 250 0 6.28319}%
\put(400,-1250){\makebox(0,0){printer}}%
\end{picture}
\end{center}
ނ݊ƃ|[^reB \TeX ̏dvȓłA specials ̈ɂ
TdKvłBƂ͌̂́AƃOtBbNXɊւĂ \TeX gł
Ȃ dvi hCô͍Ił悤Ɏv܂B ܂AKnuth
The \TeX ~Book ̒ŁA
\begin{quotation}
\special{sh 0.1}%
\special{pa 0 0}%
\special{pa 3000 0}%
\special{pa 3000 1500}%
\special{pa 0 1500}%
\special{pa 0 0}%
\special{ip}%
A܂܂ȃO[v̐lӐ[dˁǍʁAOtBb
N߂̉炩̕W܂̂Ɗ҂ĂBȂA\verb+\special
+ g߂̎gꂳ\BiJDPj%
\end{quotation}
ƏĂ܂B̓_A tpic eepic, gnuplot ͂߂Ƃ鑽̃v
O dvi hCoɂăT|[gĂA ̕WƌĂׂ鑶݂
ȂĂ܂B
ō̃o[Wł́Asempa ̂ӂɂA dviout/prt tpic T|
[gt邱Ƃɂ܂Bʏ (non-tpic) ̏xo[W
dviout/prt ɔא \% xxƎv܂̂ŁA tpic gƂ̏Ȃ
[U[ɂfbgɂ͂ȂȂł傤BAvOTCY͂Ȃ
傫ȂĂ܂B
Ȃ݂ɁAƂāA gnuplot pēẽOt latex ` eepic
`ŏo͂̃TCYrĂ݂ƁF
\begin{center}
\begin{tabular}{lcc}
& latex & eepic \\
\hline
CP2FIG1.TEX & 11684 & 1513 \\
CP2FIG2.TEX & 20586 & 1512 \\
CP2FIG3.TEX & 11684 & 1513 \\
CP2.DVI & 21052 & 8584
\end{tabular}
\end{center}
Ƃ킯ŁAȂt@CTCYȂA \TeX ̕SȂȂĂ
邱Ƃ܂BGȃOtꍇɂ͓Ƀbg傫Ǝv܂B
\section{tpic Ƃ͉}
tpic ́A Brian Kernighan Troff p}`vvZbT pic ɂāA Tim
Morgan グ \TeX p}`vvZbTyтꂪo͂ special R}
hZbĝ̖łBŐVo[W 2.2 łBtpic special R}hZbg
ꎩ̂͂ȒPȃOtBbNEv~eBu߂łACvg
rIeՂłɂ炸pL̂ŁA dvi hCo (iptex,
xtex, texx, texsun, imagen1, dvips, dviis, quicspool) OtBbNXEv
OT|[g悤ɂȂ܂B
\subsection{tpic ̎gp@}
ʂ \TeX tpic T|[g dvi hCoA[U[g tpic
special R}hɑ}Đ}Ƃ\łBiۂ̕
ďĂ܂Bj Atpic ̓eLXgƐ}`قƂǓƗ
ɍs܂̂ŁAeLXgƐ}`݂ɂ͂xs낪KvłB
p猩ƁAtpic specials ͂܂Ńv~eBułAʏ͑̃Ot
BbNXEvOo͂钆Ԍƍlق悢ł傤Bɑ
vO tpic specials o͂T|[gĂ܂̂ŁA prɉĎg
ł܂B
\begin{description}
\item[tpic]
q \TeX p}`vvZbTłBt[`[gubN_CAO
ǁAȒPȐ}`̂ɑϕ֗Ɏg܂B AAT\&T Bell Labs.
L pic ̃R[hꕔ܂łAt[EFAł͂܂B
\item[gpic]
GNU vWFNg pic ʌ݊̃vvZbTłAtpic o͂
\łBtpic ̑Ɏgt[EFAłB groff pbP[WɊ܂܂Ă
܂B
\item[eepic]
Conrad Kwok ̍ \LaTeX p̃}NłB\LaTeX picture Ƃ̊g
ł epic }NXɊgāAtpic specials o͂ł悤ɂ̂
B tpic T|[g dvi hCoȂꍇɂAepic ŃG~[g
ގ̐}悤ɍHvĂ܂B documentstyle ̃IvV
\verb|[epic,eepic]| w肵Ďg܂B
\item[gnuplot]
Thomas Williams, Colin Kelley, David Kotz ̎ɂȂAvbgăO
tvOłB\LaTeX ~picture o͂ƁAeepic o̗͂T|
[gĂ܂B eepic }NpꍇA``set terminal eepic'' Ǝw肵ăO
to͂A ɂƂ荞ލ documentstyle ̃IvV
\verb|[epic,eepic]| w肵Ďg܂B
\item[transfig]
Micah Beck ɂ \LaTeX p}`t@CݕϊvOłB \LaTeX
~picture, epic, eepic, PiCTeX ȂǑ̃OtBbNXT|[gĂ
B ɕ֗Ǝv̂́A UNIX ̃EBhEVXep̐}`GfB^ Fig,
xfig o͂ Fig R[h̃R}hɖ|Ă邱ƂłB
Fig xfig DOS ɈڐAA\TeX OtBbNX tpic O蔶i_CA
OEvbgEGjo낤ƂɂȂ܂B\verb+W(^^)W+
\end{description}
\subsection{tpic 2.2 R}hZbg (output language) dl}
̎dl̓OtBbNXEvO dvi hCoƂĂl̂
߂̃KChłB tpic vvZbT tpic o͂́Aŏ newbox R}h
s graph `܂BX̐} graph Ɋ肠Ăꂽ vtop ɂ
Ă܂B̔̕ƍ͐}̃TCŶ݂Ō܂Atext ͍l܂B
̔̒ɁAA special R}h hbox R}hт܂B
X̃OtBbNvf̈ʒúA \TeX ێĂuy[W݈̌ʒuv
鑊WŎw肵܂BX special graph box ̍[ɒuA
̓_ graph ̌_ɂȂ܂BX ͉EAY {\em }łBiY
picture ƋtȂ̂ŒӂKvłBj W͐ŕ\APʂ̓~
C`łBʏ graph ͓̃OtBbNvf܂傫̂ŁA
x, y ͐̒lƂ܂B
\begin{center}
\unitlength 0.001in
\begin{picture}(600,600)(0,-550)
\special{pn 8}%
\special{pa 0 0}%
\special{pa 500 0}%
\special{fp}%
\special{sh 1}%
\special{pa 500 0}%
\special{pa 400 25}%
\special{pa 400 -23}%
\special{pa 500 0}%
\special{fp}%
\special{pa 0 0}%
\special{pa 0 500}%
\special{fp}%
\special{sh 1}%
\special{pa 0 500}%
\special{pa -23 400}%
\special{pa 25 400}%
\special{pa 0 500}%
\special{fp}%
\put(0,0){\makebox(0,0)[rb]{0,0}}%
\put(520,0){\makebox(0,0)[l]{$+x$}}%
\put(0,-520){\makebox(0,0)[t]{$+y$}}%
\end{picture}
\end{center}
px +X +Y ւ̌𐳂ƂāAWAP (0 - $2\pi$) ŋLq
܂B ͏o̓y[Wł́uvvɑ܂B Sȉ~Ƒȉ~́A
$\hbox{\it start angle}=0$ $\hbox{\it end angle} \ge 2\pi$ ƂĎw肵
B
dvi hCoׂ special R}h͈ȉ̂ƂłB ͈ȏ
̋ŋAɒfȂ萮łBSĂ̐}`ihԂȊOj
̓eLXgƓƗɍsAdˏ܂Bspecial ̌ɌeLXg͐}
`̏ɏdˏ܂Bspecial ̑O \TeX ̕ێ錻݈ʒu͕sςłB
\begin{description}
\item[pn $s$]
$s$ ~C`ɐݒ肵܂B
\item[pa $x$ $y$]
_ $(x, y)$ path ɕt܂Bpath ̓hCoLA̓_̏W
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O͐}`݂̓̂ɑčsAE͂Ƃ͓ƗɌ݂̐
pĕ`܂B
\end{description}
ȉ̃R}h͈ȑÕo[Ŵ̂łA݊̂߂ɃCvg
ׂłB
\begin{description}
\item[wh]
sh 0 ƓłB
\item[bk]
sh 1 ƓłB
\item[tx]
̃R}h́AȑOɂ͓hԂ̃p^[w肷̂ɗpĂ܂
AImagen foCXhCoΉĂ݂̂łA ɃfoCXˑ
̂ŁACvg͂߂ł܂Bsh R}h𐄏܂B
\end{description}
\section{쌠EoOȂ}
\begin{itemize}
\item ̒̕쌠 dviout/prt pbP[Ŵɏ]܂B
\item tpic ł̃RpC ``Make -D(@햼) -DTPIC dviout.exe dviprt.exe''
łB``-DVFTPIC''ł͏̋ytHg̓WJɂ tpic p𗘗p܂B
\item dviout/prt ̓y[WɏŝŁA y[Wĕ\E
ƈȑÕy[W̐ݒ肪ꂸftHg̐ɂȂĂ܂Ƃ
܂BftHgȊO̐y[Wɂ킽ėpƂɂ́Aey[W̍
A specials ̒O pn R}ĥłB
\item tpic specials ̎dl͂܂ł͂ȂA Iȕ܂B tpic
T|[gvOꍇɂ́A̎dlύXɏ_ɑΉł悤
ȃR[fBO߂܂B
\end{itemize}
\section{ӎ}
Tim Morgan tpic 2.2 latest version ̎dlƃ}jA肭A
dl̘a{pbP[WɓYt邱ƂĂ܂B܂A{p
sA⎁ɂ tpic dviout/prt ɂċMdȂ܂B
spline ̃CvgɂAF́u C ɂŐVAS
YTvQlɂȂ܂Bӂ܂B
\end{document}
|