how to include image in beamer

7,529 views
Skip to first unread message

Gaurav

unread,
May 13, 2012, 1:19:56 AM5/13/12
to LaTeX Users Group
how to include image in beamer

Ole Peter Smith

unread,
May 13, 2012, 3:07:01 AM5/13/12
to latexus...@googlegroups.com
\documentclass{article}
...
\usepackage{graphicx}
...

\begin{document}
\includegraphics{filename}.
\end{document}

0le

On Sun, May 13, 2012 at 2:19 AM, Gaurav <jadha...@gmail.com> wrote:
> how to include image in beamer
>

> --
> You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
> To post to this group, send email to latexus...@googlegroups.com.
> To unsubscribe from this group, send email to latexusersgro...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/latexusersgroup?hl=en.
>

--
                                            /////
                                         ( O O )
=================oOO==(_)==OOo=================
            Every day and every hour, I'm Learning more
          The more I Learn, the less I Know about before
         The Less I know, the more I want to Look around
             Diggin' deeper into Higher Ground...  UB40
                                   .oooO Oooo.
==================(     )=(     )=====================
                                     \  (     )  /
                                      \_)   (_/
===============================================
                        Ole Peter Smith, IME, UFG
    http://www.mat.ufg.br/docentes/olepeter - ole at mat.ufg.br
===============================================
                   Life sure is a Mystery to be Lived
                      Not a Problem to be Solved
===============================================

Peter Flynn

unread,
May 13, 2012, 8:48:34 AM5/13/12
to latexus...@googlegroups.com

Same way as anywhere else, the graphicx package and the \includegraphics command.

P

On 13 May 2012 06:20, "Gaurav" <jadha...@gmail.com> wrote:

how to include image in beamer

gaurav jadhav

unread,
May 13, 2012, 9:35:36 AM5/13/12
to latexus...@googlegroups.com
i have tried


\documentclass{article}
...
\usepackage{graphicx}
 ...

\begin{document}
 \includegraphics{filename}.
\end{document}


bet im getting error as

pic not found!!


Peter Flynn

unread,
May 13, 2012, 2:02:06 PM5/13/12
to latexus...@googlegroups.com

If you are using standard LaTeX, images MUST be in EPS format. No other format is supported.

If you are using pdflatex, images MUST be in PNG, JPG, or PDF format. No other format is supported.

Only give the image name, not the extension, eg \includegraphics{mypic}
It will look first in the same folder where the .tex file is.
If the image is somewhere else on your disk, you must give the path as well as the name.

///Peter

gaurav jadhav

unread,
May 16, 2012, 1:17:12 AM5/16/12
to latexus...@googlegroups.com
thanx

--

Priya Agrawal

unread,
Sep 16, 2014, 11:24:15 PM9/16/14
to latexus...@googlegroups.com
but where i keep the image file. Is there any specific folder for latex folder.
and how can i change the format of the image

Peter Flynn

unread,
Sep 17, 2014, 4:37:26 AM9/17/14
to latexusersgroup
By default, LaTeX looks in the same folder as your document.

If the file is not there, it looks in ~/texmf/tex/generic (so that's a good place to keep images that you use in different files in different places).

To change the graphics format of an image, install ImageMagick and use the "convert" command, eg convert foo.jpg foo.png

///Peter

--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to latexusersgro...@googlegroups.com.

To post to this group, send email to latexus...@googlegroups.com.

Raniere Silva

unread,
Sep 17, 2014, 1:18:40 PM9/17/14
to latexus...@googlegroups.com
> > but where i keep the image file. Is there any specific folder for latex
> > folder.
>
> By default, LaTeX looks in the same folder as your document.

Most of the time I like to use a img directory:

my-tex-project
+-- chapter1.tex
+-- img
|   +-- plot1.png
|   +-- plot2.png
|   +-- plot3.png
+-- master.tex

to include the image I use

\includegraphicss{img/plot1.png}

> > and how can i change the format of the image
>
> To change the graphics format of an image, install ImageMagick and use the
> "convert" command, eg
>
> $ convert foo.jpg foo.png

If you aren't great fan of the Unix shell you can you your image viewer tool.
Normally "Save as ..." allow you to convert it to another format.

Raniere

Peter Flynn

unread,
Sep 17, 2014, 6:21:10 PM9/17/14
to latexusersgroup

On 17 Sep 2014 18:18, "Raniere Silva" <ra092767@ime.unicamp.br> wrote:
> to include the image I use
>

>     \includegraphics{img/plot1.png}

Yes, that's treated the same as a file in the document directory.

> If you aren't great fan of the Unix shell

I believe it works the same in a Windows Command window.

> you can you your image viewer tool.
> Normally "Save as ..." allow you to
> convert it to another format.

Yes, any graphics editor should be able to do this. GIMP is free...

///Peter

Reply all
Reply to author
Forward
0 new messages