# LaTeX: Beamer with \newcommand

I have tons of slides starting with

\bslide

I tried to rephrase my source for class Beamer by defining

\newcommand{\bslide}{\begin{frame}{xxx}}

Unfortunately LaTeX says

===========================================
[1] (./sliBeamer.tex (./titBeamer.tex)
Runaway argument?
\par
! File ended while scanning use of \frame.
<inserted text>
\par
l.15 \input{titBeamer}

? x
Output written on slidesBeamer.dvi (1 page, 22680 bytes).
Transcript written on slidesBeamer.log.
make: *** [slidesBeamer.dvi] Error 1
======================================

Any hint?

• Welcome to TeX.SX. Note that you don't have to sign with your name since it automatically appears in the lower right corner of your post. – Claudio Fiandrino Sep 5 '13 at 12:03
• How do you end your slides? Is there an \eslide command, or does each \bslide mark the end of the previous slide as well as the start of the next? (Either way, I think the easiest would be to do a search-and-replace in an editor. beamer looks for the explicit \end{frame} text when looking for the end of a frame.) – Andrew Stacey Sep 5 '13 at 12:22
• Thank you Andrew for your comment. Yes: I defined an "\eslide" as \newcommand{\eslide}{\end{frame}}. If I understand well your response, I MUST insert an explicit \end{frame} at the end of each slide. I hoped the "\eslide" command does the work: I should like not to change the source of my slides. – Flavio Sartoretto Sep 5 '13 at 15:55