The amsthm theorem environments (theorem,example,proof,solution,...) make blocks on beamer slides. The default is that example environments use a different template (block example) than theorem or solution or proof (block).
How do I make solution use a different template like "block solution" that I can define?
Edit: Thanks to those who answered. I haven't implemented a workaround yet but it seems like there are two ideas:
Redefine the
\th@foo
command for a theorem-like environment namedfoo
. The new command should redefine\inserttheoremblockenv
to be the desired block environment. Seebeamerbasetheorems.sty
(around line 63) for how this is done specifically forexample
.Redefine the
theorem begin
andtheorem end
template to look up the correct theorem block environment based on the global variable\inserttheoremname
(seebeamerinnerthemedefault.sty
). The lookup table could be kept in apgfkeys
registry. This approach would be a bit higher-level and wouldn't involve any commands with@
in them; however, YAGNI comes to mind.