2010-06-21 135 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的參數。不知道這是否令人滿意。