summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/mfpic/refcard.tex
blob: 7078e262e480de7cd94956e22925304040c97f31 (plain)
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
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
%%% File: refcard.tex
%%% A part of mfpic 0.7a beta 2004/04/16
%%%
% (Ask your driver to print so that longer dimension is horizontal)
\newdimen\paperlongside
    \paperlongside 11 truein
\newdimen\papershortside
    \papershortside 8.5 truein

\ifx\pdfoutput\undefined
\else\ifx\pdfoutput\relax
\else\ifnum\pdfoutput>0
  \pdfpagewidth\paperlongside
  \pdfpageheight\papershortside
\fi\fi\fi

\font\manual=cmcsc8
\def\MF{{\manual meta}\-{\manual font}}
\def\MP{{\manual meta}\-{\manual post}}
\def\TeX{{\rm T\kern-.1667em\lower.5ex\hbox{E}\kern-.125emX\null}}
\def\plainTeX{{\rm plain\kern -.15em\TeX}}
\def\LaTeX{{\rm L\raise.42ex\hbox{\kern-.36em \manual a}\kern-.15em\TeX}}
%\def\LaTeXe{\LaTeX$2_{\textstyle\varepsilon}$}
\def\gobble#1{}
\def\dooptparam[#1]{{\tt[#1]}\futurelet\nchr\domacro}
\def\dofixparam[#1]{{\tt\string{#1\string}}\futurelet\nchr\domacro}
\def\doparamswap{\if?\nchr\dooptparam[\expandafter\gobble
  \else\dofixparam[\fi}
\def\doparam{\futurelet\nchr\doparamswap}
\def\ddoparam{\expandafter\doparam\gobble}
\def\domacro{\if[\nchr\expandafter\ddoparam\fi}
\def\bsl{{\tt\char\escapechar}}
\def\mac#1{\bsl{\tt#1}\futurelet\nchr\domacro}

% logical markup to typeset filenames, program names, MF code,
% grafbase identifiers, environment names, email addresses, and
% emphasis.
\def\file#1{{\tt #1}}
\def\prog#1{{\sf #1}} % didn't want everything in \tt
\def\mfc#1{{\tt #1}}
\def\opt#1{{\tt #1}}  % LaTeX2e option names
\def\gbc#1{{\tt #1}}
\def\env#1{{\tt #1}}
\def\mail#1{{\tt #1}}
\def\emph#1{{\it #1\/}}

% Forced, Clean, Linebreak.

\def\brk{\nobreak\hfil\break}

\newcount\columnsperpage

% Entries are too wide for 3 columns.  Print 2 columns landscape
\columnsperpage=2

% The rest of this header is nicked from gnuplot (which took it from
% Emacs) but was drastically adapted for mfpic.
%
% This file is intended to be processed by plainTeX.
%
%    You will need to inform your dvi driver to print it in landscape
%    and, optionally, double sided.
% Author of GNU Emacs Refcard:
%  Stephen Gildea
%  UUCP: mit-erl!gildea
%  Internet: gildea@erl.mit.edu
%
% Person who ripped off the formatter for gnuplot:
%  Alex Woo
%  NASA Ames Research Center
%  Internet: woo@ames.arc.nasa.gov
%
% Modified on 9 Dec 1992 by:
%  Daniel S. Lewart
%  University of Illinois
%  Internet: d-lewart@uiuc.edu
%
% Modified on 29 Sep 1999, 11 Jul 2002, 29 Sep 2003 %(for mfpic) by:
%  Daniel H. Luecking
%  University of Arkansas
%  luecking@uark.edu

\newdimen\intercolumnskip
\newbox\columna
\newbox\columnb

\hsize4.75truein
\vsize 7.25truein

% Equal left right, right and middle margins, about .5in on USletter
\intercolumnskip=\paperlongside
\advance\intercolumnskip -2\hsize
\intercolumnskip .33333\intercolumnskip
\hoffset\intercolumnskip
\advance\hoffset -1truein

% Equal top and bottom margins, about .4in on A4 paper
\voffset\papershortside
\advance\voffset-\vsize
\voffset .5\voffset
\advance\voffset -1truein

\topskip8truept

\font\manual=cmcsc10 at 8pt
\font\titlefont=cmbx10 scaled \magstep1
\font\headingfont=cmbx10
\font\smallfont=cmr6
\font\smallsy=cmsy6
\font\eighti=cmmi8
\font\sixi=cmmi6
\font\eightex=cmex10 at 8pt
\font\eightrm=cmr8
\font\eightbf=cmbx8
\let\subheadingfont\eightbf
\font\sixbf=cmbx6
\font\eightit=cmti8
\font\eighttt=cmtt8
\font\eightsy=cmsy8
\font\sixsy=cmsy6
\font\eightsf=cmss10 at 8pt
\font\eightsl=cmsl8
\font\tensf=cmss10
\textfont0=\eightrm \scriptfont0=\smallfont
\textfont1=\eighti \scriptfont1=\sixi
\textfont2=\eightsy \scriptfont2=\sixsy
\textfont3=\eightex \scriptfont3=\eightex \scriptscriptfont3=\eightex
\textfont\bffam\eightbf \scriptfont\bffam\sixbf
\def\rm{\fam0\eightrm}
\def\bf{\fam\bffam\eightbf}
\def\it{\eightit}
\def\tt{\eighttt}
\def\sf{\eightsf}
\def\sl{\eightsl}
\smallskipamount 2pt plus 1pt minus 0pt
\medskipamount 5pt plus 2pt minus 2pt
\bigskipamount 10pt plus 3pt minus 3pt
\normalbaselineskip=10pt
\normalbaselines
\rm
\setbox\strutbox=\hbox{\vrule height6.8pt depth3.2pt width0pt}

\def\abc{a}
\output={%
    \if b\abc \multicolumnformat \global\def\abc{a}
    \else\if a\abc
      \global\setbox\columna\columnbox \global\def\abc{b}
      \global\setbox\columnb\hbox to -\intercolumnskip{}
    \fi\fi}
\def\multicolumnformat{\shipout\vbox{%
    \hbox{\box\columna\hskip\intercolumnskip
      \box\columnb\hskip\intercolumnskip\columnbox}}\advancepageno}
\def\columnbox{\leftline{\pagebody}}

\def\bye{\par\vfill\supereject
  \if a\abc \else\null\vfill\eject\fi
  \if a\abc \else\null\vfill\eject\fi
  \end}

% Typewriter type braces (redefinitions of escaped braces) :
\def\{{{\tt \char`\{}}
\def\}{{\tt\char`\}}}


\parindent 0pt

\def\title#1{{\titlefont\centerline{#1}}\vskip 1ex plus .5ex}

\def\section#1{\par\filbreak
  \vskip 2.25ex plus 2ex minus 2ex {\headingfont #1}%
  \vskip 1.25ex plus 1ex minus 1.5ex}

\def\subsection#1{\ifhmode\par\fi
  \ifdim\lastskip<1.5ex
    \vskip -\lastskip
    \vskip 1.5ex plus 1ex minus 1ex
  \fi
  \filbreak
  {\subheadingfont #1}%
  \vskip .75ex plus .5ex minus .5ex}

\newdimen\describeindent
\describeindent=0em

\def\var#1{$\langle${\it #1\/}$\rangle$}
\def\alt{\unskip$\;|\;$\hfilbreak}
\def\hfilbreak{\hfil\allowbreak\hfilneg}

\newdimen\secondkeyindent

\def\describe#1#2{\leavevmode\vtop
  {\hsize=\firstkeyfrac\hsize\rightskip=1em plus 1 fill\relax
   \secondkeyindent\describeindent \advance\secondkeyindent 1em
   \hangindent\secondkeyindent \hangafter1
   \hskip\describeindent\relax\strut#1\nobreak\hskip0pt\strut}%
   \vtop
  {\hsize=\secondkeyfrac\hsize\rightskip=0pt plus 1 fill\relax
   \leavevmode\strut#2\unskip\strut}\par}
\def\code#1{{\sf #1}}

\title{MFPIC Quick Reference}

\centerline{(Copyright 2000--2003 by Daniel Luecking)}
\medskip
This information was prepared for version 0.7 of \prog{mfpic}.

\section{Preamble commands}

\def\firstkeyfrac{.4}
\def\secondkeyfrac{.6}

\describe{Load \prog{mfpic} package:}
        {\mac{input} \file{mfpic}, or \mac{usepackage}[?\var{options}][mfpic]}
\describe{Options}{\opt{metafont} \alt \opt{metapost}, \opt{mplabels},
         overlaylabels \opt{centeredcaptions}, \opt{clip},
         \opt{truebbox}, \opt{draft}, \opt{final}, \opt{nowrite}}
\describe{Activate options (\plainTeX)}
         {\mac{usemetafont} \alt \mac{usemetapost}, \mac{usemplabels},
         \mac{overlaylabels} \mac{usecenteredcaptions}, \mac{clipmfpic},
         \mac{usetruebbox}, \mac{mfpicdraft}, \mac{mfpicfinal},
         \mac{mfpicnowrite}}
\describe{Turn off some options}
        {\mac{nomplabels}, \mac{nooverlaylabels}
        \mac{nocenteredcaptions}, \mac{noclipmfpic}, \mac{notruebbox}}
\describe{Set up/close the output file}
        {\mac{opengraphsfile}[\var{base name}]$\ldots$\mac{closegraphsfile}}

\section{The {\tensf mfpic} environment}

\def\firstkeyfrac{.30}
\def\secondkeyfrac{.70}

\describe{Start an \prog{mfpic} figure}
    {\mac{mfpic}[?\var{xscale}][?\var{yscale}]%
    \{\var{$x_{\min}$}\}\allowbreak\{\var{$x_{ max}$}\}\allowbreak
    \{\var{$y_{min}$}\}\allowbreak\{\var{$y_{max}$}\}\brk
    \ \ \ \ \var{MFpic commands}\brk
    \mac{endmfpic}}
\describe{\quad\LaTeX{} (optional)}
        {\mac{begin}[mfpic]${}\equiv{}$\mac{mfpic},
          \mac{end}[mfpic]${}\equiv{}$\mac{endmfpic}}

\smallskip
The default \var{xscale} is $1$ (\mac{mfpicunit}), default \var{yscale}
is \var{xscale}.

\section{Dimensions (lengths)}

\def\firstkeyfrac{.58}
\def\secondkeyfrac{.42}

\describe{\sl Purpose; where used:} {\sl Name and default value:}
\vskip1pt
\describe{Unit of length; \mac{mfpic}} {\mac{mfpicunit}, \tt 1pt}
\describe{Size of a symbol; \mac{point}, \mac{plot}, and \mac{plotsymbol}}
        {\mac{pointsize}, \tt 2pt}
\describe{Darkness of shading; \mac{shade}} {\mac{shadespace}, \tt 1pt }
\describe{Space between dots; \mac{polkadot}}
    {\mac{polkadotspace}, \tt 10pt}
\describe{Space between hatch lines; hatching macros}
    {\mac{hatchspace}, \tt 3pt}
\describe{Size of arrowhead; \mac{arrow}} {\mac{headlen}, \tt 3pt}
\describe{Size of x-, y-axis arrowhead; xy-axes macros}
    {\mac{axisheadlen}, \tt 5pt}
\describe{Size of border axis arrowhead; side axis macros}
    {\mac{sideheadlen}, \tt 0pt}
\describe{Size of marks on axes; axis marks} {\mac{hashlen}, \tt 4pt}
\describe{Size of dashes; \mac{dashed}} {\mac{dashlen}, \tt 4pt}
\describe{Space between dashes; \mac{dashed}} {\mac{dashspace}, \tt 4pt}
\describe{Size of dots; \mac{dotted}} {\mac{dotsize}, \tt 0.5pt}
\describe{Space between dots; \mac{dotted}} {\mac{dotspace}, 3pt}
\describe{Space between symbols; \mac{plot}} {\mac{symbolspace}, \tt 5pt}

\medskip
The following commands are used to change the size of some dimension
parameters:

\smallskip
\describe{{\sl Purpose} ({\sl default\/}):} {\sl Command:}
\vskip1pt
\describe{Set diameter of drawing pen ({\tt 0.5pt})}
        {\mac{penwd}[\var{dimen}]}
\describe{Set diameter of shading dots ({\tt 0.5pt})}
        {\mac{shadewd}[\var{dimen}]}
\describe{Set diameter of polkadot ({\tt 5pt})}
        {\mac{polkadotwd}[\var{dimen}]}
\describe{Set diameter of hatching pen ({\tt 0.5pt})}
        {\mac{hatchwd}[\var{dimen}]}
\describe{Multiply \mac{shadespace} by 1.2} {\mac{lightershade}}
\describe{Divide \mac{shadespace} by 1.2} {\mac{darkershade}}


\section{Colors}

\def\firstkeyfrac{.45}
\def\secondkeyfrac{.55}

\smallskip
\describe{Set color for curves} {\mac{drawcolor}[\var{color}]}
\describe{Set color for fills} {\mac{fillcolor}[\var{color}]}
\describe{Set color for points, symbols} {\mac{pointcolor}[\var{color}]}
\describe{Set color for hatching} {\mac{hatchcolor}[\var{color}]}
\describe{Set color for arrowheads} {\mac{headcolor}[\var{color}]}
\describe{Set color for tlabels} {\mac{tlabelcolor}[\var{color}]}
\describe{Set color used by \mac{gclear}} {\mac{backgroundcolor}[\var{color}]}
\describe{\quad \LaTeX{} syntax}
        {\mac{drawcolor}[?\var{model}][\var{clrspec}], etc.}
\describe{Define a color name} {\mac{mfpdefinecolor}[\var{name}][\var{model}][\var{clrspec}]}


\section{Common geometric figures}

Drawing commands that operate on a variable length list in braces may
be followed by \mac{datafile}[\var{filename}] instead of the list.

\subsection{Points}

\def\firstkeyfrac{.42}
\def\secondkeyfrac{.58}

\describe{Place a symbol at given point(s)}
        {\mac{plotsymbol}[?\var{size}][\var{name}]%
         [($x_0,y_0$),($x_1,y_1$),$\ldots$]}
\describe{\quad Available symbol names} {{\tt Triangle}, {\tt Square}, {\tt Circle}, {\tt
        Diamond}, {\tt Star}, {\tt SolidTriangle}, {\tt SolidSquare}, {\tt SolidCircle},
        {\tt SolidDiamond}, \tt{SolidStar}, {\tt Plus}, {\tt Cross},
        {\tt Asterisk}}
\describe{Points (filled or unfilled circles)}
        {\mac{point}[?\var{size}][($x_0,y_0$),($x_1,y_1$),$\ldots$]}
\describe{Force filled/open circles in \mac{point}:}
        {\mac{pointfilltrue}/\mac{pointfillfalse}}

\subsection{Lines}

\def\firstkeyfrac{.45}
\def\secondkeyfrac{.55}

\describe{Connect points with lines}
        {\mac{polyline}[($x_0,y_0$),($x_1,y_1$),$\ldots$],
         or (\mac{lines})}
\describe{Closed polygon}
        {\mac{polygon}[($x_0,y_0$),($x_1,y_1$),$\ldots$]}
\describe{Concatenate vectors}
        {\mac{turtle}[\var{initialpoint},\var{$v_1$},\var{$v_2$},$\ldots$]}
\describe{Rectangle (upright) with given corners}
        {\mac{rect}[($x_0,y_0$),($x_1,y_1$)]}

\subsection{Circles, arcs and ellipses}

\def\firstkeyfrac{.55}
\def\secondkeyfrac{.45}

\describe{Circles} {}
\describe{\qquad polar form (default):}
        {\mac{circle}[?p][\var{center},\var{radius}]}
\describe{\qquad three-point form:}
        {\mac{circle}[?t][($x_0,y_0$),($x_1,y_1$),($x_2,y_2$)]}
\describe{\qquad center-point form:}
        {\mac{circle}[?c][\var{center},\var{point}]}
\describe{\qquad point-sweep form:}
        {\mac{circle}[?s][($x_0,y_0$),($x_1,y_1$),\var{angle}]}
\describe{Arcs} {}
\describe{\qquad polar form:}
        {\mac{arc}[?p][\var{center},\var{$\theta_1$},\var{$\theta_2$},%
        \var{radius}]}
\describe{\qquad three-point form:}
        {\mac{arc}[?t][($x_0,y_0$),($x_1,y_1$),($x_2,y_2$)]}
\describe{\qquad center-point-angle form:}
        {\mac{arc}[?c][\var{center},\var{point},\var{angle}]}
\describe{\qquad point-sweep form (default):}
        {\mac{arc}[?s][($x_0,y_0$),($x_1,y_1$),\var{angle}]}
\describe{Ellipse, center $(x_0,y_0)$, radii \var{$r_x$}, \var{$r_y$}, angle
\var{$\theta$}}
        {\mac{ellipse}[?\var{$\theta$}]%
        \tt\{($x_0,y_0$),\var{$r_x$},\var{$r_y$}\}}

\section{General curves}

\def\firstkeyfrac{.45}
\def\secondkeyfrac{.55}

A \var{spec} can be {\tt p} (for polyline) or {\tt s} (for smooth)
followed by a number for the tension.

\smallskip
\describe{Smooth curve through points}
        {\mac{curve}[?\var{tension}][($x_0,y_0$),($x_1,y_1$),$\ldots$]}
\describe{Graph of $y=f(x)$}
        {\mac{function}[?\var{spec}][$x_{\min}$,$x_{\max}$,%
         $\Delta x$][$f(\hbox{\tt x})$]}
\describe{Graph of parametric curve $(x(t),y(t))$}
        {\mac{parafcn}[?\var{spec}][$t_{\min}$,$t_{\max}$,$\Delta t$]%
         [($x(\hbox{\tt t})$, $y(\hbox{\tt t})$)]}
\describe{Graph of $r = f(\theta)$}
        {\mac{plrfcn}[?\var{spec}]%
        [$\theta_{\min}$,$\theta_{\max}$,$\Delta\theta$][$f(\hbox{\tt t})$]}
\describe{Interpolate with a smooth {\it function}}
        {\mac{fcncurve}[?\var{tension}][($x_0,y_0$),($x_1,y_1$),$\ldots$]}
\describe{Curve from data in a file*}
        {\mac{datafile}[?\var{spec}][\var{file}]}
\describe{\quad Set how \mac{datafile} processes a line}
        {\mac{using}[\var{read\_pattern}][\var{write\_pattern}]\brk
        Default is \mac{using}[\#1 \#2 \#3][(\#1,\#2)]}


\section{Regions}

\def\firstkeyfrac{.45}
\def\secondkeyfrac{.55}

Curves are not necessarily `closed' even if the start and end are the
same. The following are closed (may be filled), as are \mac{rect},
\mac{polygon}, \mac{circle}, and \mac{ellipse}.

\smallskip
\describe{Closed curve through given points}
        {\mac{cyclic}[?\var{tension}][$(x_1,y_1),(x_2,y_2),\ldots$]}
\describe{Circular sector (pie slice)}
        {\mac{sector}[\var{center},\var{radius},\var{$\theta_1$},%
         \var{$\theta_2$}]}
\describe{Region between two functions} {\mac{btwnfcn}[?\var{spec}][$x_{\min}$,%
         $x_{\max}$,$\Delta x$][$f(\hbox{\tt x})$][$g(\hbox{\tt x})$]}
\describe{Region in polar coordinates}
        {\mac{plrregion}[?\var{spec}][$\theta_{\min}$,$\theta_{\max}$,%
        $\Delta \theta$][$f(\hbox{\tt t})$]}
\describe{Curves surrounding text}
        {\mac{tlabelrect}[?\var{radius}]{\tt(\var{x},\var{y})\{\var{text}\}}\brk
         \mac{tlabeloval}[?\var{mult}]{\tt(\var{x},\var{y})\{\var{text}\}}\brk
         \mac{tlabelellipse}[?\var{ratio}]{\tt(\var{x},\var{y})\{\var{text}\}}\brk
         \var{radius}: round corners. \var{mult}: stretch horizontally.
         \var{ratio}: width/height of ellipse}


\section{Prefix macros}

\subsection{Drawing curves}

\def\firstkeyfrac{.4}
\def\secondkeyfrac{.6}

\describe{Dashed path}{\mac{dashed}[?\var{length},\var{gap}]$\ldots$}
\describe{Dotted path}{\mac{dotted}[?\var{size},\var{gap}]$\ldots$}
\describe{Trace a path with symbols}
        {\mac{plot}[?\var{size},\var{gap}][\var{symbol}]$\ldots$}
\describe{Generalized dashes}{\mac{gendashed}[\var{patname}]$\ldots$}
\describe{\quad Define a named dash pattern}
        {\mac{dashpattern}[\var{patname}][\var{len$_1$},\var{len$_2$},$\ldots$,%
            \var{len$_{2n}$}]}
\describe{Place a symbol at all nodes}
        {\mac{plotnodes}[?\var{size}][\var{symbol}]$\ldots$}
\describe{Solid curve*}{\mac{draw}[?\var{color}]$\ldots$}


\subsection{Closing a curve}

\def\firstkeyfrac{.45}
\def\secondkeyfrac{.55}

These turn any path into a `closed' path (result may be filled).

\smallskip
\describe{Close with a straight line,}{\mac{lclosed}$\ldots$}
\describe{Close with a smooth join, like \mac{cycle},}{\mac{sclosed}$\ldots$}
\describe{Close letting \MF{} choose}{\mac{bclosed}$\ldots$}

\subsection{Filling closed curves}

\def\firstkeyfrac{.4}
\def\secondkeyfrac{.6}

These filling prefixes turn off drawing of the curve.

\smallskip
\describe{Solid fill} {\mac{gfill}[?\var{color}]$\ldots$}
\describe{Unfill} {\mac{gclear}$\ldots$}
\describe{Hatched fills}
        {\mac{thatch}[?\var{space},\var{angle}][?\var{color}]$\ldots$}
\describe{\qquad \var{angle}${}=45\,$deg}
        {\mac{rhatch}[?\var{space}][?\var{color}]$\ldots$}
\describe{\qquad \var{angle}${}=-45\,$deg}
        {\mac{lhatch}[?\var{space}][?\var{color}]$\ldots$}
\describe{\qquad crosshatching}
        {\mac{xhatch}[?\var{space}][?\var{color}]$\ldots$}
\describe{}  {\mac{hatch} $=$ \mac{xhatch}}
\describe{Shading}
        {\mac{shade}[?\var{space}]$\ldots$}
\describe{Polkadot fill}{\mac{polkadot}[?\var{space}]$\ldots$}
\describe{Fill with copies of a tile} {\mac{tess}[\var{tile}]$\ldots$}
\describe{\quad Define a tile*}
        {\mac{tile}[\var{name},\var{unit},\var{width},\var{height},\var{clip}]
        \var{drawing commands} \mac{endtile}}

\smallskip
* Creates a mini-mfpic, clipped if \var{clip}${}={}${\tt true}.

\subsection{Storing and reusing a path}

\describe{Store a path} {\mac{store}[\var{name}]$\ldots$}
\describe{\quad reusing a stored path} {\mac{mfobj}[\var{name}]}

\subsection{Subpaths}

\describe{Subpath by fraction of length}
        {\mac{partpath}[\var{frac1},\var{frac2}]$\ldots$}
\describe{Subpath by node number} {\mac{subpath}[\var{m},\var{n}]$\ldots$}
\describe{Cutting by another path}
        {\mac{cutoffafter}[\var{obj}]$\ldots$,
        \mac{cutoffbefore}[\var{obj}]$\ldots$.\brk
        \var{obj} is a name created with \mac{store}}
\describe{Trim the ends of a path}
        {\mac{trimpath}[\var{dim1},\var{dim2}]$\ldots$}


\subsection{Modifying a curve}

\def\firstkeyfrac{.4}
\def\secondkeyfrac{.6}

\describe{Add arrowhead to the end}
        {\mac{arrow}[?l\var{length}][?r\var{angle}]%
         [?b\var{backset}][?c\var{color}]$\ldots$}
\describe{\quad Define arrowhead shape}
        {\mac{headshape}[\var{ratio}][\var{tension}][\var{filled}]}
\describe{Reverse a curve} {\mac{reverse}$\ldots$}
\describe{Double arrow} {\mac{arrow}\mac{reverse}\mac{arrow}$\ldots$}
\describe{Rotate around a point} {\mac{rotatepath}[($x_0$,$y_0$),\var{angle}]$\ldots$}
\describe{Reflect about a line} {\mac{reflectpath}[($x_0$,$y_0$),($x_1$,$y_1$)]$\ldots$}
\describe{Shift} {\mac{shiftpath}[($dx$,$dy$)]$\ldots$}
\describe{Scale around a point} {\mac{scalepath}[($x_0$,$y_0$),\var{scale}]$\ldots$}
\describe{xscale about line $x=x_0$} {\mac{xscalepath}[$x_0$,\var{scale}]$\ldots$}
\describe{yscale about line $y=y_0$} {\mac{yscalepath}[$y_0$,\var{scale}]$\ldots$}
\describe{slant, pivoting on line $y=y_0$} {\mac{slantpath}[$y_0$,\var{slant}]$\ldots$}
\describe{yslant, pivoting on line $x=x_0$} {\mac{yslantpath}[$x_0$,\var{slant}]$\ldots$}
\describe{Swap x and y} {\mac{xyswappath}$\ldots$}


\section{Axes}

\def\firstkeyfrac{.30}
\def\secondkeyfrac{.70}

\describe{Draw x- and/or y-axes} {\mac{axes}[?\var{headlen}],
        \mac{xaxis}[?\var{headlen}], \mac{yaxis}[?\var{headlen}]}
\describe{Draw various axes}
        {\mac{axis}[?\var{headlen}][\var{axis}], \ \var{axis} is one of
        {\tt x}, {\tt y}, {\tt l}, {\tt b}, {\tt r}, or {\tt t}.}
\describe{Draw many axes} {\mac{doaxes}[?\var{headlen}][\var{list}], \
        \var{list} of letters, no commas.}
\describe{Shift border axis inward}
        {\mac{axismargin}[\var{axis}][\var{amt}], \ \var{amt} is
        in graph units.}
\describe{Add hashmarks to axes}{%
        \mac{axismarks}[\var{axis}][?\var{len}][$c_1$,$c_2$,$\ldots$], \
        $c_j$ are positions.\brk Abbrev. by
        \mac{xmarks} for \mac{axismarks}[x], etc.}
\describe{Change position of hash marks}
        {\mac{setaxismarks}[\var{axis}][\var{pos}] \ \var{pos} is one of
            {\tt inside}, {\tt outside}, {\tt centered}, {\tt ontop},
            {\tt onbottom}, {\tt onleft}, or {\tt onright}.}

\section{Miscellaneous}

\def\firstkeyfrac{.30}
\def\secondkeyfrac{.70}

\describe{Text labels}
        {\mac{tlabel}[?\var{pos}\var{$\theta$}]%
                {\tt($x$,$y$)\{\var{\TeX{} text}\}}\brk
         \mac{tlabels}[\var{args$_1$}\var{args$_2$}$\ldots$]\brk
         \mac{axislabels}[\var{axis}][?\var{pos}\var{$\theta$}]%
                [\{\var{txt$_1$}\}\var{$n_1$},%
                \{\var{txt$_2$}\}\var{$n_2$},$\ldots$]\brk
            \var{pos} is a two-letter sequence, \var{$\theta$}* the
            angle of rotation in degrees;
            \var{args$_j$} is an entire set of arguments as in
            \mac{tlabel};
            \var{axis} is a letter, \var{txt$_j$} is label, \var{$n_j$}
            is coordinate on axis}
\describe{Clipping to a path} {\mac{gclip}$\ldots$}
\describe{Polar conversion}
        {\mac{plr}[($r_0$,$\theta_0$),($r_1$,$\theta_1$),$\ldots$]}
\describe{Connect paths} {\mac{connect} \var{path1} \var{path2} $\ldots$
        \mac{endconnect}}
\describe{Draw many curves from one datafile}
        {\mac{plotdata}[?\var{spec}][\var{file}], \ \var{spec} is {\tt
        p} or {\tt s\var{num}} where \var{num} is the (optional) tension
        in the smooth curve}
\describe{Set how \mac{plotdata} draws curves$\dag$}{\mac{dashedlines}
        \ (different dash patterns)\brk
        \mac{coloredlines} \ (different colors, \MP{} only)\brk
        \mac{pointedlines} \ (different symbols, like \mac{plot})\brk
        \mac{datapointsonly} \ (different symbols, like \mac{plotnodes})}

\smallskip
* The angle is optional, and ignored unless option \opt{mplabels} is
in effect.\brk
$\dag$ \mac{plotdata} also respects the \mac{using} setting (see
\mac{datafile} in section {\bf General curves}).

\bye

% Other commands:
\mac{setrender}[\<\TeX{} commands\>]

\mac{coords}$\ldots$\mac{endcoords}
\mac{applyT}[\<transformer\>]
\mac{rotate}[$\theta$]
\mac{rotatearound}[$p$][$\theta$]
\mac{turn}[?$p$][$\theta$]
\mac{mirror}[$p_1$][$p_2$]
\mac{reflectabout}[$p_1$][$p_2$]
\mac{shift}[$p$]
\mac{scale}[$s$]
\mac{xscale}[$s$]
\mac{yscale}[$s$]
\mac{zscale}[$p$]
\mac{xslant}[$s$]
\mac{yslant}[$s$]
\mac{zslant}[$s$]
\mac{boost}[$\chi$]
\mac{xyswap}

\mac{fdef}[\<fcn\>]%
  (\<param1\>,\<param2\>,$\ldots$)%
  [\<mf-expr\>]

\mac{tcaption}[?\<maxwd\>,\<linewd\>][\<caption text\>]

\mac{savepic}\bsl\<picname\>
\mac{newsavepic}
\mac{usepic}

\mac{dashlineset}, \mac{dotlineset}

\mac{mfsrc}[\<metafont code\>]
\mac{noship}

\mac{store}[\<path variable\>][\<path\>]
\mac{mfobj}[\<path expression\>]
\mac{patharr}[\<pv\>]$\ldots$\mac{endpatharr}

\mac{mftitle}[\<title\>]
\mac{tmtitle}[\<title\>]

\mac{newfdim}[\<fdim\>]

\mac{setmfpicgraphic}
\mac{getmfpicoffset}
\mac{setfilename}

\bye