<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><p><span style="font-family:"Calibri","sans-serif"">Hello,</span></p><p><span style="font-family:"Calibri","sans-serif""><br></span></p><p><span style="font-family:"Calibri","sans-serif"">I have a couple of difficulties with my Latex document which I hope you can resolve. I have a main file in which a chap2.tex is included:</span></p><p><span style="font-family:"Calibri","sans-serif""><br></span></p><p><span style="font-family:"Calibri","sans-serif"">\include{chap2}</span></p><p><span style="font-family:"Calibri","sans-serif""><br></span></p><p><span style="font-family:"Calibri","sans-serif"">In chap2.tex I include a graphic file fig1.pdf using \includegraphics within the figure environment. The graphic file is in a
 directory other than the current directory in which main.tex is. The path to the directory contains, however, space characters and that's the source of my problems. I use grffile package together with \graphicspath:</span></p><p><span style="font-family:"Calibri","sans-serif""><br></span></p><p><span style="font-family:"Calibri","sans-serif"">\usepackage[space]{grffile}<p></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></span></p><p><span style="font-family:"Calibri","sans-serif"">\graphicspath{../../My Graphic Files/}</span></p><p><span style="font-family:"Calibri","sans-serif""><br></span></p><p><span style="font-family:"Calibri","sans-serif"">but get the error message:</span></p><p><span style="font-family:"Calibri","sans-serif"">"</span></p><p><span style="font-family:"Calibri","sans-serif"">! Package pdftex.def Error: File `fig1.pdf' not found.<p></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">See the pdftex.def package documentation for explanation.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Type  H <return>  for immediate help.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> ...                                              </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">                                                  </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">l.20 ...udegraphics{fig1.pdf}</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">                                                  </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">?</p></span></p><p><span style="font-family:"Calibri","sans-serif"">"</span></p><p><span style="font-family:"Calibri","sans-serif""><br></span></p><p><span style="font-family:"Calibri","sans-serif"">However, when I don't use \graphicspath and include the full path of the graphic file in \includegraphics I have no difficulty and the final .pdf file is produced:</span></p><p><span style="font-family:"Calibri","sans-serif""><br></span></p><p><span style="font-family:"Calibri","sans-serif""><span class="Apple-style-span" style="font-family: arial; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="font-family: Calibri, sans-serif; ">\includegraphics{../../My Graphic
 Files/fig1.pdf}</span></p><div><span style="font-family: Calibri, sans-serif; "><br></span></div><div><span style="font-family: Calibri, sans-serif; ">Do you know how I can get rid of this pesky error? I don't want to write the full path every time I use \includegraphics.</span></div><div><span style="font-family: Calibri, sans-serif; "><br></span></div><div><span style="font-family: Calibri, sans-serif; ">Thank you.</span></div><div><span style="font-family: Calibri, sans-serif; "><br></span></div><div><span style="font-family: Calibri, sans-serif; "><br></span></div></span></span></p><p><span style="font-family:"Calibri","sans-serif"">----- configuration info
-----</span> <br>
<span style="font-family:"Calibri","sans-serif"">TeXworks version : 0.4.0r759
(MiKTeX 2.9)</span> <br>
<span style="font-family:"Calibri","sans-serif"">Install location : C:/Program
Files (x86)/MiKTeX 2.9/miktex/bin/texworks.exe</span> <br>
<span style="font-family:"Calibri","sans-serif"">Library
path     :
C:/Users/mehdi/AppData/Local/MiKTeX/2.9/TeXworks/0.4\</span> <br>
<span style="font-family:"Calibri","sans-serif"">pdfTeX location  :
C:/Program Files (x86)/MiKTeX 2.9/miktex/bin/pdftex.exe</span> <br>
<span style="font-family:"Calibri","sans-serif"">Operating system : Windows
Microsoft Windows Vista Home Basic Edition, 64-bit Service Pack 2 (build 6002)</span>
<br>
<span style="font-family:"Calibri","sans-serif"">Qt4
version      : 4.7.2 (build) / 4.7.2 (runtime)</span> <br>
<span style="font-family:"Calibri","sans-serif"">------------------------------</span>
<o:p></o:p></p></td></tr></table>