2

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. – Bernard Aug 13 '16 at 9:28
2

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/}}
| improve this answer | |

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.