On Tuesday, 24 September 2013 10:33:12 UTC-4, Gabriel wrote:
> I have been a long-time Latex user under Unix/Linux on the command line.
>
> But using a Mac & Texshop now, I am baffled by the following problem.
>
>
>
> I would like to set the search path for Latex so that it looks for graphics images always in a subdirectory called 'images' underneath the directory where the main tex file lives.
>
> And I want it to search that subdirectory recursively.
>
>
>
> On the command line, I used to do that with the environment variable
>
> TEXINPUTS=:./images//
>
> in my ~/.cshrc
>
>
>
> However, GUI apps do not inherit environment variables.
>
> (And I'd rather not set it in system-wide bashrc's or something like that.)
>
>
>
> The \graphicspath{} option is not viable either, because that wouldn't make TeX search for images recursively. Adding all the subdirectories manually is not practical.
>
>
>
> I have googled around a bit, and it seems to me that I should put my TEXINPUTS path in some texmf.cnf.
>
> But I was unable to find out
>
> 1. which one of the texmf.cnf's I should use, and
>
> Regarding (1) I would like to note that I would like to have a "set-and-forget" solution, i.e., I don't want to have to remember the TEXINPUTS stuff when I install the next TexLive version.
>
well, you should be able to find texmf.cnf with:
kpsewhich texmf.cnf
(with texlive 2013 on linux, i get: /usr/local/texlive/2013/texmf.cnf)
the one you want to edit usually tells you it is the right one at the top
of the file. (the one you don't want to edit probably has .../web2c/...
in the path, but that is the one you'll want to look at for 'inspiration'.
but i say this as a non-mac user.)
for what it's worth: why not stick all your images in a place searched
already ... say the mac equivalent of:
~/texmf/tex/latex/images/
which, i think, has a 'Library' somewhere in the path....
cheers,
jon.