Debian Codegraph @

texmf-dist/tex/latex/curves/curves.sty

raw
1 %%
2 %% This is file `curves.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% curves.dtx (with options: `package')
8 %% Copyright (C) 1991-2008 Ian Maclaine-cross
9 %% This file may be distributed under the terms of the
10 %% LaTeX Project Public License.
11 %% See file curves.dtx for details.
12 %% Internet: [email protected]
13 \NeedsTeXFormat{LaTeX2e}
14 \ProvidesPackage{curves}
15 [2017/08/25 1.55 Curves for LaTeX picture environment]
16
17 \catcode`\;=11
18
19 \newcount\;sc
20 \newcount\;scp
21 \newcount\;t
22 \newcount\;cc
23 \newcount\;cnd
24 \newcount\;mcnd
25 \newcount\;np
26 \newcount\;overhang
27 \newcount\;pbs
28 \newcount\;pns
29 \newcount\;psc
30 \newcount\;rc
31 \newcount\;rtc
32 \newcount\;tc
33 \let\;tca=\@tempcnta
34 \let\;tcb=\@tempcntb
35
36 \newlength\csdiameter
37 \newlength\curvelength
38 \newlength\overhang
39 \newlength\;x
40 \newlength\;dx
41 \newlength\;ddx
42 \newlength\;y
43 \newlength\;dy
44 \newlength\;ddy
45 \newlength\;pl
46 \newlength\;ucd
47 \let\;td=\@tempdima
48 \let\;ytd=\@tempdimb
49
50 \newsavebox{\;csbox}
51 \newsavebox{\;pt}
52
53 \newif\if;noopt \;noopttrue
54 \newif\ifcurvewarn \curvewarntrue
55 \newif\ifstraight
56 \newif\if;ccn
57 \newif\if;pt
58 \newif\if;csym
59 \newif\if;scnt
60
61 \newhelp\;strline{curve straight from}
62 \newhelp\m;ssingcoord{curve needs more points, add them.}
63 \newhelp\;negdash{curvedashes needs the same sign for all arguments.}
64 \newhelp\;oddcoord{curve requires two co-ordinates for each point,
65 count them.}
66
67 \newcommand\;linewidth[1]{}
68 \newcommand\;startline{}
69 \newcommand\;stopl;ne{}
70
71 \newcommand\;optioncheck[2]{%
72 \DeclareOption{#1}{%
73 \if;noopt
74 #2\;nooptfalse
75 \else
76 \PackageError{curves}{Option
77 \CurrentOption\space ignored}{curves uses only one dvi option}%
78 \fi
79 }%
80 }
81
82 \newcommand\;setdisk{\@killglue \;linewidth\@wholewidth
83 \set;pt{}\let\;stopline\;stopl;ne}
84 \newcommand\s;tpitch{\;td\patternresolution\p@ \;psc\;td}
85
86 \;optioncheck{dvips}{
87 \renewcommand\;linewidth[1]{\special{em:linewidth \the#1}}%
88 \renewcommand\;startline{\special{em:moveto}}%
89 \renewcommand\;stopl;ne{\special{em:lineto}}%
90 }
91
92 \;optioncheck{emtex}{
93 \renewcommand\;linewidth[1]{\special{em:linewidth \the#1}}%
94 \renewcommand\;startline{\special{em:moveto}}%
95 \renewcommand\;stopl;ne{\special{em:lineto}}%
96 \renewcommand\;setdisk{\@killglue
97 \ifdim\@halfwidth>\p@
98 \set;pt{\@circ\@wholewidth{112}}\;linewidth{\wd\;pt}%
99 \s;tcirc{\unhbox\;pt}%
100 \else \;linewidth\@wholewidth \set;pt{}\fi \let\;stopline\;stopl;ne}
101 }
102
103 \;optioncheck{xdvi}{
104 \special{!/;L{1 256.96 div dup scale 1 setlinecap
105 setlinewidth newpath 0 0 moveto lineto stroke}def}%
106 \newcount\;wc
107 \newlength\;X
108 \newlength\;Y
109 \renewcommand\;linewidth[1]{\;wc#1}%
110 \renewcommand\;startline{\global\;X\;x \global\;Y\;y}%
111 \renewcommand\;stopl;ne{%
112 \;tca\;X \advance\;tca-\;x \;tcb\;Y \advance\;tcb-\;y
113 \divide\;tca\@cclvi \divide\;tcb\@cclvi \divide\;wc\@cclvi
114 \special{"\the\;tca\space \the\;tcb\space \the\;wc\space ;L}%
115 \;startline
116 }%
117 }
118
119 \;optioncheck{WML}{
120 \renewcommand\;linewidth[1]{\special{W \the#1}}%
121 \renewcommand\;startline{\special{M}}%
122 \renewcommand\;stopl;ne{\special{L}}%
123 \;nooptfalse
124 }
125
126 \let\;optioncheck\relax
127 \ProcessOptions\relax
128
129 \if;noopt
130
131 \newcount\;wc
132 \newlength\;X
133 \newlength\;Y
134
135 \newcommand\;setperiod{\;tcb
136 \ifdim\@halfwidth>.6\p@ 17\;td.7
137 \else \ifdim\@wholewidth>.85\p@ 12\;td.48
138 \else \ifdim\@wholewidth>.6\p@ 8\else 5\fi \;td.34
139 \fi
140 \fi \p@
141 \s;tcirc{\rm \fontseries m\fontshape n\fontsize{\the\;tcb}\p@
142 \selectfont \hss.}}%
143
144 \renewcommand\;setdisk{\@killglue \ifdim\@halfwidth>.85\p@
145 \s;tcirc{\@circ{\@wholewidth}{112}}\;td\@wholewidth
146 \divide\;td 8\advance\;td.6\p@ \ifdim\;td>\thr@@\p@\;td\thr@@\p@\fi
147 \else \;setperiod \fi \let\;stopline\;stopl;ne}%
148
149 \renewcommand\s;tpitch{\;ytd\diskpitchstretch\;td \;wc\;ytd
150 \;td\patternresolution\p@ \;psc\;td }
151
152 \renewcommand\;startline{\global\;X\;x \global\;Y\;y}
153
154 \renewcommand\;stopl;ne{%
155 \;td\;X \advance\;td-\;x \;ytd\;Y \advance\;ytd-\;y
156 \;startline \;rxya\;td\;ytd \divide\;rc\;wc
157 \ifnum\;rc>\z@ \advance\;rc\@ne
158 \divide\;td\;rc \divide\;ytd\;rc \;y\z@
159 \advance\;rc\m@ne \;tca\;rc
160 \let\n;xt\;ls \;ls \kern-\;rc\;td
161 \fi}
162
163 \newcommand\;ls{\advance\;y\;ytd \kern\;td \raise\;y\copy\;pt
164 \advance\;tca\m@ne \ifnum\;tca=\z@ \let\n;xt\relax \fi \n;xt}
165
166 \fi
167
168 \newcommand\arc[1][0]{\;arc[#1]}
169 \newcommand\;arc{}
170 \def\;arc[#1](#2,#3)#4{\;setpoint{#1}\scaleput(#2,#3){\;ddx
171 -#3\unitlength \;ddy#2\unitlength \;firstpoint \;td#4\p@ \;drwarc}}
172
173 \def\bezier#1)#2(#3)#4({\@bezier#1)(#3)(}
174 \def\@bezier#1(#2,#3)(#4,#5)(#6,#7){\;dx#4\unitlength \;ddx-\;dx
175 \advance\;dx-#2\unitlength \advance\;ddx#6\unitlength
176 \;dy#5\unitlength \;ddy-\;dy \advance\;dy-#3\unitlength
177 \advance\;ddy#7\unitlength
178 \;setpoint{#1}\scaleput(#2,#3){\;firstpoint \;bezier}}
179
180 \newcommand\bigcircle[2][0]{\;setpoint{#1}\;dx\unitlength
181 \global\divide\unitlength\tw@
182 \scaleput(#2,0){\;startline \;ddx\z@ \;ddy#2\unitlength
183 \global\unitlength\;dx \;td360\p@ \;drwarc}}
184
185 \newcommand\closecurve[1][0]{\;closecurve[#1]}
186 \newcommand\;closecurve{}
187 \def\;closecurve[#1](#2){\;coordn\closecurve\thr@@{#2}{#1}%
188 \if;ccn\scaleput(\;xb,\;yb){\;startline
189 \edef\;ci{\;xa,\;ya,#2,\;xb,\;yb,\;xc,\;yc}%
190 \advance\;cc\thr@@ \;tagcurve\;ci}\fi}
191
192 \newcommand\curve[1][0]{\;curve[#1]}
193 \newcommand\;curve{}
194 \def\;curve[#1](#2){\;coordn\curve\tw@{#2}{#1}%
195 \if;ccn \scaleput(\;xa,\;ya){\;firstpoint
196 \ifnum\;cc=\tw@ \;slbezd \;slbez
197 \else \;scbezd\;dx\;ddx\;xa\;xb\;xc \;scbezd\;dy\;ddy\;ya\;yb\;yc
198 \;bezier \;tagcurve{#2}\ifnum\;cc>6\;endcurve\fi \fi}\fi}
199 \newcommand\;scbezd[5]{\;slcd#2#3#5\divide#24\;slcd#1#3#4\advance#1-#2}
200 \newcommand\;xa{} \newcommand\;xb{} \newcommand\;xc{}
201 \newcommand\;ya{} \newcommand\;yb{} \newcommand\;yc{}
202 \newcommand\;ci{}
203
204 \newcommand\curvesymbol[1]{\def\;curvesymbol{#1}\ch;ckcs
205 \global\sbox\;csbox{#1}\csdiameter\wd\;csbox}
206 \newcommand\;curvesymbol{} \def\;curvesymbol{}
207
208 \newcommand\curvedashes[2][\unitlength]{\;ucd#1\def\;icurvedashes{#2}%
209 \;ccnfalse \;pl\z@
210 \@for \;ci:=#2\do{\ifdim\;ci\;ucd<\z@ \;ccntrue
211 \PackageError{curves}{\string
212 \curvedashes\space sign bad at \;ci\MessageBreak}{\the\;negdash}%
213 \else \advance\;pl\;ci\;ucd \fi}\if;ccn\;pl\z@\fi}
214 \newcommand\;icurvedashes{}
215
216 \newcommand\tagcurve[1][0]{\;tgcrv[#1]}
217 \newcommand\;tgcrv{}
218 \def\;tgcrv[#1](#2){\;coordn\tagcurve\thr@@{#2}{#1}\if;ccn
219 \scaleput(\;xb,\;yb){\;firstpoint \;tagcurve{#2}}\fi}
220
221 \newcommand\scaleput{}
222 \long\def\scaleput(#1,#2)#3{\@killglue \;td#2\unitlength
223 \raise\yscale\;td \hbox to \z@{\kern\xscaley\;td \;td#1\unitlength
224 \kern\xscale\;td \raise\yscalex\;td \hbox{#3}\hss}\ignorespaces}
225 \newcommand\xscale{\@ne}
226 \newcommand\xscaley{0}
227 \newcommand\yscale{\@ne}
228 \newcommand\yscalex{0}
229
230 \newcommand\diskpitchstretch{\@ne}
231 \newcommand\patternresolution{\@ne}
232
233 \newcommand\;firstpoint{\;startline \ifdim\;pl=\z@\;point\relax\fi}
234
235 \newcommand\;drwarc{\;cc\;td \;np\;td \;td23\p@ \divide\;cc\;td
236 \;abs\;cc \advance\;cc\@ne \;pns\p@ \divide\;pns\tw@
237 \divide\;np\;cc \;rc\;np \divide\;rc\;pns \;abs\;rc
238 \advance\;rc\@ne \divide\;np\;rc \multiply\;np\;pns \divide\;np14668 %
239 \multiply\;np\;rc \divide\;np\@cclvi \;scp\p@ \multiply\;scp\@cclvi
240 \;t\;pns \;csi\;csi\;csi\;csi \;rxya\;ddx\;ddy \divide\;rc\p@
241 \advance\;rc\@ne \;rtc\;rc \advance\;rc\;rc \;ndd\;ddx \;ndd\;ddy
242 \;csi \;rxya\;ddx\;ddy \divide\;rc\;pns \advance\;rc\@ne
243 \@whilenum\;cc>\z@ \do{\advance\;cc\m@ne \;dx\;ddx \;dy\;ddy
244 \divide\;ddx\;rc \divide\;ddy\;rc \;td\;ddx \;ddx\;t\;td
245 \advance\;ddx-\;np\;ddy \;ddy\;t\;ddy \advance\;ddy\;np\;td
246 \divide\;ddx\;pns \divide\;ddy\;pns \;ddx\;rc\;ddx \;ddy\;rc\;ddy
247 {\;bezier \global\;td\;x \global\;ytd\;y
248 \global\;tca\;overhang}\;y\;ytd \;x\;td \;overhang\;tca}}
249 \newcommand\;ndd[1]{\divide#1\;rc \multiply#1\;np
250 \divide#1\;t #1\;rtc#1}
251 \newcommand\;csi{\;tcb\;np \multiply\;np\;t \divide\;np\;pns \;t\;tcb
252 \multiply\;t\;t \divide\;t-\;scp \advance\;t\;pns \divide\;scp4 }
253
254 \newcommand\;coordn[4]{\;setpoint{#4}\ifx#1\closecurve\;cc\tw@
255 \else\;cc\z@\fi
256 \@for\;ci:=#3\do{\advance\;cc\@ne
257 \ifcase\;cc \or \;d;f\;xa \or \;d;f\;ya \or \;d;f\;xb
258 \or \;d;f\;yb \or \;d;f\;xc \or \;d;f\;yc \fi
259 \ifx#1\closecurve\ifodd\;cc \;d;f\;xa \else \;d;f\;ya \fi\fi}%
260 \;ccnfalse \ifx#1\closecurve \advance\;cc-\tw@ \fi
261 \ifodd\;cc
262 \PackageError{curves}{\string #1\space points odd}{\the\;oddcoord}%
263 \else \divide\;cc\tw@
264 \ifnum#2>\;cc \PackageError{curves}{\string #1\space needs \the#2
265 points\MessageBreak}{\the\m;ssingcoord}%
266 \else \;ccntrue \fi\fi}
267
268 \newcommand\;setpoint[1]{\curvelength\z@ \let\;stopline\relax
269 \def\;point##1{\raise\;y\hbox{{\copy\;pt##1}}}\ch;ckcs
270 \ifnum#1=\z@\;scntfalse\else\;scnttrue\fi
271 \;sc#1\relax \;abs\;sc \;psc\;sc
272 \ifdim\;pl>\z@ \;overhang\overhang
273 \ifnum\;overhang=\z@\else \;np\;overhang
274 \divide\;np\;pl \multiply\;np\;pl
275 \ifnum\;overhang<\z@ \advance\;overhang\;pl
276 \else \ifnum\;overhang=\;np\advance\;overhang\;pl\fi
277 \fi \advance\;overhang-\;np \fi
278 \if;csym \if;scnt\;setdisk\else\;setsymbol\fi
279 \else \;setdisk \fi\s;tpitch
280 \else\ifnum#1>\z@
281 \s;tcirc{\hss\vrule\@height\@wholewidth\@width\@wholewidth}%
282 \else\ifnum#1<\z@ \if;csym\;setsymbol\else\set;pt{}\fi
283 \else\;setdisk\s;tpitch
284 \fi\fi\fi \;x\z@ \;y\dp\;pt \advance\;y-\ht\;pt \divide\;y\tw@}
285 \newcommand\;setsymbol{\s;tcirc{\hss\unhcopy\;csbox}%
286 \edef\;point{\;point\relax
287 \s;tcirc{\hss\noexpand\;curvesymbol}\global\setbox\;csbox\copy\;pt}}
288 \newcommand\;stopline{} \newcommand\;point{}
289
290 \newcommand\ch;ckcs{\ifx\;curvesymbol\@empty\;csymfalse
291 \else\;csymtrue\fi}
292
293 \newcommand\s;tcirc[1]{\set;pt to\z@{#1\hss}}
294
295 \newcommand\set;pt{\global\setbox\;pt\hbox}
296
297 \newcommand\;endcurve{\;ecbezd\;dx\;ddx\;xa\;xb\;xc
298 \;ecbezd\;dy\;ddy\;ya\;yb\;yc \;bezier}
299 \newcommand\;ecbezd[5]{\;slcd#1#3#5\divide#14
300 #2-#1\advance#2#5\unitlength
301 \advance#2-#4\unitlength}
302
303 \newcommand\;tagcurve[1]{\ifnum\;cc=\thr@@ \;endcurve \else \;cc\z@
304 \@for\;ci:=#1\do{\advance\;cc\@ne \ifnum\;cc>6 %
305 \ifodd\;cc \;slcd\;dx\;xa\;xc \let\;xa\;xb \let\;xb\;xc \;d;f\;xc
306 \else \t;gcrv \fi \fi}\fi}
307
308 \newcommand\t;gcrv{\;slcd\;dy\;ya\;yc
309 \let\;ya\;yb \let\;yb\;yc \;d;f\;yc
310 \;rxy\;dx\;dy \divide\;dx\;rtc \divide\;dy\;rtc
311 \;ddx-\;ya\;dx \advance\;ddx\;xa\;dy \;ddy\;ddx
312 \advance\;ddx\;yb\;dx \advance\;ddx-\;xb\;dy
313 \advance\;ddy\;yc\;dx \advance\;ddy-\;xc\;dy
314 \;slbezd \;td\;ddy \divide\;td\@m
315 \ifdim\;td=\z@ \ifcurvewarn
316 \PackageWarning{curves}{\the\;strline\MessageBreak
317 \;xa,\;ya\space to \;xb,\;yb\MessageBreak}\fi
318 \;slbez
319 \else \;td\unitlength \;rtc\;td \advance\;rtc\;rtc
320 \divide\;rtc\p@ \advance\;rtc\@ne \divide\;td\;rtc
321 \;t\;ddx \;scp\;t \;abs\;t
322 \advance\;t\;t \divide\;t\p@ \advance\;t\@ne \divide\;scp\;t
323 \multiply\;td\;scp \divide\;td\;ddy
324 \multiply\;td\;rtc \multiply\;td\;t
325 \;ddx\;xc\;td \advance\;ddx-\;xa\;td \advance\;dx-\;ddx
326 \;ddy\;yc\;td \advance\;ddy-\;ya\;td \advance\;dy-\;ddy
327 \;bezier \fi}
328
329 \newcommand\;d;f[1]{\edef#1{\;ci}}
330
331 \newcommand\;slbezd{\;slcd\;dx\;xa\;xb \;slcd\;dy\;ya\;yb}
332
333 \newcommand\;slcd[3]{#1#3\unitlength \advance#1-#2\unitlength}
334
335 \newcommand\;slbez{\divide\;dx\tw@ \;ddx\;dx \divide\;dy\tw@
336 \;ddy\;dy \;bezier}
337
338 \newcommand\;bezier{\ifstraight \av;d\;dx\;ddx \av;d\;dy\;ddy \fi
339 \;scale\;dx\;dy \;scp\;rc \;scale\;ddx\;ddy
340 \advance\;scp\;rc \;bezc\;dx\;ddx \;bezc\;dy\;ddy \;rxy\;ddx\;ddy
341 \divide\;rc\p@ \advance\;rc\thr@@
342 \;tc\;rc \ifnum\;rc>\sixt@@n\;rc\sixt@@n\fi
343 \;rroot\;rroot\;rroot\;rroot
344 \;t\;rc \;rxy\;dx\;dy \advance\;rc\;scp \divide\;rc\thr@@
345 \global\advance\curvelength\;rc sp\;mcnd\@ne
346 \ifdim\;pl>\z@ \;np\;rc \divide\;np\;psc
347 \ifnum\;t<\;np \;mcnd\;np \divide\;mcnd\;t
348 \divide\;np\;mcnd \multiply\;np\;mcnd \;t\;np
349 \fi
350 \fi
351 \if;scnt
352 \ifdim\;pl=\z@ \;t\;sc
353 \else \;np
354 \if;csym \;rc \divide\;np\;sc \advance\;np-\csdiameter
355 \;td\;pl \divide\;td\tw@ \advance\;np\;td \divide\;np\;pl
356 \ifnum\;np<\@ne\;np\@ne\fi \multiply\;np\;sc
357 \else \;sc
358 \fi
359 \advance\;t\;np \divide\;t\;np \multiply\;t\;np
360 \fi
361 \fi
362 \;rtc\;t \divide\;rtc\;mcnd \;tcb\;rtc \multiply\;tcb\;t
363 \advance\;rtc\m@ne \multiply\;rtc\;t \;tc\;t \advance\;tc\;tc
364 \;bezd\;dx\;ddx \;bezd\;dy\;ddy
365 \ifdim\;pl>\z@ \;dashes \else \let\n;xt\;spoints \;spoints \fi}
366 \newcommand\av;d[2]{\advance#1#2\divide#1\tw@#2#1}
367 \newcommand\;scale[2]{\;td\xscale#1\advance\;td\xscaley#2%
368 #2\yscale#2\advance#2\yscalex#1#1\;td \;rxy#1#2}
369 \newcommand\;bezc[2]{\advance#1#1\advance#2#2%
370 \;td#2\advance#2-#1\advance#1\;td}
371 \newcommand\;bezd[2]{\divide#2\;tcb \;td#2\multiply\;td\;rtc
372 \advance#1-\;td \divide#1\;tc}
373
374 \newcommand\;spoints{\advance\;y\;dy \advance\;x\;dx \kern\;dx
375 \;point\;stopline \advance\;t\m@ne
376 \ifnum\;t>\z@ \advance\;dx\;ddx \advance\;dy\;ddy
377 \else \let\n;xt\relax \fi \n;xt}
378
379 \newcommand\;rxy[2]{\;rxya#1#2%
380 \ifnum\;rc>\z@ \;rtc\;rc \advance\;rtc\;rtc \divide\;rtc\p@
381 \ifnum\;rtc>\z@ \advance\;rtc\@ne \divide\;tc\;rtc
382 \divide\;tcb\;rtc \divide\;rc\;rtc
383 \else \;rtc\@ne
384 \fi
385 \multiply\;tc\;tc \multiply\;tcb\;tcb
386 \advance\;tc\;tcb \;rroot\;rroot \multiply\;rc\;rtc
387 \fi}
388
389 \newcommand\;rxya[2]{\;tc#1\;abs\;tc \;tcb#2\;abs\;tcb
390 \ifnum\;tc>\;tcb \;rc\;tcb \;tcb\;tc \;tc\;rc \fi
391 \;rc\;tc \divide\;rc\thr@@ \advance\;rc\;tcb
392 }
393
394 \newcommand\;abs[1]{\ifnum#1<\z@ #1-#1\fi}
395
396 \newcommand\;rroot{\;tcb\;tc \divide\;tcb\;rc
397 \advance\;rc\;tcb \divide\;rc\tw@}
398
399 \newcommand\;dashes{\let\;ticd\;icurvedashes
400 \let\;tucd\;ucd \divide\;rc\;t
401 \;rtc\;t \;tc\;rc \advance\;tc\csdiameter \divide\;tc\;rc
402 \divide\;tc\tw@ \;t\;tc \multiply\;tc\tw@ \;ptfalse \;cnd\;mcnd
403 \;pbs\;rc \divide\;pbs\tw@
404 \advance\;overhang\;pbs \divide\;overhang-\;rc
405 \if;scnt \;scdashes \else \;nscdashes \fi \multiply\;overhang\;rc}
406
407 \newcommand\;scdashes{\;pbs\;rtc \divide\;pbs\;sc \;ccss \;scp
408 \if;csym \;pl \multiply\;scp\;np \divide\;scp\;sc \advance\;pbs-\;tc
409 \else \;pbs \multiply\;scp\;rc \fi \;np\;overhang \;overhang\z@
410 \divide\;scp\;pbs \;tcb\z@ \;pns\;t \;dash \;overhang\;np
411 \if;csym\else \advance\;overhang-\;tcb \advance\;rtc-\;tcb
412 \advance\;pbs-\;tc \fi
413 \;pns\;pbs \advance\;pns-\;np \if;csym\else\advance\;pns\;tcb\fi
414 \@whilenum\;rtc>\z@\do{\;pdashes \;ptfalse \;t\;tc \;pns\;t \;dash
415 \;pns\;pbs \;overhang\if;csym\;np\else-\;overhang\fi
416 \advance\;pns-\;overhang}\;overhang-\if;csym\;np\else\;overhang
417 \;ptfalse \;t\;tc \;tcb\;overhang
418 \divide\;t\tw@ \;rtc\;t \;pns\;t \;dash \fi}
419
420 \newcommand\;nscdashes{\advance\;pbs\;pl \divide\;pbs\;rc
421 \if;csym \;bpdashes \fi \;ccss \;pns\;t
422 \;dash \advance\;pbs-\;tc \;scp\;pl \divide\;scp\;pbs \;pns\;pbs
423 \@whilenum\;rtc>\z@\do{\;pdashes \;ptfalse \;t\;tc \;pns\;t \;dash
424 \;pns\;pbs}%
425 \if;csym \else \divide\;tc\tw@ \advance\;overhang\;tc \fi}
426
427 \newcommand\;ccss{\ifnum\;pbs>\;tc\else \;bpdashes \fi}
428
429 \newcommand\;bpdashes{\let\;tucd\;pl \let\;ticd\;ricd \;tc\z@ \;t\z@}
430 \newcommand\;ricd{1,0}
431
432 \newcommand\;pdashes{\ifnum\;pns>\z@ \;td\z@ \;tcb\z@ \;ptfalse
433 \@for\;ci:=\;ticd \do{\advance\;td\;ci\;tucd \;t\;scp \divide\;t\tw@
434 \advance\;t\;td \divide\;t\;scp \advance\;t-\;tcb \;dash
435 \if;pt\;ptfalse\else\;pttrue\fi}%
436 \let\n;xt\;pdashes \else \let\n;xt\relax \fi \n;xt}
437
438 \newcommand\;dash{\ifnum\;t=\z@
439 \if;csym \ifnum\;rtc>\z@ \if;pt\;point\;startline\fi \fi \fi
440 \else \advance\;tcb\;t \advance\;pns-\;t
441 \ifnum\;overhang<\z@ \advance\;overhang\;t
442 \;t \ifnum\;overhang<\z@ \z@ \else \;overhang \;overhang\;tcb \fi
443 \else \;overhang\;tcb \fi
444 \ifnum\;pns<\z@ \advance\;overhang\;pns \advance\;tcb\;pns
445 \advance\;t\;pns \;pns\z@ \fi \advance\;rtc-\;t
446 \ifnum\;rtc<\z@ \advance\;overhang\;rtc \advance\;t\;rtc\fi
447 \ifnum\;t>\z@ \if;pt\;point\;startline\fi
448 \let\n;xt\;points \;points \fi\fi}
449
450 \newcommand\;points{\ifnum\;t<\;cnd \;tca\;t \else \;tca\;cnd \fi
451 \advance\;y\;tca\;dy \;ytd\;tca\;dx \advance\;x\;ytd \kern\;ytd
452 \if;pt\;point\;stopline\fi
453 \ifnum\;t<\;cnd \let\n;xt\relax \advance\;cnd-\;t
454 \else
455 \advance\;t-\;cnd \advance\;dx\;ddx \advance\;dy\;ddy \;cnd\;mcnd
456 \fi \n;xt}
457
458 \catcode`\;=12
459
460 \endinput
461 %%
462 %% End of file `curves.sty'.