[OS X TeX] How to comment out includegraphics?

Herbert Schulz herbs at wideopenwest.com
Fri Oct 28 04:39:06 CEST 2005


On Oct 27, 2005, at 9:01 PM, Ross Moore wrote:

>
> No, it's easier than that
>  --- without resorting to LaTeX internals.
>
> You want to make \includegraphics behave like a macro that
> you know already handles filenames correctly, such as \url
> from  \usepackage{url} .
>
> You must do it in a way that does *not* read the {...} argument
> until the catcodes of the special characters have been adapted.
>
> e.g.
>  \renewcommand{\includegraphics}[1][]{\url}
>
> Now the optional argument is gobbled, then the \url  picks up the
> filename and prints it in whatever style you use for URLs.
>
>
> Even better would be to look at how  url.sty  can be customised,
> and setup a special command to deal just with these filenames
> for graphics --- using a special font and/or color.
>

Howdy,

VERY NICE! :-)!

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 macostex-archives mailing list