# Wrong TikZ filepaths when included used input

I'm using TikZ for my thesis but have run into a small problem. In order to maintain some overview of the main tex file I have split all images into separate TikZ files (This also allows me to edit them with KtikZ which is nice). All images are put into a separate directory, say /images, which contains the TikZ files as well as any data file they include for plots (these are drawn with the \draw plot file{<filename>}; command).

Now, my problem is that when I import an image (\import inside an figure environment) all the file paths inside the TikZ file become wrong.

So, is there any way of changing the evaluation directory inside the scope or to provide the TikZ file with an relative path or something? All ideas are welcome!

-

## migrated from stackoverflow.comJan 19 '12 at 15:28

This question came from our site for professional and enthusiast programmers.