Is there a way to have TeX find all files ending on .tex in subdirectories of a certain directory to be used as \input?
In my document I would like to include a large number of files from a directory-tree which looks like this:
/transcripts/2013-05/2013-05-12/2013-05-12-transcript1/2013-05-12-transcript1.tex
/2013-05-12-transcript2/2013-05-12-transcript2.tex
/2013-05-14/2013-05-14-transcript1/2013-05-14-transcript1.tex
/2013-06/2013-06-07/2013-06-07-transcript1/2013-06-07-transcript1.tex
I know I can define specific directories with
\makeatletter
\def\input@path{{./transcripts/}{./transcripts/2013-05}}
\makeatother
but it would be nice to be able to tell it something like
./transcripts/*/*/*/
Is there any way how to achieve this?
I know that this question addresses a similar issue. However, I don't want to automatically include the files, they will still be specified by `\input{filename}:
\documentclass{article}
\begin{document}
\input{2013-05-12-transcript1.tex}
...
\input{2013-05-12-transcript2.tex}
\end{document}
What I'd like to achieve is to be able to only type the name and not have to type the entire filepath every time.
EDIT: As per the suggestion below I have tried to edit /usr/local/texlive/2015/texmf.cnf by adding TEXINPUTS = /path/to/folder//: so that it would search my folders recursively, but clearly I am missing some basic knowledge about how to do that. Anyone able to help me with this?
EDIT2 (2019): I'm coming back to this question from a while ago:
(a) I haven't been able to get David's answer below to work. Any further help would be appreciated. (b) I would also still like to find a portable solution, to be specified in the preamble of the document itself. Any ideas?
texmf.cnf? I tried to addTEXINPUTS = ~/path/to/input//:to the userstexmf.cnfin/usr/local/texlive/2015/but it still won't find the files. What am I doing wrong? – jan Apr 28 '16 at 09:03texmf.cnfin/usr/local/texlive/2015/what you meant? – jan Apr 29 '16 at 04:08kpsewhich texmf.cnfor on the command line (with a shell such as bash) you can simply doTEXINPUTS=.//: pdflatex yourfile.texalsokpsexpand '$TEXINPUTS'will show the currently active setting – David Carlisle Apr 29 '16 at 08:28kpsewhich texmf.cnfgives me/usr/local/texlive/2015/texmf.cnfas expected. Now I've addedTEXINPUTS = /path/to/folder//:to that file.kpsexpand '$TEXINPUTS'gives me exactly that path. But when compiling it still doesn't find it. – jan Apr 29 '16 at 09:06