On 15/04/2011 1:47 AM, Liviu Andronic wrote:
Dear all
I've just been bitten by the same issue on documents that I created
during the first betas and compiled just fine then. Now in RC3 I need
to add, as suggested by Daniel, the following to the preamble:
  \newcommand\makebeamertitle{\frame{\maketitle}}%

This looks like a LyX omission that should be fixed. Anyone care to
comment? Cheers
Liviu


On Mon, Feb 8, 2010 at 10:12 PM, Daniel E. Weeks<we...@pitt.edu>  wrote:
Daniel E. Weeks<weeks+@...>  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.









Liviu,
does it help with this patch? i.e. just change the Preamble line to AddToPreamble

--

Index: sweave.module
===================================================================
--- sweave.module       (revision 38405)
+++ sweave.module       (working copy)
@@ -19,7 +19,7 @@
        Other          "noae"
 End

-Preamble
+AddToPreamble
        <<echo=F>>=
          if(exists("ls.enc")) options(encoding=ls.enc)
        @

Reply via email to