I have tons of slides starting with


I tried to rephrase my source for class Beamer by defining


Unfortunately LaTeX says

[1] (./sliBeamer.tex (./titBeamer.tex)
Runaway argument?
! File ended while scanning use of \frame.
<inserted text> 
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
  • 1
    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

Some environments that do 'clever' things don't like shorthand macros of this type. Another example is the align environment from the amsmath package. Shamelessly borrowing from the technical details for amsmath, I suggest the following.

This is a nice slide
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.