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:
\th@foocommand for a theorem-like environment named
foo. The new command should redefine
\inserttheoremblockenvto be the desired block environment. See
beamerbasetheorems.sty(around line 63) for how this is done specifically for
theorem endtemplate to look up the correct theorem block environment based on the global variable
beamerinnerthemedefault.sty). The lookup table could be kept in a
pgfkeysregistry. This approach would be a bit higher-level and wouldn't involve any commands with
@in them; however, YAGNI comes to mind.