Newsgroups: comp.text.tex
I'm trying to follow the instructions from epslatex.ps to include non-eps format graphics (.gif, .jpg…) in tex, but no success so far:
The test file is:
- >8 - -
\begin{document} \DeclareGraphicsRule{.gif}{eps}{.gif.bb}{`convert #1 'eps:-' } \includegraphics{test2.gif} \end{document} - - >8 - -
The latex error is:
- >8 - - […] (/usr/share/texmf/tex/latex/config/graphics.cfg) (/usr/share/texmf/tex/latex/graphics/dvips.def))) (gtest.aux)
! LaTeX Error: Cannot determine size of graphic in test2.gif (no BoundingBox).
See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ...
l.6 \includegraphics{test2.gif }
The graphics files are:
$ dir test2.* -rw-rw---- 1 tong tong 13468 Jul 12 22:05 test2.gif -rw-rw---- 1 tong tong 27 Jul 13 17:21 test2.gif.bb
$ cat test2.gif.bb %%BoundingBox: 0 0 504 481
Can anybody help me with it? thanks