2010-06-21 93 views
0

多个图像虽然编译以下代码错误包括在乳胶

{\centering {\includegraphics[scale=.5]{splash.eps}} \caption{Splash Screen} \par} 
\end{figure} 
Splash screen is an integral part and shows a tutorial of application.  
\begin{figure}[ht] 
{\centering {\includegraphics[scale=.5]{splashmore.eps}} \caption{Splash Screen 1} \par} 
\end{figure} 

第一图像(即splash.eps)获取适当添加。在尝试添加第二个时,编译出现以下错误。

! LaTeX Error: Cannot determine size of graphic in ./eps/splashmore.eps (no Bou 
ndingBox). 

See the LaTeX manual or LaTeX Companion for explanation. 
Type H <return> for immediate help. 
...            

l.16 ...\includegraphics[scale=.5]{splashmore.eps} 
                } \caption{Splash Screen 1... 

可能是什么问题?

编辑:问题是与图像。我用GIMP打开它并将它保存为.eps文件,而后者使用它没有任何问题。

+0

尝试'pdflatex'而不是'latex'。 – Geoff 2010-06-21 19:17:35

+0

杰夫:pdflatex不采取eps图形。 – Svante 2010-06-21 22:34:43

回答

2

问题可能是splashmore.eps没有边界框(就像错误消息说)。你既可以

  • 手动添加边框信息(见here为的边框是什么的描述,以及如何做到这一点)或
  • 使用工具:打开你的文件中矢量图形编辑器和保存(再次)eps可以帮助,否则你可以使用epstool
0

我想你可以尝试添加width=5cm作为includegraphics的参数。不知道这是否令人满意。