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 am using beamer for creating my presentation. Sometime I create elementary objects (like geometrical shapes and arrows) by using tikzpicture and I place them in the slide by using textblock.

I would like to know if there is a way of bonding different elements together (like text, equations and geometrical objects), so that I can move them easily around the slide as one piece.

share|improve this question
    
You can place them in a scope and give [shift={(x,y)}] option to the scope. –  percusse Jan 16 '13 at 0:07
1  
I think you should go a little bit more in detail: how freely you want to move your elements? Do you want to reuse those grouped objects more than once? And why is textpos not longer sufficient? This could be related: tex.stackexchange.com/questions/85269/… –  bloodworks Jan 16 '13 at 9:09

1 Answer 1

The way I go about this usually is to compile such elements in a separate file, creating a PDF file which I can then put into the presentation via \includegraphics. It's especially convenient if you reuse the same illustration made up by several components more than once.

My minimum template example for such a figure file is as follows:

\documentclass[11pt]{article}
\usepackage{tikz}
\usepackage[graphics,tightpage,active]{preview}
\PreviewEnvironment{tikzpicture}
\pagestyle{empty}
\begin{document}
\sffamily
\begin{tikzpicture}
  \draw (0,0) circle (2cm);
\end{tikzpicture}
\end{document}

The use of the preview package will crop the PDF to exactly the dimensions of the drawn picture. I am using \sffamily here because it mostly looks better for presentations, but depending on usage it could also be left out.

share|improve this answer

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.