5

I am writing a poster in LaTeX using beamerposter. It is a two-columns poster. I am experiencing the following problem: if I add and itemize in a section, the compiler complains that item is a undefined control sequence (but the resulting pdf is ok). Here is the code:

\documentclass[]{beamer} 
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage[orientation=portrait,size=a0,debug]{beamerposter} 
\usepackage{tabularx}
\usepackage{multicol}
\usepackage{lipsum}

\title[SHORT TITLE]
{MY COOL POSTER}
\author{First Last \inst{1}}
\institute{ 
  \inst{1} Super University, Italy 
}

\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{headline}{
  \leavevmode
  \vskip 5em
  \begin{center}
    \begin{tabular}[c]{ >{\centering}m{.2\linewidth}
        >{\centering}m{.5\linewidth} >{\centering}m{.2\linewidth}}
      \multicolumn{3}{c}{
      {\VeryHuge \inserttitle}
      } \\ [2em]
      \includegraphics[width=.5\linewidth]{logo}
   & \begin{minipage}[c]{1\linewidth}
     \begin{center}
       \LARGE{\insertauthor}\\[1ex]
       \large{\insertinstitute}\\[1ex]
     \end{center}
   \end{minipage}
   &  \includegraphics[width=.5\linewidth]{logo} \\
    \end{tabular}
  \end{center}
  \vskip 1em
  \begin{center}
    \rule{0.9\textwidth}{.4em}
  \end{center}
  \vskip 5em
}
\setbeamertemplate{footline}{
  \leavevmode
  \begin{center}
    \rule{0.9\textwidth}{.4em}
    \vskip 2em
    {\LARGE \insertshorttitle}
    \vskip 2em
  \end{center}
}

\renewcommand{\section}[1]{
\par\vskip\medskipamount%
%
\begin{center}
  {\textbf{\Large #1}}
\rule{\columnwidth}{.1em}
\end{center}
}

\begin{document}
\centering
\begin{minipage}[c]{0.92\linewidth}
  \begin{multicols}{2}[\setlength{\columnsep}{3.5em}]

    \section{Section 1}
    {\Large 
      \begin{itemize}
      \item First Item
      \item Second Item is considerably longer
      \item Third Item is normal
      \item Fourth Item is totally the longest one: it's even longer than what you think!
      \end{itemize}
    }
    \vskip 2em
    \columnbreak

    \section{Section 2}
    {\Large \lipsum[1]} \vskip 2em

    \end{multicols}
  \end{minipage}
\end{document}

and the compiler's output:

ERROR: Undefined control sequence.

--- TeX said ---
\\itemize ...ix item}##1}}}}} \fi \beamer@cramped 
                                                  \raggedright \beamer@first...
l.69       \item
                 First Item
--- HELP ---
TeX encountered an unknown command name. You probably misspelled the
name. If this message occurs when a LaTeX command is being processed,
the command is probably in the wrong place---for example, the error
can be produced by an \item command that's not inside a list-making
environment. The error can also be caused by a missing \documentclass
command.

Any advice? Thanks.

  • 3
    that says \beamer@cramped is not defined, not that \item is not defined. – David Carlisle Jun 24 '15 at 16:30
  • I see. Great. I'm kind of a noob and still have some problems in reading compiler's output. – petrux Jun 24 '15 at 16:32
  • To quote from the manual "The error locator line is broken at the point where TeX stopped reading input." – Au101 Jun 24 '15 at 16:58
4

If you wish to set any content in beamer, you need to put it inside a frame:

enter image description here

\documentclass{beamer}
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage[orientation=portrait,size=a0]{beamerposter} 
\usepackage{tabularx}
\usepackage{multicol}
\usepackage{lipsum}

\title[SHORT TITLE]
{MY COOL POSTER}
\author{First Last \inst{1}}
\institute{ 
  \inst{1} Super University, Italy 
}

\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{headline}{
  \leavevmode
  \vskip 5em
  \begin{center}
    \begin{tabular}[c]{ >{\centering}m{.2\linewidth}
        >{\centering}m{.5\linewidth} >{\centering}m{.2\linewidth}}
      \multicolumn{3}{c}{
      {\VeryHuge \inserttitle}
      } \\ [2em]
      \includegraphics[width=.5\linewidth]{example-image}
   & \begin{minipage}[c]{1\linewidth}
     \begin{center}
       \LARGE{\insertauthor}\\[1ex]
       \large{\insertinstitute}\\[1ex]
     \end{center}
   \end{minipage}
   &  \includegraphics[width=.5\linewidth]{example-image} \\
    \end{tabular}
  \end{center}
  \vskip 1em
  \begin{center}
    \rule{0.9\textwidth}{.4em}
  \end{center}
  \vskip 5em
}
\setbeamertemplate{footline}{
  \leavevmode
  \begin{center}
    \rule{0.9\textwidth}{.4em}
    \vskip 2em
    {\LARGE \insertshorttitle}
    \vskip 2em
  \end{center}
}

\renewcommand{\section}[1]{
\par\vskip\medskipamount%
%
\begin{center}
  {\textbf{\Large #1}}
\rule{\columnwidth}{.1em}
\end{center}
}

\begin{document}

\begin{frame}
\centering
\begin{minipage}[c]{0.92\linewidth}
  \begin{multicols}{2}[\setlength{\columnsep}{3.5em}]

    \section{Section 1}
    {\Large 
      \begin{itemize}
      \item First Item
      \item Second Item is considerably longer
      \item Third Item is normal
      \item Fourth Item is totally the longest one: it's even longer than what you think!
      \end{itemize}
    }
    \vskip 2em
    \columnbreak

    \section{Section 2}
    {\Large \lipsum[1]} \vskip 2em

    \end{multicols}
  \end{minipage}

\end{frame}
\end{document}
  • I got it! Is there any way to put the frame on top of the poster? – petrux Jun 24 '15 at 16:53
  • @petrux: Use \begin{frame}[t]... – Werner Jun 24 '15 at 16:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.