[texhax] \DeclareGraphicsRule in beamer

Aditya Mahajan aditya.mahajan at alumni.iitk.ac.in
Mon Feb 14 19:24:46 CET 2005


On Mon, 14 Feb 2005, Roger Mason wrote:

> In main.tex I have:
>
> % Not to be run stand-alone: to be \incuded
> % in main.beamer.tex and main.article.tex.
> \mode<presentation>
> [ code snipped ]
> \mode<article>
> {
> \DeclareGraphicsRule{*}{eps}{*}{}
> }
> [ packages snipped ]
> \usepackage{graphicx}
>
> \begin{document}
>
> When I run LaTeX on main.article.tex it raises the complaint:
>
> ERROR: Undefined control sequence.
>
> --- TeX said ---
> <recently read> \DeclareGraphicsRule
>

\DeclareGraphicsRule is defined in graphicx.sty. You are using the
declaration before including the package. Just put the line

\usepackage{graphicx}

before \DeclareGraphicsRule

and it should work fine.

HTH,
Aditya



More information about the texhax mailing list