Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 2 down vote accepted

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

\newenvironment{figure*}%
{\begin{figure}}
{\end{figure}}

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
add comment

Your Answer

 
discard

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.