summaryrefslogtreecommitdiff
path: root/graphics/pictex/prepictex.tex
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/pictex/prepictex.tex')
-rw-r--r--graphics/pictex/prepictex.tex14
1 files changed, 10 insertions, 4 deletions
diff --git a/graphics/pictex/prepictex.tex b/graphics/pictex/prepictex.tex
index cd7f92e2fe..a0e825066f 100644
--- a/graphics/pictex/prepictex.tex
+++ b/graphics/pictex/prepictex.tex
@@ -1,4 +1,8 @@
-% This is prepictex.tex Version 1.1 9/10/87
+% This is prepictex.tex
+% Version 1.1 9/10/87. See section 10 of the PiCTeX manual.
+% Version 1.1b 2021-06-08 extended LaTeX support for picture environment
+% LaTeX Project (with Michael Wichura's permission for the update)
+% Support lengths in LaTeX picture mode coordinates in recent LaTeX.
% To use the PiCTeX macros under LaTeX, you first need to \input this
% file, then the main corpus of PiCTeX macros (pictex.tex), and then
@@ -20,14 +24,16 @@
\let\!latexput=\put
% Redefine the LaTeX \@picture macro
+% 2021-06-08 Adjust so working for old and new LaTeX releases
+\let\!latex@picture\@picture
\def\@picture(#1,#2)(#3,#4){%
- \@picht #2\unitlength
- \setbox\@picbox\hbox to #1\unitlength\bgroup
+ \!latex@picture(#1,#2)(#3,#4)%
\let\endpicture=\!latexendpicture
\let\frame=\!latexframe
\let\linethickness=\!latexlinethickness
\let\multiput=\!latexmultiput
\let\put=\!latexput
- \hskip -#3\unitlength \lower #4\unitlength \hbox\bgroup}
+ \ignorespaces}
+
\catcode`@=12 \catcode`!=12