| 1 |
% Plain TeX interface to picture mode. |
| 2 |
% David Carlisle |
| 3 |
|
| 4 |
\input miniltx |
| 5 |
|
| 6 |
\makeatletter |
| 7 |
\let\@@line\line |
| 8 |
\input autopict.sty |
| 9 |
\let\LaTeX@line\line |
| 10 |
\let\line\@@line |
| 11 |
|
| 12 |
|
| 13 |
\newdimen\@wholewidth |
| 14 |
\newdimen\@halfwidth |
| 15 |
\newdimen\unitlength \unitlength =1pt |
| 16 |
\newbox\@picbox |
| 17 |
\newdimen\@picht |
| 18 |
\newcount\@xarg |
| 19 |
\newcount\@yarg |
| 20 |
\newcount\@yyarg |
| 21 |
|
| 22 |
\font\tenln =line10 \font\tenlnw =linew10\relax |
| 23 |
\font\tencirc=lcircle10 \font\tencircw=lcirclew10\relax |
| 24 |
\newcount\@multicnt |
| 25 |
\newdimen\@xdim |
| 26 |
\newdimen\@ydim |
| 27 |
\newbox\@linechar |
| 28 |
\newdimen\@linelen |
| 29 |
\newdimen\@clnwd |
| 30 |
\newdimen\@clnht |
| 31 |
\newdimen\@dashdim |
| 32 |
\newbox\@dashbox |
| 33 |
\newcount\@dashcnt |
| 34 |
\let\@linefnt\tenln |
| 35 |
\let\@circlefnt\tencirc |
| 36 |
\@wholewidth\fontdimen8\tenln |
| 37 |
\@halfwidth .5\@wholewidth |
| 38 |
|
| 39 |
\def\picture#1{% |
| 40 |
\begingroup |
| 41 |
\let\line\LaTeX@line |
| 42 |
\def\end##1{\csname end##1\endcsname}% |
| 43 |
\pictur@#1} |
| 44 |
|
| 45 |
\let\@@endpicture\endpicture |
| 46 |
\def\endpicture{\@@endpicture\endgroup} |
| 47 |
|
| 48 |
\def\LaTeXbegin{\def\begin##1{\csname##1\endcsname}} |
| 49 |
|
| 50 |
|
| 51 |
\resetatcatcode |