# Redefining figure* for Beamer

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?

-

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

This simply says to create an environment figure* which is identical to the figure environment.
 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
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9396913051605225, "perplexity": 2019.4366682435862}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2013-20/segments/1368703334458/warc/CC-MAIN-20130516112214-00028-ip-10-60-113-184.ec2.internal.warc.gz"}