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 need a nice way to show sequential swaps of two elements in verbatim. By swaps I mean two elements changing their positions with each other. Is there any specific command in beamer to animate this? Should it be one frame or several frames? Here is my MWE:

\documentclass{beamer}

\usepackage{beamerthemesplit}
\usepackage{listings}
\usepackage[absolute,overlay]{textpos}

\begin{document}
\begin{frame}[fragile]
\begin{verbatim}
q E(x) A
q E(y) B
q Ok() B
q Ok() A
q D() B
q Ok(x) B
q D() A
q Ok(y) A
q E(z) A
\end{verbatim}
\end{frame}
\end{document}
share|improve this question

closed as unclear what you're asking by Joseph Wright Aug 6 '13 at 7:05

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Please add a full minimal working example (MWE). Also can you explain what swap, sequential swap etc. is and how this should be animated? –  percusse Feb 2 '13 at 1:41
    
I added MWE and explained what I mean by swaps. I need a nice visualisation of elements changing positions, so that it is clear which element changed its position with which. –  damluar Feb 2 '13 at 8:42
1  
I wonder if you are still interested in this issue. If so, could you please elaborate a little more your description of the problem? For example, are the elements placed in some sort of array? –  Gonzalo Medina Mar 16 '13 at 20:41
    
I'm really not clear on what the output should look like: I think we need some form of ASCII-art mock up to have a chance of helping here. –  Joseph Wright Aug 6 '13 at 7:06
add comment

Browse other questions tagged or ask your own question.