[OS X TeX] How to comment out includegraphics?
Morten Høgholm
morten.hoegholm at gmail.com
Fri Oct 28 00:31:58 CEST 2005
On Thu, 27 Oct 2005 17:27:16 -0500, Alain Schremmer
<Schremmer.Alain at gmail.com> wrote:
> 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…
Try this definition:
\makeatletter
\renewcommand\includegraphics[2][]{%
\def\reserved at a{#2}\@onelevel at sanitize\reserved at a
\fbox{\reserved at a}}
\makeatother
--
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/
More information about the macostex-archives
mailing list