Document ClassesBeamer: theorem-like environment

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
fenghedo
Posts: 19
Joined: Sat Oct 04, 2008 3:01 pm

Beamer: theorem-like environment

Post by fenghedo »

Hi all,

I am working on a long presentation using beamer. One thing I like to use is the theorem environment to highlight something. For example, if I want to generate something like:
Beamer
Best Presentation Package
I will use the following:

Code: Select all

\newtheorem{beamer_best}{Beamer}
\begin{beamer_best}
Best Presentation Package
\end{beamer_best}
However, I need to define a new environment using \newtheorem everytime I need a new one. This can be a mess since I have need a lot of them.

Can anyone give a hint of how to do this more efficiently? For example, if I could pass an argument like in \newcommand, then I do not need to redefine a new environment every time.


Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Beamer: theorem-like environment

Post by gmedina »

Hi,

perhaps the block environment could be useful:

Code: Select all

\begin{frame}
\begin{block}{Beamer}
Best Presentation Package
\end{block}
\end{frame}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply