[Tugindia] tugindia Digest, Vol 96, Issue 3

CV Radhakrishnan cvr at river-valley.com
Tue Dec 7 05:31:45 CET 2010


On 06/12/10 6:06 PM, David Owen wrote:
> Dear Radhakrishnan,
> Thanks for replying. The following little test file shows the problem:

[...]

> \section{Results}
> \noindent It can be seen in the fig. that ....
> 
> \begin{figure}
> \begin{center}
> \scalebox{0.4}{\includegraphics{beta.eps}}      %%%%%%%
>   \renewcommand{\figurename}{Fig.}
>  \caption{Effect of $\beta_2$ }
>  \label{fig8}
>  \end{center}
>  \end{figure}
> 
> \end{document}
> 
> If I comment out the "endfloat" statement, it runs OK. If I remove the   :
> \begin{figure}....\end{figure}, it also runs OK. I figure that the problem
> could be with the  \begin{figure}....\end{figure} statements. But if I
> comment out the  "endfloat" statement it runs OK. Could it be that the
> "endfloat" file was corrupted in downloading?
> Can you tell me what to do?

The culprit is the space before \end{figure} which should start from
the first column and no space is allowed before it. Since endfloat
package is in use, TeX will look for '\end{figure}' as soon as a
'\begin{figure}' is encountered. As you will agree, '\end{figure}' and
' \end{figure}' are not the same, TeX interprets that the figure
environment doesn't end at all, so it emits a runaway argument error.
 By removing the space before '\end{figure}' it runs smoothly as you
would expect.

Best regards
-- 
Radhakrishnan

The light at the end of the tunnel is the headlamp of
an oncoming train.


More information about the tugindia mailing list