4

I want to add a table from a separate tex file to my document. I get an error saying the file vr_sets.tex is not found, when I do this in Chapter2/chapter2.tex:

\input{tab/vr_sets}

This also fails:

\input{./tab/vr_sets}

This works:

\input{Chapter2/tab/vr_sets}

But how can I avoid having to specify the full path each time I want to include content (e.g. tables, sections, figures) from another tex file in a sub directory of the "current working directory"? Is there no such thing as relative paths in tex?

In my main.text I have:

\include{Chapter2/chapter2}
2

1 Answer 1

1

I was able to solve my problem. I changed this:

\include{Chapter2/chapter2}

To this:

\usepackage{import}
\import{Chapter2/}{chapter2.tex}

And I was then able to do inputs with relative paths.

1
  • This seems to break references, so not a viable solution. Mar 3, 2015 at 15:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .