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

\centering\includegraphics[scale=0.1]{imageName}\caption{This is an image}

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

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:


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.