renewcommand examples broken?

33 views
Skip to first unread message

Albert Puig

unread,
Aug 13, 2015, 2:43:19 PM8/13/15
to LaTeX Beamer class
Hi!

I'm trying to use beamer's renewcommand, and for understanding this I just tried to copy the example in the "9.6.1 Making Commands and Environments Overlay Specification-Aware" section:

\renewenvironment<>{verse}
    {\begin{actionenv}#1\begin{originalverse}}
    {\end{originalverse}\end{actionenv}}

My MWE is

\documentclass[]{beamer}

\renewenvironment<>{verse}
    {\begin{actionenv}#1\begin{originalverse}}
    {\end{originalverse}\end{actionenv}}

\begin{document}

\begin{frame}{Test}

    First line


\end{frame}

\end{document}

And the error is


! LaTeX Error: Command \beamerx@\verse already defined.
               Or name \end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.5     {\end{originalverse}\end{actionenv}}


Am I doing something stupid? I am just copying the example. Beamer version is 3.36 and latex is

This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=pdflatex)

Thanks,
Albert

Mark Yagnatinsky

unread,
Aug 20, 2015, 12:13:42 AM8/20/15
to beamer...@googlegroups.com
Try the clever folks at tex.stackexchange.com
I think some TeX wizards live there.
> --
> You received this message because you are subscribed to the Google Groups
> "LaTeX Beamer class" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beamer-class...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages