[tex-live] behaviour of kpsewhich on case-insensitive mac system

Enrico Gregorio enrico.gregorio at gmail.com
Mon Sep 18 19:40:12 CEST 2017


> On 18 Sep 2017, at 18:18 , jfbu <jfbu at free.fr> wrote:
> 
> Hi,
> 
> I have a question,
> 
> $ kpsewhich example-image-A.pdf
> 
> $ kpsewhich example-image-a.pdf
> /usr/local/texlive/2017/texmf-dist/tex/latex/mwe/example-image-a.pdf
> 
> But I am on a case-insensitive file system:
> 
> $ touch foo
> 
> $ mv foo Foo
> 
> $ rm foo
> 
> $ ls Foo
> ls: Foo: No such file or directory
> 
> I was wondering why an `\includegraphics{example-image-A}` failed
> (which I got from some post on tex.sx) and I surmise from the above
> that this has possibly to do with kpsewhich or at least with the way
> pdftex finds files.
> 
> I guess the rationale is that if kpsewhich were to be
> case-insensitive on OSes with case insensitive file systems,
> TeX documents would more easily behave differently on different
> systems ?

I find this the only really sensible behavior. Using the wrong casing
limits portability of documents. It often happens that people
on Windows use wrong casing and are puzzled because
the same document doesn’t compile on another (non Windows)
machine.

Ciao
Enrico


More information about the tex-live mailing list