Graphics, Figures & Tablespath to grapchics on DOK

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
yotama9
Posts: 61
Joined: Thu Sep 24, 2009 2:59 pm

path to grapchics on DOK

Post by yotama9 »

Hi.

I'm writing my thesis using LaTeX. I want to create a separate folder for images. I will use different OS and different machines for my thesis.

Is there a way to insert graphic to the file when the graphics are in a subfolder to the current one without using the full path? is there a way to do it so it will be cross-platform?

Thanks.

Yotam

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

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

path to grapchics on DOK

Post by Stefan Kottwitz »

Hi Yotam,

yes, relative paths should work, also on different platforms. Use it the way

Code: Select all

\includegraphics{subpath/image}
In the UK TeX FAQ you can find some more information: Importing graphics from “somewhere else” especially for more efficient methods.

Stefan
LaTeX.org admin
yotama9
Posts: 61
Joined: Thu Sep 24, 2009 2:59 pm

Re: path to grapchics on DOK

Post by yotama9 »

Thanks. It worked on my windows machine. I didn't yet try it on my Linux machine.
Post Reply