Document ClassesBeamer error undefined control sequence \mode<presentation>

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
RaulLeal
Posts: 4
Joined: Mon Jul 09, 2007 10:46 pm

Beamer error undefined control sequence \mode<presentation>

Post by RaulLeal »

Hi everybody

I am new using beamer and i have the following problem.

Code: Select all

\mode<presentation>{\usetheme{Warsaw}}

before the \begin{document}

but then i get an error

Code: Select all

! undefined control sequence \mode<presentation>{\usetheme{Warsaw}}

If i just write

Code: Select all

\usetheme{Warsaw}
i get the same error

Code: Select all

! undefined control sequence \usetheme{Warsaw}
I have check all the files with the themes are in the right files

Code: Select all

\txtmf\doc\latex\beamer\themes
\txtmf\tex\latex\beamer\themes
\txtmf\source\latex\beamer\themes
Can anybody help me?

Best

Raul

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Beamer problem

Post by localghost »

Please post the complete preamble of your document that produces this error.
RaulLeal
Posts: 4
Joined: Mon Jul 09, 2007 10:46 pm

Beamer error undefined control sequence \mode<presentation>

Post by RaulLeal »

Hi thanks for your reply

I am trying write over one of the examples in the package.
But it does not work.

I guess is an installation problem. I installed beamer again but it did not help i have the same error

Raul

here is the preamble


Code: Select all

\documentclass{beamer}

\mode<presentation> {
  \usetheme{Warsaw}
  % or ...

  %\setbeamercovered{transparent}
  % or whatever (possibly just delete it)
}


\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{times}
\usepackage[T1]{fontenc}

\title[Short Paper Title] {Presentation Title}
\author{Raul Leal}
\institute[Universiteti van Amsterdam] 
\date[Short Occasion] 

\begin{document}
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Beamer error undefined control sequence \mode<presentation>

Post by localghost »

I assume that you are using an old version of the beamer package. Which LaTeX system do you use?

Code: Select all

\listfiles
\documentclass[smaller]{beamer}
\mode<presentation> {
\usetheme{Warsaw}
% or ...
%\setbeamercovered{transparent}
% or whatever (possibly just delete it)
}
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{cmbright}

\title[Short Paper Title] {Presentation Title}
\author{Raul Leal}
\institute[Universiteti van Amsterdam]
\date[Short Occasion]

\begin{document}
  …
\end{document}
At first, add the \listfiles command to your preamble like shown above. Then search the list of used packages in the log file and post it here.

Using a typeface like Times is not recommended in a presentation. Use a sans-serif font like cmbright instead for better reading.
RaulLeal
Posts: 4
Joined: Mon Jul 09, 2007 10:46 pm

Beamer error undefined control sequence \mode<presentation>

Post by RaulLeal »

I use Miktek 2.4
I am using the beamer distribution that comes with the package.
I will download a newer version of beamer to see if it improves.

thnks

The files list is:

Code: Select all

 *File List*
  beamer.cls    2003/11/12 v1.00 Class for Typesetting a Beamer Presentation
     pgf.sty    2003/10/29 ver 0.40
 xxcolor.sty    2003/10/24 ver 0.1
  xcolor.sty    2003/11/09 v1.04 LaTeX color extensions (UK)
   color.sty    1999/02/16 v1.0i Standard LaTeX Color (DPC)
   color.cfg    2003/03/08 v1.0 MiKTeX 'color' configuration
  pdftex.def    2002/06/19 v0.03k graphics/color for pdftex
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
 amssymb.sty    2002/01/22 v2.2d
amsfonts.sty    2001/10/25 v2.2f
geometry.sty    2002/07/08 v3.2 Page Geometry
geometry.cfg
hyperref.sty    2003/11/15 v6.74l Hypertext links for LaTeX
  pd1enc.def    2003/11/15 v6.74l Hyperref: PDFDocEncoding definition (HO)
hyperref.cfg    2003/03/08 v1.0 MiKTeX 'hyperref' configuration
     url.sty    1999/03/28  ver 1.5x  Verb mode for urls, etc.
 hpdftex.def    2003/11/15 v6.74l Hyperref driver for pdfTeX
  pifont.sty    2003/03/02 PSNFSS-v9.0c Pi font support (SPQR) 
    upzd.fd    2001/06/04 font definitions for U/pzd.
    upsy.fd    2001/06/04 font definitions for U/psy.
  size10.clo    2001/04/21 v1.4e Standard LaTeX file (size option)
   babel.sty    2003/11/16 v3.7m The Babel package
 english.ldf    2003/11/17 v3.3m English support from the babel system
inputenc.sty    2001/07/10 v0.99a Input encoding file 
  latin1.def    2001/07/10 v0.99a Input encoding file 
 fontenc.sty
   t1enc.def    2001/06/05 v1.94 Standard LaTeX file
cmbright.sty    2002/05/25 v7.1 (WaS)
  t1cmbr.fd    1999/05/12 v7.3 (WaS)
supp-pdf.tex
 nameref.sty    2003/10/30 v2.20 Cross-referencing by name of section
beamerprueba.out
beamerprueba.out
omlcmbrm.fd    1999/05/12 v7.3 (WaS)
omscmbrs.fd    1999/05/12 v7.3 (WaS)
 ot1cmbr.fd    1999/05/12 v7.3 (WaS)
 ***********
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Beamer error undefined control sequence \mode<presentation>

Post by localghost »

RaulLeal wrote: I use Miktek 2.4
I am using the beamer distribution that comes with the package.
I will download a newer version of beamer to see if it improves.

So we have the solution. This old version of beamer doesn't know the \usetheme command. You can check that in its documentation by getting it with a shell command.

Code: Select all

texdoc beamer
But installing a new version of beamer won't help. There could be dependencies with other packages (especially pgf, xcolor, xkeyval, …), which have to be solved. MiKTeX 2.4 is obsolete and all repositories are closed. But you could install packages manually. I recommend to update to version 2.6 of the MiKTeX system.
RaulLeal
Posts: 4
Joined: Mon Jul 09, 2007 10:46 pm

Re: Beamer problem

Post by RaulLeal »

Thanks!!!

I installed Miktex 2.6 and now every thing is working fine.

Raul
Post Reply