I've got a main-file which includes the preamble. I then use \import to put together all chapters of my final document. When saving the main-file in another directory than the chapter-files I get the message:
! LaTeX Error: File `GDP.tex' not found.
Isn't the idea of \import to import files from different directories? Is there maybe something wrong with my code?
...
\begin{document}
\maketitle
\tableofcontents
\import{/Users/john/Documents/Uni/Studienarbeit/Latex/Kapitel/GDP}{Methodology}
\import{/Users/john/Documents/Uni/Studienarbeit/Latex/Kapitel/GDP}{GDP}
\end{document}
\input{/Users/john/Documents/Uni/Studienarbeit/Latex/Kapitel/GDP/Methodology}. That is,\inputrather than\import. – Werner Feb 14 '12 at 00:56\importcommand? Usually files are included with\include(or sometimes\input). – Alan Munn Feb 14 '12 at 00:58Methodology.texfound? Is both files placed in/Users/john/Documents/Uni/Studienarbeit/Latex/Kapitel/GDP? If you are not using\input(or like) in the files, then you should just use\includein your main file. – hpekristiansen Feb 14 '12 at 01:01\includeis preferred over\input. – hpekristiansen Feb 14 '12 at 01:02@Alan Munn: I used \usepackage{import}.
– John Feb 14 '12 at 01:41\includesuits the purpose best here. – hpekristiansen Feb 14 '12 at 21:00