Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am running the following minimal example with beamer (windows 7, Miktex 2.9, all packages updated)

\documentclass{beamer}
\mode<presentation> {\usetheme{Darmstadt}}
\title{Fundamentals of Beamer}
\author{Author}
\institute{Department of Math, Main University}
\date{\today}

\begin{document}

\begin{frame}[t]
  \titlepage
\end{frame}

\begin{frame}[t]{Outline}
  \tableofcontents
\end{frame}

\section{Basics of Beamer}

\subsection{The Basics}

\begin{frame}[t]{The main Ideas of Beamer}
  Blah Blah....
  \begin{theorem}[\textbf{fancy}]
  This Theorem is very fancy.
  \end{theorem}
Blah Blah....
\end{frame}

\end{document}

I get the following error message repeatedly:

! Undefined control sequence.
\Gm@lmargin ->\Geom@lmargin 

l.8 \begin{document}

? 
! Missing number, treated as zero.
<to be read again> 
                   \hbox 
l.8 \begin{document}

? 
! Illegal unit of measure (pt inserted).
<to be read again> 
                   \hbox 
l.8 \begin{document}

? 

I am wondering what might be wrong.

share|improve this question
1  
I don't get any error with this minimal example. Are you sure you get the errors with this exact document? Anyway, the macros look like as they belong to the geometry package. – Martin Scharrer Sep 8 '11 at 16:02
1  
I am pretty sure I am running the same code. I know that the error message belongs geometry, I searched my path and I have only one copy of geometry.sty dated 12 sept 2010, which I believe is up to date. I am wondering if beamer uploads geometry? After I see the first error message I enter "q" to go to the batch mode. It generates the pdf file that looks OK, but the log file has many error messages. – Per Sep 8 '11 at 16:15
2  
Put a \listfiles at the end of your preamble and have a look on the log output to see how old the packages you are using are. Maybe you have some old TEXMF directory somewhere which holds some outdated files. You can see the file paths as well in the log file. – Martin Scharrer Sep 8 '11 at 16:24
1  
This error was caused by a new version of geometry that didn't include any more the command \Geom@lmargin; beamer has been fixed since then. I too am inclined to think that you have a stray version of beamer somewhere. – egreg Sep 8 '11 at 16:55
Thanks all for your help. You were right, there was an old version of beamer in the path that was detected and deleted. Everything is working fine now. – Per Sep 8 '11 at 20:31
show 1 more comment

closed as too localized by egreg, Andrew Stacey, dıʞsdoʇ, lockstep, Joseph Wright Sep 12 '11 at 19:19

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.