I have a top-level latex file: /thesis.tex
And subfolders with chapters: /chap1/ch1.tex
In thesis.tex
I use \include
commands like so:
\include{chap1/ch1}
And in ch1.tex
I have more includes for the sections of the chapter:
\include{introduction}
The ch1.tex
file and all its included sections use relative paths as above (this was a standalone document that is now a chapter of the larger thesis.tex doc). I realize I have to fix all the paths in the include statements for ch1.tex
and its sections to respect the main document directory as the root:
\include{chap1/introduction}
Is there another way? Do I have to go through and change all the include and figure references in this way, or is there a way I can tell all such links to use relative paths within ch1?
include
butinput
within a chapter...chap1
in one place, but then mentionch1
in another. Also, a leading slash denotes an absolete path. Is yourthesis.tex
really in/
? :-)import
package is what you need.