TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a single figure* graphic in a separate file (let's just call this x.tex). This file is shared across several latex documents and is inserted with input for each document.

Unfortunately, when I try to insert this in a Beamer slide document with \input{x}, Beamer chokes and says Environment figure* undefined.

I've tried fooling around with newenvironment but I don't know enough about it to create a new definition for figure*.

What's the simplest way to insert this file in a Beamer document without having to modify the file being inserted?

share|improve this question
up vote 4 down vote accepted

Since beamer doesn't define a figure* environment, you should be able to create one yourself:


This simply says to create an environment figure* which is identical to the figure environment.

share|improve this answer
Thanks! It was the syntax of newenvironment that I couldn't figure out. – JasonMond Apr 25 '11 at 1:20
@Jason It's basically \newenvironment{name}{stuff at the beginning}{stuff at the end}. (Starred macros can't be created the same way, however.) – Alan Munn Apr 25 '11 at 2:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.