# Including images by file path in lyx

I am trying to include an image by path into a lyx document. My latex code is the following:

\begin{figure}
\graphicspath{{C:\Paper\images\}}
\centering\includegraphics[scale=0.1]{imageName}\caption{This is an image}
\end{figure}


but I get the error:

Paragraph ended before \graphicspath was complete


How can I set the path? Is it possible to set it once in the preamble?

• Try replacing backslashes with slashes. Aug 13 '16 at 9:28

## 1 Answer

I think your problem is the \. You should use / in the path like discussed in the following answer:

How to use \graphicspath?

There is also a more general path description provided.

Your path should look like:

\graphicspath{{C:/Paper/images/}}