Daniel E . Weeks
Mon, 08 Feb 2010 13:15:40 -0800
Daniel E. Weeks <wee...@...> writes: > > I am using LyX to make Beamer slides while supporting the use of R > statistical commands via the Sweave package. > > If I follow the instructions found here > > http://ggorjan.blogspot.com/2008/09/using-beamer-with-lyx-sweave.html > > LyX/Sweave/Beamer works just fine. But as soon as I try to put in > Title or Author information at the beginning, LyX refuses to typeset > the presentation, returning instead this error message: > > Undefined control sequence. > > \makebeamertitle > The control sequence at the end of the top line > of your error message was never \def'ed. If you have > misspelled it (e.g., `\hobx'), type `I' and the correct > spelling (e.g., `I\hbox'). Otherwise just continue, > and I'll forget about whatever was undefined. > > This is mystifying to me, as the 'makebeamertitle' is defined in the > included beamer.layout now packaged with LyX. > [ Original posting shortened ] > LyX Version 1.6.4.1 > Platform: Mac OS X Versoni 10.5.8 on an Intel machine. > >
The solution to the "LyX Beamer Sweave: makebeamertitle not being defined"
problem was to put this:
\newcommand\makebeamertitle{\frame{\maketitle}}%
in the LaTeX Preamble box, which is accessed via the Document -> Settings dialog
box.