Document ClassesBeamer & Columns

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
OphTeX
Posts: 7
Joined: Wed Jan 19, 2011 7:24 pm

Beamer & Columns

Post by OphTeX »

Hi!

I would like to write my first presentation with beamer, but have encountered problems. I'm using KUbuntu 10.10 with Kile. I can normally create slides without trouble, the problems start, when I try to part the page to put pictures in it. If I try this

Code: Select all

\documentclass{beamer}
\mode<presentation>

\usepackage[utf8x]{inputenc}
\usepackage{default}

\begin{document}

\begin{frame}{Test}

\begin{columns}[c]

\column{2.5cm}

\begin{itemize}
\item One Item
\item Another Item
\end{itemize}

\column{3.5cm}
\framebox{\includegraphics[width=1.5cm]{flower}}
\end{columns}
 
\end{frame}

\begin{frame}

 \begin{columns}[t]

\begin{column}{5cm}

Two\\lines.

\end{column}

\begin{column}{5cm}

One line (but aligned).

\end{column}


\end{columns}

\end{frame}

\end{document}
Kile produces only empty pages (just the slide title appears). As you can see, this even happens without pictures, the column environment alone causes this. I have really looked into this, but everywhere in the internet columns are treated that way and seem to work fine.

Can anybody please tell me what's wrong? Thank you!

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Beamer & Columns

Post by frabjous »

Your sample works for me.
beam.png
beam.png (5.57 KiB) Viewed 4209 times
I would try deleting all the auxiliary files (.aux, .nav, etc.) and trying again. If you still have problems, post your .log file here, perhaps adding \listfiles to the code to get a list of the files versions put in the log.
OphTeX
Posts: 7
Joined: Wed Jan 19, 2011 7:24 pm

Re: Beamer & Columns

Post by OphTeX »

That's very strange indeed, since it isn't working on my lappy too...

Thanks for looking into this, deleting the files did NOT change anything, so here's my log.
Attachments
Test.log
(34.6 KiB) Downloaded 316 times
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Beamer & Columns

Post by frabjous »

Hmm. It's not clear from the log what the problem is. How are you viewing the result? Are you converting to PS or PDF first? Viewing in Okular?

One difference is that I was using pdflatex and you are using plain latex. I couldn't tell from your sample what kind of file "flower" was, so I just used a .jpg. I wonder if pdflatex would work better. Could you try converting flower.eps to flower.pdf (you can do this by running

epstopdf flower.eps

on the command line.) Then try compiling with PDFLaTeX and see if that works?

Another difference is I was using TeXlive 2010, and you're using TeXlive 2009, and I know there were some issues between beamer and TL 2009 (though I thought it resulted in a segfault, which you don't seem to be having).
OphTeX
Posts: 7
Joined: Wed Jan 19, 2011 7:24 pm

Re: Beamer & Columns

Post by OphTeX »

Thank you, I'll try to update to texlive2010 then since I've already tried it with pdfLatex as well. If the problem persists I will be here. I'm converting Latex-DVI-Pdf and viewing in Okular, yes. I will try and convert the picture though.

Thanks again.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Beamer & Columns

Post by frabjous »

Just to be clear, you get the problem even if you completely remove the first frame environment altogether?
OphTeX
Posts: 7
Joined: Wed Jan 19, 2011 7:24 pm

Re: Beamer & Columns

Post by OphTeX »

Hmm... it seems I have it figured out, I have no idea what the problem was (is) however. After setting the build settings to "Latex-DVItoPS-PStoPDF-viewPDF" it seems to work now. Earlier I found out, that the text (without the pictures though) was actually appearing in the dvi document, the main problem must have been the conversion from dvi to pdf.

Whatever, thank you for your time.

regards
Post Reply