How do I create a new Beamer environment with a verbatim environment?
问题 I'm creating a Beamer presentation that has a lot of example LaTeX in it, which has to go in a verbatim environment. I'm getting tired of typing \begin{example} \begin{verbatim} Verbatim Text \end{verbatim} \end{example} I wish to create a new command or environment that will shorthand this for me. I also need this for blocks and theorems, since I'm using those frequently as well. But if I can figure it out for examples, it should be easy to translate to another example. I can't create a new