How to hold a object on two slides?
Clash Royale CLAN TAG#URR8PPP
up vote
4
down vote
favorite
I'm working on an animation of "Odd Magic Square" with Loubere Method.
But I can't hold the number "2" with dashed outline square on the two slides!
How to?
The code:
documentclass[11pt]beamer
usepackage[utf8]inputenc
usepackage[T1]fontenc
usethemedefault
%usepackagelistings
usepackagetikz
begindocument
beginframe$n$- magic matrix % ================================================================
beginitemize[<+->]
item text1
item text2
item text3
enditemize
beginonlyenv<+->
begintikzpicture
tikzstylenormal=[fill=yellow!80!red]
tikzstyletesting=[fill=yellow!80!red, fill opacity=0.4, dashed]
tikzstyleredarrow=[->, thick, red]
foreach x in 0,1,2
foreach y in 0,1,2
draw[normal] (x, y) rectangle +(1, 1);
fill[fill opacity=0.1, fill=white] (-1, 3) rectangle +(1, 1);
only<+->
node at (1.5, 2.5) $1$;
only<+>
draw[testing] (2, 3) rectangle +(1, 1);
node at (2.5, 3.5) $2$;
only<+>
draw[redarrow] (2.5, 3.5) --(2.5, 0.8);
only<.->
node at (2.5, 0.5) $2$;
only<+>
draw[testing] (3, 1) rectangle +(1, 1);
node at (3.5, 1.5) $3$;
only<+>
draw[redarrow] (3.5, 1.5) --(0.8, 1.5);
only<.->
node at (0.5, 1.5) $3$;
only<+>
%draw[fill=white] (1, 2) rectangle +(1, 1);
draw[fill=red!80!black, fill opacity=0.4, draw=red, dashed] (1, 2) rectangle +(1, 1);
node at (1.8, 2.2) $4$;
only<+->
node at (0.5, 0.5) $4$;
endtikzpicture
endonlyenv
endframe
enddocument
tikz-pgf beamer
add a comment |Â
up vote
4
down vote
favorite
I'm working on an animation of "Odd Magic Square" with Loubere Method.
But I can't hold the number "2" with dashed outline square on the two slides!
How to?
The code:
documentclass[11pt]beamer
usepackage[utf8]inputenc
usepackage[T1]fontenc
usethemedefault
%usepackagelistings
usepackagetikz
begindocument
beginframe$n$- magic matrix % ================================================================
beginitemize[<+->]
item text1
item text2
item text3
enditemize
beginonlyenv<+->
begintikzpicture
tikzstylenormal=[fill=yellow!80!red]
tikzstyletesting=[fill=yellow!80!red, fill opacity=0.4, dashed]
tikzstyleredarrow=[->, thick, red]
foreach x in 0,1,2
foreach y in 0,1,2
draw[normal] (x, y) rectangle +(1, 1);
fill[fill opacity=0.1, fill=white] (-1, 3) rectangle +(1, 1);
only<+->
node at (1.5, 2.5) $1$;
only<+>
draw[testing] (2, 3) rectangle +(1, 1);
node at (2.5, 3.5) $2$;
only<+>
draw[redarrow] (2.5, 3.5) --(2.5, 0.8);
only<.->
node at (2.5, 0.5) $2$;
only<+>
draw[testing] (3, 1) rectangle +(1, 1);
node at (3.5, 1.5) $3$;
only<+>
draw[redarrow] (3.5, 1.5) --(0.8, 1.5);
only<.->
node at (0.5, 1.5) $3$;
only<+>
%draw[fill=white] (1, 2) rectangle +(1, 1);
draw[fill=red!80!black, fill opacity=0.4, draw=red, dashed] (1, 2) rectangle +(1, 1);
node at (1.8, 2.2) $4$;
only<+->
node at (0.5, 0.5) $4$;
endtikzpicture
endonlyenv
endframe
enddocument
tikz-pgf beamer
add a comment |Â
up vote
4
down vote
favorite
up vote
4
down vote
favorite
I'm working on an animation of "Odd Magic Square" with Loubere Method.
But I can't hold the number "2" with dashed outline square on the two slides!
How to?
The code:
documentclass[11pt]beamer
usepackage[utf8]inputenc
usepackage[T1]fontenc
usethemedefault
%usepackagelistings
usepackagetikz
begindocument
beginframe$n$- magic matrix % ================================================================
beginitemize[<+->]
item text1
item text2
item text3
enditemize
beginonlyenv<+->
begintikzpicture
tikzstylenormal=[fill=yellow!80!red]
tikzstyletesting=[fill=yellow!80!red, fill opacity=0.4, dashed]
tikzstyleredarrow=[->, thick, red]
foreach x in 0,1,2
foreach y in 0,1,2
draw[normal] (x, y) rectangle +(1, 1);
fill[fill opacity=0.1, fill=white] (-1, 3) rectangle +(1, 1);
only<+->
node at (1.5, 2.5) $1$;
only<+>
draw[testing] (2, 3) rectangle +(1, 1);
node at (2.5, 3.5) $2$;
only<+>
draw[redarrow] (2.5, 3.5) --(2.5, 0.8);
only<.->
node at (2.5, 0.5) $2$;
only<+>
draw[testing] (3, 1) rectangle +(1, 1);
node at (3.5, 1.5) $3$;
only<+>
draw[redarrow] (3.5, 1.5) --(0.8, 1.5);
only<.->
node at (0.5, 1.5) $3$;
only<+>
%draw[fill=white] (1, 2) rectangle +(1, 1);
draw[fill=red!80!black, fill opacity=0.4, draw=red, dashed] (1, 2) rectangle +(1, 1);
node at (1.8, 2.2) $4$;
only<+->
node at (0.5, 0.5) $4$;
endtikzpicture
endonlyenv
endframe
enddocument
tikz-pgf beamer
I'm working on an animation of "Odd Magic Square" with Loubere Method.
But I can't hold the number "2" with dashed outline square on the two slides!
How to?
The code:
documentclass[11pt]beamer
usepackage[utf8]inputenc
usepackage[T1]fontenc
usethemedefault
%usepackagelistings
usepackagetikz
begindocument
beginframe$n$- magic matrix % ================================================================
beginitemize[<+->]
item text1
item text2
item text3
enditemize
beginonlyenv<+->
begintikzpicture
tikzstylenormal=[fill=yellow!80!red]
tikzstyletesting=[fill=yellow!80!red, fill opacity=0.4, dashed]
tikzstyleredarrow=[->, thick, red]
foreach x in 0,1,2
foreach y in 0,1,2
draw[normal] (x, y) rectangle +(1, 1);
fill[fill opacity=0.1, fill=white] (-1, 3) rectangle +(1, 1);
only<+->
node at (1.5, 2.5) $1$;
only<+>
draw[testing] (2, 3) rectangle +(1, 1);
node at (2.5, 3.5) $2$;
only<+>
draw[redarrow] (2.5, 3.5) --(2.5, 0.8);
only<.->
node at (2.5, 0.5) $2$;
only<+>
draw[testing] (3, 1) rectangle +(1, 1);
node at (3.5, 1.5) $3$;
only<+>
draw[redarrow] (3.5, 1.5) --(0.8, 1.5);
only<.->
node at (0.5, 1.5) $3$;
only<+>
%draw[fill=white] (1, 2) rectangle +(1, 1);
draw[fill=red!80!black, fill opacity=0.4, draw=red, dashed] (1, 2) rectangle +(1, 1);
node at (1.8, 2.2) $4$;
only<+->
node at (0.5, 0.5) $4$;
endtikzpicture
endonlyenv
endframe
enddocument
tikz-pgf beamer
tikz-pgf beamer
asked 3 hours ago
xaero
434
434
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
You can play with the overlay specification of only
. See the code below.
documentclass[11pt]beamer
usepackage[utf8]inputenc
usepackage[T1]fontenc
usethemedefault
%usepackagelistings
usepackagetikz
begindocument
beginframe$n$- magic matrix % ================================================================
beginitemize[<+->]
item text1
item text2
item text3
enditemize
beginonlyenv<+->
begintikzpicture
tikzstylenormal=[fill=yellow!80!red]
tikzstyletesting=[fill=yellow!80!red, fill opacity=0.4, dashed]
tikzstyleredarrow=[->, thick, red]
foreach x in 0,1,2
foreach y in 0,1,2
draw[normal] (x, y) rectangle +(1, 1);
fill[fill opacity=0.1, fill=white] (-1, 3) rectangle +(1, 1);
only<+->
node at (1.5, 2.5) $1$;
only<.-+>
draw[testing] (2, 3) rectangle +(1, 1);
node at (2.5, 3.5) $2$;
only<.>
draw[redarrow] (2.5, 3.5) --(2.5, 0.8);
only<.->
node at (2.5, 0.5) $2$;
only<+>
only<.-+>
draw[testing] (3, 1) rectangle +(1, 1);
node at (3.5, 1.5) $3$;
only<.>
draw[redarrow] (3.5, 1.5) --(0.8, 1.5);
only<.->
node at (0.5, 1.5) $3$;
only<+>
%draw[fill=white] (1, 2) rectangle +(1, 1);
draw[fill=red!80!black, fill opacity=0.4, draw=red, dashed] (1, 2) rectangle +(1, 1);
node at (1.8, 2.2) $4$;
only<+->
node at (0.5, 0.5) $4$;
endtikzpicture
endonlyenv
endframe
enddocument
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
You can play with the overlay specification of only
. See the code below.
documentclass[11pt]beamer
usepackage[utf8]inputenc
usepackage[T1]fontenc
usethemedefault
%usepackagelistings
usepackagetikz
begindocument
beginframe$n$- magic matrix % ================================================================
beginitemize[<+->]
item text1
item text2
item text3
enditemize
beginonlyenv<+->
begintikzpicture
tikzstylenormal=[fill=yellow!80!red]
tikzstyletesting=[fill=yellow!80!red, fill opacity=0.4, dashed]
tikzstyleredarrow=[->, thick, red]
foreach x in 0,1,2
foreach y in 0,1,2
draw[normal] (x, y) rectangle +(1, 1);
fill[fill opacity=0.1, fill=white] (-1, 3) rectangle +(1, 1);
only<+->
node at (1.5, 2.5) $1$;
only<.-+>
draw[testing] (2, 3) rectangle +(1, 1);
node at (2.5, 3.5) $2$;
only<.>
draw[redarrow] (2.5, 3.5) --(2.5, 0.8);
only<.->
node at (2.5, 0.5) $2$;
only<+>
only<.-+>
draw[testing] (3, 1) rectangle +(1, 1);
node at (3.5, 1.5) $3$;
only<.>
draw[redarrow] (3.5, 1.5) --(0.8, 1.5);
only<.->
node at (0.5, 1.5) $3$;
only<+>
%draw[fill=white] (1, 2) rectangle +(1, 1);
draw[fill=red!80!black, fill opacity=0.4, draw=red, dashed] (1, 2) rectangle +(1, 1);
node at (1.8, 2.2) $4$;
only<+->
node at (0.5, 0.5) $4$;
endtikzpicture
endonlyenv
endframe
enddocument
add a comment |Â
up vote
2
down vote
You can play with the overlay specification of only
. See the code below.
documentclass[11pt]beamer
usepackage[utf8]inputenc
usepackage[T1]fontenc
usethemedefault
%usepackagelistings
usepackagetikz
begindocument
beginframe$n$- magic matrix % ================================================================
beginitemize[<+->]
item text1
item text2
item text3
enditemize
beginonlyenv<+->
begintikzpicture
tikzstylenormal=[fill=yellow!80!red]
tikzstyletesting=[fill=yellow!80!red, fill opacity=0.4, dashed]
tikzstyleredarrow=[->, thick, red]
foreach x in 0,1,2
foreach y in 0,1,2
draw[normal] (x, y) rectangle +(1, 1);
fill[fill opacity=0.1, fill=white] (-1, 3) rectangle +(1, 1);
only<+->
node at (1.5, 2.5) $1$;
only<.-+>
draw[testing] (2, 3) rectangle +(1, 1);
node at (2.5, 3.5) $2$;
only<.>
draw[redarrow] (2.5, 3.5) --(2.5, 0.8);
only<.->
node at (2.5, 0.5) $2$;
only<+>
only<.-+>
draw[testing] (3, 1) rectangle +(1, 1);
node at (3.5, 1.5) $3$;
only<.>
draw[redarrow] (3.5, 1.5) --(0.8, 1.5);
only<.->
node at (0.5, 1.5) $3$;
only<+>
%draw[fill=white] (1, 2) rectangle +(1, 1);
draw[fill=red!80!black, fill opacity=0.4, draw=red, dashed] (1, 2) rectangle +(1, 1);
node at (1.8, 2.2) $4$;
only<+->
node at (0.5, 0.5) $4$;
endtikzpicture
endonlyenv
endframe
enddocument
add a comment |Â
up vote
2
down vote
up vote
2
down vote
You can play with the overlay specification of only
. See the code below.
documentclass[11pt]beamer
usepackage[utf8]inputenc
usepackage[T1]fontenc
usethemedefault
%usepackagelistings
usepackagetikz
begindocument
beginframe$n$- magic matrix % ================================================================
beginitemize[<+->]
item text1
item text2
item text3
enditemize
beginonlyenv<+->
begintikzpicture
tikzstylenormal=[fill=yellow!80!red]
tikzstyletesting=[fill=yellow!80!red, fill opacity=0.4, dashed]
tikzstyleredarrow=[->, thick, red]
foreach x in 0,1,2
foreach y in 0,1,2
draw[normal] (x, y) rectangle +(1, 1);
fill[fill opacity=0.1, fill=white] (-1, 3) rectangle +(1, 1);
only<+->
node at (1.5, 2.5) $1$;
only<.-+>
draw[testing] (2, 3) rectangle +(1, 1);
node at (2.5, 3.5) $2$;
only<.>
draw[redarrow] (2.5, 3.5) --(2.5, 0.8);
only<.->
node at (2.5, 0.5) $2$;
only<+>
only<.-+>
draw[testing] (3, 1) rectangle +(1, 1);
node at (3.5, 1.5) $3$;
only<.>
draw[redarrow] (3.5, 1.5) --(0.8, 1.5);
only<.->
node at (0.5, 1.5) $3$;
only<+>
%draw[fill=white] (1, 2) rectangle +(1, 1);
draw[fill=red!80!black, fill opacity=0.4, draw=red, dashed] (1, 2) rectangle +(1, 1);
node at (1.8, 2.2) $4$;
only<+->
node at (0.5, 0.5) $4$;
endtikzpicture
endonlyenv
endframe
enddocument
You can play with the overlay specification of only
. See the code below.
documentclass[11pt]beamer
usepackage[utf8]inputenc
usepackage[T1]fontenc
usethemedefault
%usepackagelistings
usepackagetikz
begindocument
beginframe$n$- magic matrix % ================================================================
beginitemize[<+->]
item text1
item text2
item text3
enditemize
beginonlyenv<+->
begintikzpicture
tikzstylenormal=[fill=yellow!80!red]
tikzstyletesting=[fill=yellow!80!red, fill opacity=0.4, dashed]
tikzstyleredarrow=[->, thick, red]
foreach x in 0,1,2
foreach y in 0,1,2
draw[normal] (x, y) rectangle +(1, 1);
fill[fill opacity=0.1, fill=white] (-1, 3) rectangle +(1, 1);
only<+->
node at (1.5, 2.5) $1$;
only<.-+>
draw[testing] (2, 3) rectangle +(1, 1);
node at (2.5, 3.5) $2$;
only<.>
draw[redarrow] (2.5, 3.5) --(2.5, 0.8);
only<.->
node at (2.5, 0.5) $2$;
only<+>
only<.-+>
draw[testing] (3, 1) rectangle +(1, 1);
node at (3.5, 1.5) $3$;
only<.>
draw[redarrow] (3.5, 1.5) --(0.8, 1.5);
only<.->
node at (0.5, 1.5) $3$;
only<+>
%draw[fill=white] (1, 2) rectangle +(1, 1);
draw[fill=red!80!black, fill opacity=0.4, draw=red, dashed] (1, 2) rectangle +(1, 1);
node at (1.8, 2.2) $4$;
only<+->
node at (0.5, 0.5) $4$;
endtikzpicture
endonlyenv
endframe
enddocument
answered 2 hours ago
bmv
2,542824
2,542824
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f457837%2fhow-to-hold-a-object-on-two-slides%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password