Re: tugindia Digest, Vol 96, Issue 3

CV Radhakrishnan <[email protected]>
Newsgroups gmane.comp.tex.tugindia
Organization River Valley
Message-ID <[email protected]>
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.
_______________________________________________
Home:        http://www.tug.org.in/
TeX FAQ:     http://www.tex.ac.uk/faq
unsubscribe: http://tug.org/mailman/listinfo/tugindia
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.