I am trying to use the code from section title in \frametitle beamer
\documentclass{beamer}
\usetheme{Berkeley}
\newenvironment{slide}[1]
{\begin{frame}[environment=slide]
\frametitle{\insertsection-#1}}
{\end{frame}}
\begin{document}
\begin{slide}
\begin{enumerate}
\item lorem
\end{enumerate}
\end{slide}
\end{document}
but get the error
! LaTeX Error: Lonely \item--perhaps a missing list environment.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.15 \end{slide}
fragileoption for such slide wrapper environments – Dec 31 '16 at 17:58