Shifting a scope has no effect
<algorithms <at> gmx.de>
2007-09-05 18:45:14 GMT
Hello,
does anybody known why the scope-shifting done between the
two lines of comment signs below has no effect? What do I
have to do to achieve my aim of placing the uncoloured
node in the second frame at the same position as the uncoloured
node in the first one? (The shift would accomplish that, because
then (0:0) would equal " (0:0) + (7,7) ".
\documentclass[draft]{beamer}
\usetheme{Frankfurt}
\setbeamercolor{background canvas}{bg=blue!5}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{tikz}
\begin{document}
\tikzstyle{w}=[circle,draw=black, fill=white,
inner sep=0pt, minimum size = 4mm]
\tikzstyle{r}=[circle,draw=black, fill=red,
inner sep=0pt, minimum size = 4mm]
\tikzstyle{b}=[circle,draw=black, fill=blue,
inner sep=0pt, minimum size = 4mm]
\tikzstyle{g}=[circle,draw=black, fill=green,
inner sep=0pt, minimum size = 4mm]
\tikzstyle{l}=[circle,draw=black, fill=yellow,
inner sep=0pt, minimum size = 4mm]
\frame
{
\begin{tikzpicture}
\node (-1) at (3,7) {};
\node[r] (0) at (5,7) {} edge (-1);
\node[w] (1) at (7,7) {} edge (0);
\node[b] (2) at (9,7) {} edge (1);
\node (3) at (11,7) {} edge (2);
\only<2>
{
\node[g] (1) at (7,7) {} edge (0);
}
\end{tikzpicture}
}
\frame
{
\begin{tikzpicture}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{scope}[shift={(7,7)}]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\node[w] (0) at (0:0) {};
\node[r] (1) at (120:1) {} edge (0);
\node[g] (2) at (240:1) {} edge (0);
\node[b] (3) at (360:1) {} edge (0);
\node (11) at (120:2) {} edge (1);
\node (21) at (240:2) {} edge (2);
\node (31) at (360:2) {} edge (3);
\only<2>
{
\node[l] (1) at (0:0) {};
}
\end{scope}
\end{tikzpicture}
}
\end{document}
Thank you very much!
--
--
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/