[OS X TeX] How to comment out includegraphics?
Herbert Schulz
herbs at wideopenwest.com
Thu Oct 27 18:38:57 EDT 2005
On Oct 27, 2005, at 5:27 PM, Alain Schremmer wrote:
> It does not work. Possibly because I don't use fbox but I don't
> know what to do.
>
> Here is the preamble
>
> \usepackage{graphicx}
> \renewcommand{\includegraphics}[2][]{\fbox{#2}}
>
> Here is the source:
>
> For instance, we will use \object{dollar} as an alternate for
> \includegraphics[,scale=0.75]{Figures/01_01_00.pdf} to stand for a
> dollar-bill sitting on the counter while we will write
> $\denom{Dollar}$ to represent it on the \emph{board}.
>
> And here is the error message which of course I don't understand:
>
> !Missing $ inserted
> <inserted text>
> $
> l.13 …raphics[,scale=0.75]{Figures/01_01_00.pdf}
> to stand for a dollar-bil…
>
> (By the way, how does one /copy/ this from the console?)
>
> Regards
> --schremmer
Howdy,
A graphics inclusion acts like a character, maybe a large one but
still a character. therefore you've got to use something like $...
\text{\includegraphics[,scale=0.75]{Figures/01_01_00.pdf}}$
since it has no meaning within math mode. This assumes you use the
amsmath package; otherwise use \mbox instead of \text.
Good Luck,
Herb Schulz
(herbs at wideopenwest.com)
------------------------- 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