[OS X TeX] How to comment out includegraphics?

Alan Litchfield alan at alphabyte.co.nz
Wed Oct 26 02:05:38 EDT 2005


What about just mounting Mac as a directory? Have all your files on  
there or point the directory that the image files will be found in.

No need to comment anything out.

Alan

On Oct 26, 2005, at 12:21 PM, Morten Høgholm wrote:

> On Tue, 25 Oct 2005 18:08:57 -0500, Alain Schremmer  
> <Schremmer.Alain at gmail.com> wrote:
>
>
>> In Petersen's defense, I should say that he knows what my stuff  
>> looks like and that the only \includegraphics I have, if very many  
>> of them, are bare bones ones.
>>
>
> Ah, an insider  ;-)
>
>
>> But, out of curiosity, I will try the  \fbox{\includegraphics 
>> {myfile}}. Does the \includegraphics explode with much sparks or  
>> does it just burn slowly?
>>
>
> The problem is that the substitution will then be
>   \fbox{%\includegraphics{myfile}}
> and then TeX will just see if it can find some } token to end the  
> \fbox. Assuming the rest of the file is free of syntax error, you  
> will probably wind up with an error such as
>
> Runaway argument?
> {\par Hello World! \par \stop \documentclass [a4paper]{article}  
> \usepackage \ET
> C.
> ! File ended while scanning use of \fbox.
> <inserted text>
>                 \par
> <*> Outlines.tex
>
>
> Another problem is that some users make use of the fact that you  
> can split keyval argument over several lines. Hence
>   \includegraphics[
>     width=5cm,
>     height=3cm
>   ]{myfile}
> is valid as well and that will just typeset
>       width=5cm, height=3cm ]myfile
> in the middle of your document with that search and replace.
> -- 
> Morten
> ------------------------- Info --------------------------
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
>          & FAQ: http://latex.yauh.de/faq/
> TeX FAQ: http://www.tex.ac.uk/faq
> List Archive: http://tug.org/pipermail/macostex-archives/
>
>

------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the MacOSX-TeX mailing list