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 have split my frame in two columns. The first column has an algorithm (interleaved with pause statements). The second column has a figure. Currently the figure shows at last (after hitting keys as many times as there are pause statements). How can I uncover the figure before any pause statements. Attached below is the psuedo code.

\begin{columns}[c]
\column{2.00in}
\begin{algorithmic}[1]
\STATE stmt1
\pause
\STATE stmt2 
\end{algorithmic}
\column{1.00in}
\begin{tikzpicture}
picture code
\end{tikzpicture}
\end{columns}
\end{frame}
share|improve this question

1 Answer 1

up vote 4 down vote accepted

If I understood correctly, you wonder that the figure appears before any statement of the algorithm. In this case, instead of adopting \pause you can use very easily the \visible command, specifying in which instant of time the object should appear.

For example:

\documentclass{beamer}
\usepackage{tikz}
\usepackage{algorithmic}
\usetheme{EastLansing}

\begin{document}
\begin{frame}{Title}
\begin{columns}[c]
\column{2.00in}
\begin{algorithmic}[1]
\visible<2->{
\STATE stmt1
}
\visible<3->{
\STATE stmt2 
}
\end{algorithmic}
\column{1.00in}
% appear at first
\visible<1->{
\begin{tikzpicture}
\draw(0,0)--(1,0);
\end{tikzpicture}
}
\end{columns}
\end{frame}

\end{document}

will lead to the following frames:

Image appears at first (simply a line)

Here the image appears at first.

Now also the first statement appears

Also the first statement appears.

All objects are there: image and algorithm's statements

All objects are displayed at last.

share|improve this answer
    
Thanks Claudio. This works perfect –  Sandeep May 21 '12 at 1:34
    
Hi Claudio! I am interested in make a beamer presentation using EastLansing theme. Can you help me, please?. I don't know what is happening, you know, I use \usetheme{EastLansing} and I am getting an error saying EastLansing not found. Do you know how to fix it? –  sgmart Oct 3 '12 at 0:06
    
@sgmart: Hi! As far as I know the EastLansing theme is part of the current version of Beamer, 3.22. Indeed, the beameruserguide version September 19, 2012 shows how to use this theme. I'll recommend you to update your distribution, because this probably fix the problem. Let me know if this solves. :) –  Claudio Fiandrino Oct 3 '12 at 7:21

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.