Graphics, Figures & TablesGraphicspath question

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Drako
Posts: 6
Joined: Fri Oct 15, 2010 8:55 pm

Graphicspath question

Post by Drako »

Hi, im having a problem with the directories in which my images are being stored.

I have several .tex files on different folders but i want to maintain only 1 folder for the images and it should be bellow the .tex folders. Everything would work fine if the images and tex files werent on another computer and being shared so i can access them.

i tried to use the network path, but it doesnt work. If i put the correct path, i get as many errors as the number os images on the tex file. Strangely if i put an incorrect path i get no errors and a pdf file with no images.

im tried the following (the image folder is on D:\BACKUP_GERAL\Kelly-wise\Manuais\figuraslatex or \\kelly\Kelly-wise\Manuais\figuraslatex):

\graphicspath{{//kelly/Kelly-wise/Manuais/figuraslatex}}
\graphicspath{{"D:/BACKUP_GERAL/Kelly-wise/Manuais/figuraslatex"}}
\graphicspath{{"D:/BACKUP\_GERAL/Kelly-wise/Manuais/figuraslatex"}}
\graphicspath{{''D:/BACKUP_GERAL/Kelly-wise/Manuais/figuraslatex''}}


nothing seems to work, is it possible to use network folders for this?

thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Graphicspath question

Post by frabjous »

The problem is probably the underscores in the directory names. Or at least that's one problem. Does it work with files in other directories on the D drive? (Those without underscores? Create some simple sample documents to test if need be...) Are the .tex files saved on the D drive too, and if so, do relative paths work?

Or mac or linux I'd suggest symlinks, but I don't know whether there's an equivalent for Windows. (It might be possible on Vista or Win7...)
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Graphicspath question

Post by frabjous »

I should have asked if you had tried using the grffile package first.
Drako
Posts: 6
Joined: Fri Oct 15, 2010 8:55 pm

Re: Graphicspath question

Post by Drako »

Just tried to use the grffile package, doesnt seem to work.

I not actually able to test other directories because all network folders that im allowed to access are under this one with an underscore.

The tex files are a few directories above the one with the images, on the same drive. Trying to build the tex from my computer with the network address (//kelly/Kelly-wise/Manuais/figuraslatex) does not work either.

I dont think graphicspath works with network folders at all, is there another package for this?
Post Reply