7

I have a picture in my desktop, how can i use it by set graphicspath? I checked some examples, still no idea. Below is an example, but it compile error

\graphicspath{{C:/}{Users/}{Me/}{Desktop/}}
\begin{figure}[tbh]
\centering
\includegraphics[]{f6f2a0b.jpg} %
\caption{blablaballla.}
\label{fig:SM}
\end{figure}

enter image description here

0
10

Each directory path should be in its own set of braces. But what you seem to have done here is put each part of the path in its own set, which won't work. Assuming you want to set one directory which is C:/Users/Me/Desktop/ then your command should be \graphicspath{{C:/Users/Me/Desktop/}}.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.