0

I am using graphicspath in order to pick up pictures from a unique folder for my beamer presentation.

My code is:

\documentclass[xcolor=pdftex,t,11pt]{beamer}


\usepackage{graphicx}

\graphicspath{{C:/Users/my name/Dropbox (Personale)/Public/Note Lezioni/images/}}


\begin{document}


\begin{frame}
\frametitle{My graphs}
\framesubtitle{This is the slide with graphs}
\begin{itemize}
\item Consider the following:
\end{itemize}\bigskip
\pause[2]
\begin {figure}
\begin{minipage}{0.6\textheight}
\includegraphics[width=5.5 cm,height=3 cm]{rgdpna}
\caption{fig1}
\end{minipage}
\pause[3]
\begin{minipage}{0.6\textheight}
\includegraphics[width=5.5 cm,height=3 cm]{pc}
\caption{fig2}
\end{minipage}
\end{figure}
\end{frame}

\end{document}

I cannot understand which is my mistake, but when I compile the file, I get the error message that file rgdpna is not found? Any suggestion?

lockstep
  • 250,273
Dario
  • 1,340
  • @Timm. Thanks for your reply. Apparently, I should write \graphicspath{{C:\Users\dario\Dropbox (Personale)\Public\Note Lezioni}} instead of \graphicspath{{C:/Users/my name/Dropbox (Personale)/Public/Note Lezioni/images/}} and then I recall the folder with the pics in includegraphics, i.e. \includegraphics[width=5.5 cm,height=3 cm]{images/rgdpna} – Dario Mar 07 '17 at 18:06
  • 1
    no never use \ always / but where is the main document? if it is also in dropbox can you not just specify {images} as the graphics path? it's always best to avoid full paths as the make the document non portable – David Carlisle Mar 07 '17 at 18:24
  • unrelated but do not specify both height and width to \includegraphics or the image will be distorted. – David Carlisle Mar 07 '17 at 18:25
  • @DavidCarlisle. Thanks David. I know that is better not use \ but /. However, when I use /, the picture is not found and I am wondering way. I have on Dropbox a folder with some lecture notes. Inside I have 4 sub-folders, one for each different module. I included a fifth sub-folder (images) into the main one. Also thanks about the second suggestion. – Dario Mar 07 '17 at 18:30
  • if you use \Dropbox then latex will just report \Dropbox as an undefined command and it won't work at all. – David Carlisle Mar 07 '17 at 19:03

0 Answers0