Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

up vote 5 down vote accepted

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/}}.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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