Graphics, Figures & Tablesbeamer | Figures do not appear

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
nounouuuuu201186
Posts: 36
Joined: Sun May 20, 2012 6:28 am

beamer | Figures do not appear

Post by nounouuuuu201186 »

Hi all,

I have a problem with figures that are not displayed. I am preparing a presentation using the beamer class. I compile my file.tex like this:

Code: Select all

pdflatex -interaction=nonstopmode file.tex
and I insert figures like this:

Code: Select all

\framebox{\includegraphics[width=4in, height=2.8in]{figure.eps}}
any help?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

mas
Posts: 226
Joined: Thu Dec 04, 2008 4:39 am

Re: beamer | Figures do not appear

Post by mas »

PDFLaTeX cannot handle EPS files. Use JPG, PNG or PDF files. Else, use LaTeX -> dvips -> ps2pdf to get the same result if you want use EPS files.

Regards

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim
nounouuuuu201186
Posts: 36
Joined: Sun May 20, 2012 6:28 am

beamer | Figures do not appear

Post by nounouuuuu201186 »

I compiled as you have specify but I have a pdf file with a blank page. Here is log with the error :

Code: Select all

This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
entering extended mode
(./Bolbol.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, farsi, arabic, loaded.
(/usr/share/texmf/tex/latex/beamer/base/beamer.cls
(/usr/share/texmf/tex/latex/beamer/base/beamerbasercs.sty)
Document Class: beamer 2010/06/21 development version 3.10 A class for typesett
ing presentations (rcs-revision a6b1a8434d30)
(/usr/share/texmf/tex/latex/beamer/base/beamerbasemodes.sty
(/usr/share/texmf/tex/latex/beamer/base/beamerbasedecode.sty))
(/usr/share/texmf/tex/latex/beamer/base/beamerbaseoptions.sty
(/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty))
(/usr/share/texmf-texlive/tex/latex/geometry/geometry.sty
(/usr/share/texmf-texlive/tex/generic/oberdiek/ifpdf.sty)
(/usr/share/texmf-texlive/tex/generic/oberdiek/ifvtex.sty))
(/usr/share/texmf-texlive/tex/latex/base/size11.clo)
(/usr/share/texmf/tex/latex/pgf/basiclayer/pgfcore.sty
(/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty
(/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty
(/usr/share/texmf-texlive/tex/latex/graphics/trig.sty)
(/etc/texmf/tex/latex/config/graphics.cfg)
(/usr/share/texmf-texlive/tex/latex/graphics/dvips.def)))
(/usr/share/texmf/tex/latex/pgf/systemlayer/pgfsys.sty
(/usr/share/texmf/tex/latex/pgf/utilities/pgfrcs.sty
(/usr/share/texmf/tex/generic/pgf/utilities/pgfutil-common.tex)
(/usr/share/texmf/tex/generic/pgf/utilities/pgfutil-latex.def
(/usr/share/texmf-texlive/tex/latex/ms/everyshi.sty))
(/usr/share/texmf/tex/generic/pgf/utilities/pgfrcs.code.tex))
(/usr/share/texmf/tex/generic/pgf/systemlayer/pgfsys.code.tex
(/usr/share/texmf/tex/generic/pgf/utilities/pgfkeys.code.tex
(/usr/share/texmf/tex/generic/pgf/utilities/pgfkeysfiltered.code.tex))
(/usr/share/texmf/tex/generic/pgf/systemlayer/pgf.cfg)
(/usr/share/texmf/tex/generic/pgf/systemlayer/pgfsys-dvips.def
(/usr/share/texmf/tex/generic/pgf/systemlayer/pgfsys-common-postscript.def)))
(/usr/share/texmf/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.tex)
(/usr/share/texmf/tex/generic/pgf/systemlayer/pgfsysprotocol.code.tex))
(/usr/share/texmf/tex/latex/xcolor/xcolor.sty
(/etc/texmf/tex/latex/config/color.cfg)
(/usr/share/texmf-texlive/tex/latex/pdftex-def/pdftex.def

! Package pdftex.def Error: PDF mode expected, but DVI mode detected!
(pdftex.def)                If you are using `latex', then call `pdflatex'.
(pdftex.def)                Otherwise check and correct the driver options.
(pdftex.def)                Error recovery by switching to PDF mode.

See the pdftex.def package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.414     }\@ehc
I compiled with

Code: Select all

latex file.tex
Any help?
nounouuuuu201186
Posts: 36
Joined: Sun May 20, 2012 6:28 am

beamer | Figures do not appear

Post by nounouuuuu201186 »

The problem lies in the preamble:

Code: Select all

\documentclass[handout,
xcolor=pdftex,dvipsnames,
table]{beamer}
I removed "xcolor = pdftex" and the issue is resolved :)
Post Reply