Re: LyX Beamer Sweave: makebeamertitle not being defined?

2010-02-08 Thread Daniel E . Weeks
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.






Re: LyX Beamer Sweave: makebeamertitle not being defined?

2010-02-08 Thread Daniel E . Weeks
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.






Re: LyX Beamer Sweave: makebeamertitle not being defined?

2010-02-08 Thread Daniel E . Weeks
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.






LyX Beamer Sweave: makebeamertitle not being defined?

2009-09-16 Thread Daniel E. Weeks
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.


Here's the literate-beamer.layout file I am using, which should be  
loading the 'beamer.layout' information:


#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[beamer, Sweave.sty]{beamer (beamer Sweave noweb)}
#
# What: literate-article textclass definition file.
# Author: Gregor Gorjanc gregor.gorj...@bfro.uni-lj.si
# $Id: literate-article.layout 58 2007-01-02 00:41:59Z ggorjan $
#
# This is a copy of literate-article.layout from LyX, but changed for
# Sweave - NoWeb syntax:
#  - changed noweb.sty to Sweave.sty
#  - moved preamble to literate-scrap.inc

Format 2
Input beamer.layout
Input literate-scrap.inc


If I typeset the tex file that LyX generates myself using TeXShop, it  
generates a pdf without any complaints, but fails to show the  
requested title page, even though these lines are found in the  
generated tex file:


\begin{document}

\title{Test Title}

\makebeamertitle


If I paste this code from the 'beamer.layout' into my LaTeX file (or  
into the 'LaTeX preamble' section of my LyX Document Settings):


  \newcommand\makebeamertitle{\frame{\maketitle}}%
  \AtBeginDocument{
\let\origtableofcontents=\tableofcontents
\def\tableofcontent...@ifnextchar[{\origtableofcontents} 
{\gobbletableofcontents}}

\def\gobbletableofcontents#1{\origtableofcontents}
  }

then the title page appears.

But I can get the title pages to appear O.K. if I use the  
'presentation (beamer)' style instead.


So for some reason, the 'beamer.layout' definitions are not  
functioning properly in terms of defining the 'makebeamertitle' with  
my custom 'literate-beamer.layout' file.  However, this used to work  
with an earlier version of LyX last year, as I made several beamer  
presentations that way.


Thanks for any suggestions you might have.

Dan Weeks


LyX Version 1.6.4.1
Platform: Mac OS X Versoni 10.5.8 on an Intel machine.


LyX Beamer Sweave: makebeamertitle not being defined?

2009-09-16 Thread Daniel E. Weeks
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.


Here's the literate-beamer.layout file I am using, which should be  
loading the 'beamer.layout' information:


#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[beamer, Sweave.sty]{beamer (beamer Sweave noweb)}
#
# What: literate-article textclass definition file.
# Author: Gregor Gorjanc gregor.gorj...@bfro.uni-lj.si
# $Id: literate-article.layout 58 2007-01-02 00:41:59Z ggorjan $
#
# This is a copy of literate-article.layout from LyX, but changed for
# Sweave - NoWeb syntax:
#  - changed noweb.sty to Sweave.sty
#  - moved preamble to literate-scrap.inc

Format 2
Input beamer.layout
Input literate-scrap.inc


If I typeset the tex file that LyX generates myself using TeXShop, it  
generates a pdf without any complaints, but fails to show the  
requested title page, even though these lines are found in the  
generated tex file:


\begin{document}

\title{Test Title}

\makebeamertitle


If I paste this code from the 'beamer.layout' into my LaTeX file (or  
into the 'LaTeX preamble' section of my LyX Document Settings):


  \newcommand\makebeamertitle{\frame{\maketitle}}%
  \AtBeginDocument{
\let\origtableofcontents=\tableofcontents
\def\tableofcontent...@ifnextchar[{\origtableofcontents} 
{\gobbletableofcontents}}

\def\gobbletableofcontents#1{\origtableofcontents}
  }

then the title page appears.

But I can get the title pages to appear O.K. if I use the  
'presentation (beamer)' style instead.


So for some reason, the 'beamer.layout' definitions are not  
functioning properly in terms of defining the 'makebeamertitle' with  
my custom 'literate-beamer.layout' file.  However, this used to work  
with an earlier version of LyX last year, as I made several beamer  
presentations that way.


Thanks for any suggestions you might have.

Dan Weeks


LyX Version 1.6.4.1
Platform: Mac OS X Versoni 10.5.8 on an Intel machine.


LyX Beamer Sweave: makebeamertitle not being defined?

2009-09-16 Thread Daniel E. Weeks
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.


Here's the literate-beamer.layout file I am using, which should be  
loading the 'beamer.layout' information:


#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[beamer, Sweave.sty]{beamer (beamer Sweave noweb)}
#
# What: literate-article textclass definition file.
# Author: Gregor Gorjanc 
# $Id: literate-article.layout 58 2007-01-02 00:41:59Z ggorjan $
#
# This is a copy of literate-article.layout from LyX, but changed for
# Sweave - NoWeb syntax:
#  - changed noweb.sty to Sweave.sty
#  - moved preamble to literate-scrap.inc

Format 2
Input beamer.layout
Input literate-scrap.inc


If I typeset the tex file that LyX generates myself using TeXShop, it  
generates a pdf without any complaints, but fails to show the  
requested title page, even though these lines are found in the  
generated tex file:


\begin{document}

\title{Test Title}

\makebeamertitle


If I paste this code from the 'beamer.layout' into my LaTeX file (or  
into the 'LaTeX preamble' section of my LyX Document Settings):


  \newcommand\makebeamertitle{\frame{\maketitle}}%
  \AtBeginDocument{
\let\origtableofcontents=\tableofcontents
\def\tableofcontent...@ifnextchar[{\origtableofcontents} 
{\gobbletableofcontents}}

\def\gobbletableofcontents#1{\origtableofcontents}
  }

then the title page appears.

But I can get the title pages to appear O.K. if I use the  
'presentation (beamer)' style instead.


So for some reason, the 'beamer.layout' definitions are not  
functioning properly in terms of defining the 'makebeamertitle' with  
my custom 'literate-beamer.layout' file.  However, this used to work  
with an earlier version of LyX last year, as I made several beamer  
presentations that way.


Thanks for any suggestions you might have.

Dan Weeks


LyX Version 1.6.4.1
Platform: Mac OS X Versoni 10.5.8 on an Intel machine.