[OS X TeX] graphicx, pdflatex and pdf file names

Bruno Voisin bvoisin at mac.com
Fri Aug 3 11:40:31 EDT 2007

Le 3 août 07 à 17:17, Chris Goedde a écrit :

> I guess that also means that "fixing" pdflatex/graphicx is more  
> complicated than I originally thought, since there are special  
> cases to consider. Doing a naive right-to-left parsing of the  
> filename for the extension would break the case you bring up. Oh  
> well, that's the way it often is, unfortunately. So I take back  
> some of my mean words about pdflatex/graphicx. I still wish they  
> were smarter, though :-).

Recursive right-to-left parsing would probably be the way forward:  
look at the first extension on the right of the file name, apply  
whatever action is defined for this extension, look at the extension  
on the right of the name of the resulting file, apply whatever action  
is defined for this extension, and so forth, until either (i) an  
extension with no known associated action is found or (ii) no more  
extension is found.

Probably too involved for a graphics inclusion package. And Mac OS  
isn't much smarter than LaTeX in this respect: I'm not absolutely  
sure, but when downloading files using Safari, if I remember  
correctly, .tgz files are uncompressed and unarchived all the way,  
while .tar.gz files are simply uncompressed and left in .tar form on  
the Desktop.


------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/

More information about the MacOSX-TeX mailing list