Hi,
I am writing a document but it contains lots of pictures and well, every time I want to insert one I have to set its path, \includegraphics{/users/mac/documents/article/picture/pic1.png} is there a way I can avoid doing this, but without taking out the folder? What I am trying to say is there a way to establish maybe in the preamble the path I want, so when I want to include a picture I just write down \includegraphics{pic1.png}.
Graphics, Figures & Tables ⇒ graphics path
NEW: TikZ book now 40% off at Amazon.com for a short time.

-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
graphics path
Yes:
If you need more than one directory, separate them like so:
\graphicspath{{figures/}}
will include (current-directory)/figures/*.{pdf,jpg,png} files without using the path.If you need more than one directory, separate them like so:
\graphicspath{{figures1/}{figures2/}}
-
- Posts: 5
- Joined: Wed Jun 11, 2014 4:52 am
Re: graphics path
Thank you!!!
is there a way to do the same but with \input{}?
is there a way to do the same but with \input{}?
-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
graphics path
Yes, but not within LaTeX itself. Each distribution may be slightly different, but on my system there is an environment variable called TEXINPUTS; setting it like this:Alonso67231 wrote:Thank you!!!
is there a way to do the same but with \input{}?
Code: Select all
export TEXINPUTS='.:/path/to/my/directory:'