General ⇒ Reference Path
Reference Path
I'm running into a problem, obvious and quite stupid but I can't get out.
When I'm compiling a latex file, I set it up in a main directory or map, with different submaps for several chapters (to keep the clutter away in my main map).
I make reference to different submaps for graphics etc. by using /includegraphics{Submap/imagename}. This all works fine. But what if I want to refer to a map like "my pictures", which is not in the main map, how do I do that?
I've tried things like \includegraphics{C://User/MyDocuments/MyPictures/Mapname/filename} but that doesn't seem to work at all.
I use the example with an 'includegraphics' but tend to use the same principle in the \subfile package. Anyone experience in the relation of my problem with the specific package?
Many thanks in advance!
Geronnimo
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
Reference Path
I don't have a Windows machine readily available on which to test this, but here are three possible options to get absolute paths:
- Use a DOS path:
Code: Select all
\includegraphics{C:\path\to\MyDocuments\MyPictures\Dirname\filename}
- Use a UNIX-like path (assuming it's on the same drive letter, this will probably work):
Code: Select all
\includegraphics{/path/to/MyDocuments/MyPictures/Dirname/filename}
- Use relative paths:
Code: Select all
\includegraphics{../../Dirname/filename} % or whatever is the right relative path
- Make a copy or soft link (shortcut) of file in current directory