Take the 2-minute tour ×
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 want to put a picture in one column, some text in the other, and beneath all that some more text in a beamer style presentation. My frame looks like this:

\begin{frame}
\frametitle{Svemir dominiran tvari}
\begin{columns}
    \begin{column}{0.5\textwidth}
        \begin{itemize}
        \flushleft{\includegraphics[width=0.5\textwidth]{btph.eps}}
        \end{itemize}
    \end{column}
    \begin{column}{0.5\textwidth}
        \begin{itemize}
        \item Barionska asimetrija se izražava omjerom broja bariona i fotona
            \begin{equation}
            \eta=\frac{n_b-n_{\bar{b}}}{n_\gamma}=6.1\pm 0.3\times 10^{-10}.
            \end{equation}
        \end{itemize}
    \end{column}
\end{columns}
\begin{itemize}
    \item $n_b\Rightarrow$ \quad gustoća broja (stanja) bariona\\
    \item $n_{\bar{b}}\Rightarrow$ \quad gustoća broja antibariona\\
    \item $n_\gamma\Rightarrow$ \quad gustoća broja fotona
    $\frac{\zeta(3)}{\pi^2}g_\star T^3$
\end{itemize}
\end{frame}

When I compile it I get this error:

Something's wrong--perhaps a missing \item. \end{frame}

I looked at the code (which I c/p from another presentation that worked) and it looks the same. So why won't it compile? I have 11pt font in presentation, so that more text could fit.

Is the amount of text the issue? :\

EDIT: I have removed the itemize stuff, but now nothing shows on the slide :\

I don't see a thing on a slide now :\

share|improve this question

1 Answer 1

up vote 3 down vote accepted

You have a \begin{itemize} and \end{itemize} without an \item:

After reducing your code to a MWE by commenting out sections of code, the problem is more obvious:

\documentclass{beamer}

\begin{document}
\begin{frame}
\frametitle{Svemir dominiran tvari}
\begin{columns}
    \begin{column}{0.5\textwidth}
        \begin{itemize}
        \flushleft{\includegraphics[width=0.5\textwidth]{btph.eps}}
            % <----- There is no \item within this itemize environment
        \end{itemize}
    \end{column}
\end{columns}
\end{frame}
\end{document}

After adding the \item (and \RequirePackage[demo]{graphicx} since I do not have the image) with the the full code, I get:

enter image description here

Code:

\RequirePackage[demo]{graphicx}
\documentclass{beamer}

\begin{document}
\begin{frame}
\frametitle{Svemir dominiran tvari}
\begin{columns}
    \begin{column}{0.5\textwidth}
        \begin{itemize}
        \item \flushleft{\includegraphics[width=0.5\textwidth]{btph.eps}}
        \end{itemize}
    \end{column}
    \begin{column}{0.5\textwidth}
        \begin{itemize}
        \item Barionska asimetrija se izražava omjerom broja bariona i fotona
            \begin{equation}
            \eta=\frac{n_b-n_{\bar{b}}}{n_\gamma}=6.1\pm 0.3\times 10^{-10}.
            \end{equation}
        \end{itemize}
    \end{column}
\end{columns}
\begin{itemize}
    \item $n_b\Rightarrow$ \quad gustoća broja (stanja) bariona\\
    \item $n_{\bar{b}}\Rightarrow$ \quad gustoća broja antibariona\\
    \item $n_\gamma\Rightarrow$ \quad gustoća broja fotona
    $\frac{\zeta(3)}{\pi^2}g_\star T^3$
\end{itemize}
\end{frame}
\end{document}
share|improve this answer
    
I feel so dumb right now xD Thanks, no errors this time :D Thank you very much ^^ (I'll put a right answer check in 2 minutes, apparently I clicked sth wrong and it won't let me xD) –  dingo_d May 13 '12 at 18:43
    
No problem. I have posted a few questions with Duh! type answers myself... –  Peter Grill May 13 '12 at 18:46
    
Ok, I figured out my problem. I mustn't compile with dvipdfm, I need to compile via dvips and then ps2pdf, now it works. Thanks again :) –  dingo_d May 13 '12 at 18:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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