Re: Immagini in Beamer

#22044
Up
0
Down
::

Grazie!
Ho provato a compilare queste poche righe di codice:
`\documentclass{beamer}

\usepackage{graphicx}

\usetheme{Warsaw}
\begin{document}
\begin{frame}
\begin{center}
\includegraphics[scale=0.5]{DSC00712.JPG}
\end{center}
\end{frame}
\end{document}`
L’immagine è una presa a caso, ed il formato è tra quelli giusti. Niente da fare, non compila assolutamente. Questo è il file .log:
`This is pdfTeX, Version 3.141592-1.40.7 (MiKTeX 2.7) (preloaded format=pdflatex 2008.2.24) 24 FEB 2008 20:58
entering extended mode
**C:/Documents*and*Settings/brunov/Desktop/prova/prova.tex
(“C:/Documents and Settings/brunov/Desktop/prova/prova.tex”
LaTeX2e <2005/12/01>
Babel and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, french, loaded.
(“F:\MiKTeX 2.7\tex\latex\beamer\base\beamer.cls”
(“F:\MiKTeX 2.7\tex\latex\beamer\base\beamerbasercs.sty”
Package: beamerbasercs 2007/01/28 (rcs-revision 1.4)
)
Document Class: beamer 2007/03/11 cvs version 3.07 A class for typesetting pres
entations (rcs-revision 1.70)

(Font) OT1/cmtt/m/n OT1/cmtt/bx/n on input line 6.

No file prova.nav.

LaTeX Warning: File `DSC00712.JPG' not found on input line 11.

!pdfTeX error: (file DSC00712.JPG): cannot find image file
==> Fatal error occurred, no output PDF file produced!`
Dice che non trova il file .nav, e che non trova l’immagine….ma com’è possibile?

Il fatto che non trovi il file .nav è normale, è un file ausiliario che viene prodotto alla fine della compilazione (se ha successo). Il problema è evidentemente nella ricerca del file grafico; se non è nella stessa directory del tuo documento, non può essere trovata.

Ci può essere un problema anche nel fatto che sei all’interno di una cartella che ha spazi nel nome (Documents and Settings), ma non dovrebbe.

Dov’è questo file DSC00721.JPG? Prova, se è nella stessa directory, a usare le minuscole per l’estensione, senza specificarla in \includegraphics.

Ciao
Enrico

Go to top