experchange > linux.misc

db (07-10-19, 01:41 PM)
I want to make up a presentation with Beamer, and I have
a few JPGs to show. What package do I need to be able to
include them?
db (07-11-19, 04:59 PM)
On Wed, 10 Jul 2019 11:41:07 +0000, db wrote:

> I want to make up a presentation with Beamer, and I have a few JPGs to
> show. What package do I need to be able to include them? I was advised that I can simply include a JPG. Here is a mini-example:


\documentclass[12pt]{beamer}
\usepackage{graphicx}

\begin{document}
%------------------------------------------------------------------
\begin{frame}
\begin{center}
\Large
Title
\vspace{2cm}
\large
Dieter Britz
\end{center}
\end{frame}
%------------------------------------------------------------------
\begin{frame}
\frametitle{Frame title}
\begin{figure}[h]%
\includegraphics*[width=0.8\textwidth]{thefig.JPG}
\end{figure}
\end{frame}
%-------------------------------------------------------------------

\end{document}

When I compile it with pdflatex, I get a lot of stuff, ending with
....
! LaTeX Error: File `*' not found.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...

l.21 \end{frame}

? H
I could not locate the file with any of these extensions:
..pdf,.png,.jpg,.mps,.jpeg,.jbig2,.jb2,.PDF,.PNG,. JPG,.JPEG,.JBIG2,.JB2,.eps
Try typing <return> to proceed.

When I do that, I only get the first frame, missing my name, and no
picture frame. The picture is definitely there:

> ls *.JPG thefig.JPG


You can get it here:


What am I doing wrong here? Why does my name not appear,
why does it claim that it can't find the JPG file?
Kara M'bola (07-11-19, 06:12 PM)
Thu, 11 Jul 2019 14:59:44 -0000 (UTC), db wrote:
[..]
>
> What am I doing wrong here? Why does my name not appear,
> why does it claim that it can't find the JPG file?


The problem seems to be the asterisk after /includegraphics command. It
compiled alright after removing it, but I don't know if that's the ideal
way to solve it.
Similar Threads