Hi all,
I'm new to the list but not to lyx. Been using it a white for routine
tasks but now I need it to write up my thesis.
I wasn't happy with the figure include functions (I needed a little more
control over some things) so I tried to embed some LaTex commands to
include the figure. Here is the LaTex code
\begin{figure}[t]
\begin{center}
\mbox{\psfig{figure=figures/chapter3/1.ps,width=\textwidth}}
\end{center}
\caption{A sample image to be used in an image editing environment. One
may wish to remove the specular reflection from the subjects skin, or
delete distracting background features.}
\end{figure}
I highlight this and hit the TeX button.
If I export as LaTex and run latex on it to get a dvi file everyting works
fine. But if I try to preview as dvi or export as dvi I get 8 error in a
row right at the start of the \mbox line. The first three errors are
similar to:
----------
! Arithmetic overflow.
\in@hundreds ... \divide \count 102 by \count 241
\count 200=#1\count205=0 ...
l.476 ...=figures/chapter3/1.ps,width=\textwidth}}
--------------
each having a different value for count
The next 4 error are similar to:
-------------
! Missing number, treatedas zero.
<to be read again>
\edef
l.476 ...=figures/chapter3/1.ps,width=\textwidth}}
-------------
And the final error being
-------------
! Undefined control sequence.
\compute@bb ...RROR: no bb supplied or found} \no
-bb-error \fi \count203=\...
l.476 ...=figures/chapter3/1.ps,width=\textwidth}}
------------
I have no idea what any of these mean.
If I remove the \mbox line and replace it with some text, everything works
fine. It also works if I do \mbox{some text}
So it looks like the \psfig is what is causing the problem. I did include
\usepackage{psfig} in the preamble, so that is not the problem.
I hope I didn't ramble too much, and I hope someone can help me out.
Thanks
-Rick Goldberg