I want to be able to define custom block environments in Beamer.
That is, where for now I use alertblock
and exampleblock
I would rather use problock
and conblock
for a pro/con discussion.
This just seems more appropriate because a con is not an alert and a pro is not an example.
The code should then look something like this:
\begin{problock}{Pros}
\begin{itemize}
\item Good reason
\item Better reason
\end{itemize}
\end{problock}
\begin{conblock}{Contra}
\begin{itemize}
\item Small drawback
\item Big drawback
\end{itemize}
\end{conblock}
For each defined block environment I would then provide the proper formatting overrides in the preamble such as bg
, fg
and especially the structure color for bullets and such.
which would be the most beamer-like way to go?
Best Answer
Here's a simple example (emulating the definition of
alertblock
as it appears inbeamerbaselocalstructure.sty
) of the definition of a new block-like environment; using\setbeamercolor
and\setbeamertemplate
you can then customize the different elements of the new block (background and foreground color for title and body, aspect of the items in anitemize
environment, etc.). You can procceed analogously for the definition of theconblock
environment: