TeXstudio 2.11.0 (hg 6062:c58c915d7759)
Using Qt Version 5.5.1, compiled with Qt 5.5.1 R
Windows 7 64-bit
I have a search path set for image files using:
Options > Configre TeXstudio > Advanced Editor >Additional Search Paths > Image Files
e.g. <user>\Local_TeX_files\images
Lets say that in that folder I place an image file, test.png.
I then create a simple tex file (test1.tex) that looks like this:
\documentclass[12pt,a4paper]{article} \usepackage{graphicx} \begin{document} \includegraphics{test} \end{document}
I can preview the png file by hovering over the file name in \includegraphics{test}
. This suggests that the image file located in <user>\Local_TeX_files\images is being found. However, when I compile the file, I get an error, > File `test1' not found. \includegraphics{test1} <. My interpretation is that image files included in the search path are not being found during compilation. Thank you for TeXstudio.
Options > Configre TeXstudio > Advanced Editor >Additional Search Paths > Image Files
does only affect the editor, not the compiler. In particular it allows TeXstudio to find the image files for preview.You have to use the command
\graphicspath{}
within your .tex document to tell the LaTeX compiler where to find the image file. See e.g. http://tex.stackexchange.com/a/139403/24770