I am converting legacy amstex code to latex. I am stuck on vector pictures in the document.
In the "main" document, there is code like this:
\centerline{\input fig11.tex}
In the fig11.tex file, there is code, that looks like this:
%%AmSTeX
\LPic 11.8 5.0 fig11.psp
{}{}{
\atxy 20 5 \BText{some description}
%%.....more similar \atxy commands...%%
}
and fig11.psp looks like this (with far more lines of the "same thing"):
81 LBegin
/p0 { 120 5 } def
/p1 { 140 5 } def
/p2 { 70 10 } def
LNarrow
p0 p1 2 LTextloc
p2 p3 3 LTextloc
p3 p4 4 LTextloc
p5 LDot
p6 LDot
p14 p9 LLine
p14 p10 LLine
p15 p11 LLine
p15 p12 LLine
p23 p24 LVector
p26 p25 LVector
LEnd
(It is not a legal postscript.)
Now I don't have a clue how to convert those to something LaTeX will like (it doesn't know the \LPic command, lpic.sty seems like something a bit different and I can't force it to work anyway)
edit:
oh god. It's probably this frankly bizzare thing:
http://jan.ucc.nau.edu/~ns46/226/1/lhead.tex
...I am not sure at all what to do with it.
lhead.texcontains several PostScript definitions that might be extracted to convert that.pspinto a legal PostScript input; the TeX macros allow for putting boxes at given coordinates over the picture. – egreg Jun 10 '12 at 9:22\def\LPiconward can be used as is, by changing\special{psfile=#3}into\includegraphics{#3}– egreg Jun 10 '12 at 9:43