Well, after a long break, I've decided that we really ought to have the
reLyX distributed with LyX 1.0.2 support figures, since that's the last
remaining "major feature" (as determined by yours truly) not currently
supported.
Well, I've gotten \epsffile and \epsfbox to work. They're equivalent, and
they're left over from latex209. I just want to make sure of what else I'll
need to support.
Obviously, \includegraphics would be good. Of course, it's somewhat
complicated, because we can only support the *two* optional argument form,
since the *one* optional argument form is used by graphicx, which lyx
doesn't yet support. I'm pretty sure I can get that to work. Well, kind of
pretty sure.
What else? Kopka and Daly mention \epsf, which seems to be just like
\epsffile, except that you get to enter the bounding box if you want to.
However, I was unable to find \epsf in either epsf.sty or epsfig.sty. Are we
sure it exists?
They also mention \epsfig, and the synonomous \psfig, which seem to be
basically just like the graphicx \includegraphics with different
arguments. However, LyX supports all of the arguments in epsfig, unlike
graphicx \includegraphics, so we can translate it.
So are there any other commands I'm forgetting?
My current plan is to completely ignore input bounding boxes, since LyX
always just figures it out from the ps file.
Hm. One problem. LyX doesn't support \includegraphics*, does it? Which means
it also doesn't support the "clip" option to \epsfig. So do I not translate
\epsfig, or do I just ignore the option & hope they didn't want to clip? Or
put it in as ERT if there's a clip option? (I guess I could theoretically do
the same with graphicx \includegraphics. Parse the keys in the [] and use
ERT if there are any unsupportable keys. It's just more work.)
-Amir