[OS X TeX] Problem with Figure/Includegraphics

Jacques Dubucs jacques.dubucs at univ-paris1.fr
Fri Mar 20 07:36:05 CET 2009


Dear Herb,

Thanks for your quick answer.

True, the console output contains this warning:

File `K G.jpg' not found on input line 9

But this very warning is misleading, because the system *does find* this
file and *does handle* it correctly (Gödel face appears !), while it
produces also the label of the file gratis pro Deo.

Moreover, this unpredictible influence of accidental features of the
argument on the generic behavior of a command is baffling. That's as if the
motor of your car were starting in any circumstance when requested, but the
widscreen wipers also at the same time when songbirds are active in the
neighborhood.

To the Latex newcomer, who is inclined to name 'Kurt Gödel' his picture of
Kurt Gödel and who spends vain hours to inquire about hypothetical hidden
options of the figure environment to get what he wants, that's quite
disconcerting.

Best regards,

JD






I'd like to add that the console output (LaTeX Warning:) is itself
misleading, for the system *does find* the file


Le 20/03/09 1:02, « Herbert Schulz » <herbs at wideopenwest.com> a écrit :

> 
> On Mar 19, 2009, at 6:10 PM, Jacques Dubucs wrote:
> 
>> This inclusion is sensible to the *label* of the image to include.
>> If this
>> label contains a blank space, then you will get the image *and* the
>> label;
>> else, only the image.
>> 
>> E.g. From the following code will result 2 pictures of Gödel, the
>> second
>> one, but not the first one, being preceded at the left by the label
>> "G.jpg":
>> 
>> \documentclass{memoir}
>> \usepackage{graphicx}
>>   \begin{document}
>>  \begin{figure}[H]
>>     \includegraphics [width=.2\textwidth]{KG.jpg}
>>        \includegraphics [width=.2\textwidth]{K G.jpg}
>>       \end{figure}
>>        \end{document}
>> 
>> Bad feature, because the behavior of these commands should be
>> independent
>> from accidental features of the labels.
>> 
>> Thanks for your attention,
>> 
>> JD
>> 
>> 
>> Jacques Dubucs
>> Directeur de l'IHPST
> 
> Howdy,
> 
> It is bad practice to use file names with spaces in tex documents. If
> you would look at the console output you'd see
> 
> LaTeX Warning: File `K G.jpg' not found on input line 7.
> 
> so there is a problem. While a lot of work has been done to be able to
> use file names with spaces I try to avoid at almost all costs because
> you can still run into problems.
> 
> Good Luck,
> 
> Herb Schulz
> (herbs at wideopenwest dot com)
> 
> 
> 






More information about the macostex-archives mailing list