| 1 |
% This is postpictex.tex |
| 2 |
% Version 1.1 9/10/87. |
| 3 |
% See section 10 of the PiCTeX manual. |
| 4 |
% Version 1.1b 2021-06-08 extended LaTeX support for picture environment |
| 5 |
% LaTeX Project (with Michael Wichura's permission for the update) |
| 6 |
% add \put and \multiput to the list of commands restored for LaTeX. |
| 7 |
|
| 8 |
% To use the PiCTeX macros under LaTeX, you first need to \input the |
| 9 |
% file prepictex.tex, then the main corpus of PiCTeX macros (pictex.tex), |
| 10 |
% and finally this file. Do not \input the file latexpicobjs.tex. |
| 11 |
|
| 12 |
\catcode`@=11 \catcode`!=11 |
| 13 |
|
| 14 |
% Save meanings of PiCTeX keywords that duplicate LaTeX keywords |
| 15 |
\let\!pictexendpicture=\endpicture |
| 16 |
\let\!pictexframe=\frame |
| 17 |
\let\!pictexlinethickness=\linethickness |
| 18 |
\let\!pictexmultiput=\multiput |
| 19 |
\let\!pictexput=\put |
| 20 |
|
| 21 |
% Redefine the PiCTeX \beginpicture macro |
| 22 |
\def\beginpicture{% |
| 23 |
\setbox\!picbox=\hbox\bgroup% |
| 24 |
\let\endpicture=\!pictexendpicture |
| 25 |
\let\frame=\!pictexframe |
| 26 |
\let\linethickness=\!pictexlinethickness |
| 27 |
\let\multiput=\!pictexmultiput |
| 28 |
\let\put=\!pictexput |
| 29 |
\let\input=\@@input % \@@input is LaTeX's saved version of TeX's primitive |
| 30 |
\!xleft=\maxdimen |
| 31 |
\!xright=-\maxdimen |
| 32 |
\!ybot=\maxdimen |
| 33 |
\!ytop=-\maxdimen} |
| 34 |
|
| 35 |
% Reestablish LaTeX's meaning of \frame. This makes |
| 36 |
% PiCTeX's meaning of \frame available only inside a PiCture. |
| 37 |
\let\frame=\!latexframe |
| 38 |
|
| 39 |
% Make PiCTeX's meaning of \frame available everywhere in the |
| 40 |
% guise of \pictexframe |
| 41 |
\let\pictexframe=\!pictexframe |
| 42 |
|
| 43 |
% Now do the same for \linethickness |
| 44 |
\let\linethickness=\!latexlinethickness |
| 45 |
\let\pictexlinethickness=\!pictexlinethickness |
| 46 |
|
| 47 |
% 2021-06-08 and same for \put and \multiput |
| 48 |
\let\put=\!latexput |
| 49 |
\let\pictexput=\!pictexput |
| 50 |
\let\multiput=\!latexmultiput |
| 51 |
\let\pictexmultiput=\!pictexmultiput |
| 52 |
|
| 53 |
|
| 54 |
% Reset LaTeX's default meaning of \\ |
| 55 |
\let\\=\@normalcr |
| 56 |
\catcode`@=12 \catcode`!=12 |