I'm trying to have recursive path in the command \input@path, but it seems to be impossible (as I read, I'm with the TexLive 2012 and Linux).
So I had the following idea, make a loop in \input@path, but it doesn't work and I don't know why ...
This is what I did :
\newcounter{path}
\setcounter{path}{0}
\def\nom{%
\ifcase\thepath Cours%
\or Livres%
\fi
}
\def\input@path{%
\loop \ifnum \thepath<3
{~/Exercices/\nom/Derivee/}
\stepcounter{path} \repeat
}
If someone have an idea, it will be very helpful.
TEXMFHOMEand runtexhashto index all of them. Runtexdoc texlivefor infos on configuration. These variables are not strictly meant for this sort of thing, but by putting a large number of items ininput@path, you are forcing LaTeX to explicitly iterate through all of them for every input, which can get time consuming. – Stephan Lehmke Aug 26 '12 at 17:24