Let’s assume a project with a main file main.tex including the chapter with \include.
% main.tex
\documentclass{book}
\includeonly{one}
\begin{document}
\include{one}
\include{two}
\end{document}
% one.tex
\chapter{First chapter}
Some text
% two.tex
\chapter{Second chapter}
Some text
To keep the diretory clean the chapters should be saved in a folder named chapters/. Doing this means also to add the folder to each \include macro and to \includeonly too.
\documentclass{book}
\includeonly{chapters/one}
\begin{document}
\include{chapters/one}
\include{chapters/two}
\end{document}
So I wonder if it is possible to change the default path used with \include(only)?
inputxandimportpackages. – Werner Nov 05 '12 at 23:04importdoesn’t provide what I need …inputxisn’t on CTAN, is it? – Tobi Nov 05 '12 at 23:13inputxis provided as part of the answer. Since I haven't tried it, this would be an optimal opportunity to test it out and push an answer-to-package... – Werner Nov 05 '12 at 23:15