由于插入非 EPS 格式的图形所需的命令依赖于操作系统和图形格式转换程序,
在此提供两个 Unix 系统下常用的转换程序的例子。
\DeclareGraphicsRule{.gif}{eps}{.gif.bb}{`convert #1 'eps:-' }
\begin{figure}
\centering
\includegraphics[width=3in]{file2.gif}
\caption{GIF Graphic}
\end{figure}
这里使用 convert(包含在 ImageMagick 中)来
将 GIF 转为 EPS。而命令:
convert file2.gif 'eps:-'
将 file2.gif 转为 EPS 格式的图形并输出到标准输出。
另一方法是使用 giftoppm, ppmtopgm 和 pgmtops 来
将 GIF 转为 EPS。只需在上例中将图形规则改为:
\DeclareGraphicsRule{.gif}{eps}{.gif.bb}%
{`giftoppm #1 | ppmtopgm | pgmtops}
|