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 would like to prepare a presentation in beamer. I would like to include some shapes in some of the slides. I would like to ask what is the best way to do so. Is it better to draw the shapes using another software and then add them in the tex file, or is there any package that allows me to do so in the tex file? Thanks in advance.

share|improve this question
2  
See here: texample.net/tikz/examples –  Sigur Oct 28 '13 at 16:24
    
Thanks a lot @Sigur –  YiannaCo Oct 28 '13 at 16:31
add comment

1 Answer

up vote 8 down vote accepted

There are a few ways to do this- since your question was a little vague, I can't be sure if this is the kind of thing you want:

animation

It uses the very powerful and user-friendly tikz package. There are lots of other things and shapes that you can do with this package, this is just an example.

% arara: pdflatex
% !arara: animate: {delay: 60}
% !arara: indent: {overwrite: yes}
\documentclass{beamer}

\usepackage{tikz}
\usetikzlibrary{positioning}
\usetikzlibrary{shapes}

\begin{document}



\begin{frame}

    \makebox[\textwidth]{%
        \begin{tikzpicture}[every node/.append style={cloud,draw,double,very thick,align=center}]
            \node[fill=red!20, draw=red,minimum width=1cm,minimum height=1.5cm,cloud puffs=10, aspect=2.0] (installation){1. Installation\\ \& easy document};
            \visible<2->{\node[cloud,below right=of installation,draw=blue,fill=blue!20, cloud puffs=13, aspect=1.3](buildingblocks)    {2. Building\\ blocks};}
            \visible<3->{\node[left=0.75cm of buildingblocks, draw=yellow,fill=yellow!20, minimum height=1.5cm, cloud puffs=17, aspect=2](tables){3. Tables\\\& floats};}
            \visible<4->{\node[left=0.75cm of tables, draw=green,fill=green!20, cloud puffs=13, aspect=3](figures){4. Home-made \\ figures};}
            \visible<5->{\node[left=.3cm of installation, draw=orange,fill=orange!30, cloud puffs=12, aspect=2.3]{5. Big documents\\\& presentations};}
        \end{tikzpicture}
    }

\end{frame}

\end{document}
share|improve this answer
1  
Thanks a lot for the example. –  YiannaCo Oct 28 '13 at 16:34
    
Nice. Did you already have this code or you typed it now? +1. –  Sigur Oct 28 '13 at 16:34
4  
@Sigur I must confess, I had the code already from a conference presentation earlier this year :) –  cmhughes Oct 28 '13 at 16:34
2  
+1. arara: animate: {delay: 60}? Wow. Chris, can you please email the arara rule to me for that?. –  Harish Kumar Oct 28 '13 at 22:54
    
@HarishKumar thanks! here's a link to the rule: arara: problem with animate.yaml will be in touch :) –  cmhughes Oct 29 '13 at 2:46
add comment

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.