Animate an airplane in Beamer
For my (beamer) presentation (relating to airplanes) I want an animation of an airplane. I was hoping there would be a way for the airplane to move across the screen (or any other motion will do as well ). For instance, see 09:45 in this video moving airplane in powerpoint The airplane can look like this , feel free to include any image of airplane.
This is all I have right now (a simple image of airplane in beamer template)
documentclass[ignorenonframetext]{beamer}
usepackage{fontawesome}
mode<presentation>
{usetheme{Singapore}
setbeamercovered{transparent}
}
usepackage[english]{babel}
title{Beamer Example}
author{Author}
subject{Presentation Programs}
institute[ University]{
Department of XZ\
University}
begin{document}
section{Outline}
frame[label=exampleframe]{
frametitle{Example}
faPlane
}
end{document}
beamer animations
add a comment |
For my (beamer) presentation (relating to airplanes) I want an animation of an airplane. I was hoping there would be a way for the airplane to move across the screen (or any other motion will do as well ). For instance, see 09:45 in this video moving airplane in powerpoint The airplane can look like this , feel free to include any image of airplane.
This is all I have right now (a simple image of airplane in beamer template)
documentclass[ignorenonframetext]{beamer}
usepackage{fontawesome}
mode<presentation>
{usetheme{Singapore}
setbeamercovered{transparent}
}
usepackage[english]{babel}
title{Beamer Example}
author{Author}
subject{Presentation Programs}
institute[ University]{
Department of XZ\
University}
begin{document}
section{Outline}
frame[label=exampleframe]{
frametitle{Example}
faPlane
}
end{document}
beamer animations
add a comment |
For my (beamer) presentation (relating to airplanes) I want an animation of an airplane. I was hoping there would be a way for the airplane to move across the screen (or any other motion will do as well ). For instance, see 09:45 in this video moving airplane in powerpoint The airplane can look like this , feel free to include any image of airplane.
This is all I have right now (a simple image of airplane in beamer template)
documentclass[ignorenonframetext]{beamer}
usepackage{fontawesome}
mode<presentation>
{usetheme{Singapore}
setbeamercovered{transparent}
}
usepackage[english]{babel}
title{Beamer Example}
author{Author}
subject{Presentation Programs}
institute[ University]{
Department of XZ\
University}
begin{document}
section{Outline}
frame[label=exampleframe]{
frametitle{Example}
faPlane
}
end{document}
beamer animations
For my (beamer) presentation (relating to airplanes) I want an animation of an airplane. I was hoping there would be a way for the airplane to move across the screen (or any other motion will do as well ). For instance, see 09:45 in this video moving airplane in powerpoint The airplane can look like this , feel free to include any image of airplane.
This is all I have right now (a simple image of airplane in beamer template)
documentclass[ignorenonframetext]{beamer}
usepackage{fontawesome}
mode<presentation>
{usetheme{Singapore}
setbeamercovered{transparent}
}
usepackage[english]{babel}
title{Beamer Example}
author{Author}
subject{Presentation Programs}
institute[ University]{
Department of XZ\
University}
begin{document}
section{Outline}
frame[label=exampleframe]{
frametitle{Example}
faPlane
}
end{document}
beamer animations
beamer animations
edited 12 hours ago
GermanShepherd
asked 12 hours ago
GermanShepherdGermanShepherd
471216
471216
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
Example using Fontawesome plane (click on the image to see animation):
documentclass{beamer}
%documentclass[dvisvgm,preview]{standalone} % dvisvgm --zoom=-1 --bbox=preview
usepackage{fontawesome}
usepackage{tikz,animate}
begin{document}
begin{frame}{Move along path}
%begin{preview}%
begin{animateinline}[autoplay,loop,controls]{24}
multiframe{160}{rAng=110+-0.25,rSlpe=-25+-0.25}{%
begin{tikzpicture}[scale=0.85]
useasboundingbox[shift={(-1,0)}] (110:15) arc [start angle=110,end angle=70,radius=15] -- ++(2,0) -- ++(0,-0.5);
draw (110:15) arc [start angle=110,end angle=70,radius=15];
node[rotate=rSlpe, at=(rAng:15),inner sep=0pt, outer sep=0pt] {makebox[0pt]{faPlane}};
end{tikzpicture}}
end{animateinline}%
%end{preview}
end{frame}
end{document}
1
You need Acrobat Reader as PDF viewer.
– AlexG
10 hours ago
1
Thanks @AlexG. I'll have to install it then. Wont any other debian friendly PDF Viewer do?
– GermanShepherd
10 hours ago
1
@GermanShepherd there are a few pdf viewers that have good emulation of adobe internals on windows each adobe collaborator may have some good features the better ones are bluebeam and foxit and the lightest contender are the tracker products most of those 3 have products that should handle this form of animation well
– KJO
10 hours ago
2
Firefox, Chromium. In the case of SVG output. (As animation in my answer.)
– AlexG
10 hours ago
1
@AlexG, Firefox does render the image animation. I 'll still need Acrobat/ some other PDF Viewer for my presentation I believe. I want the plane to fly when the slide is loaded.
– GermanShepherd
9 hours ago
|
show 4 more comments
With decorations.markings
you can transport the plane along any path and it will always be rotated to be a tangent of the path (without you having to do that manually).
documentclass[ignorenonframetext]{beamer}
usepackage{fontawesome}
mode<presentation>
{usetheme{Singapore}
setbeamercovered{transparent}
}
usepackage[english]{babel}
usepackage{tikz}
usetikzlibrary{decorations.markings,calc}
title{Beamer Example}
author{Author}
subject{Presentation Programs}
institute[ University]{
Department of XZ\
University}
newcountmyangle
begin{document}
section{Outline}
begin{frame}[t]
frametitle{Example}
transduration{4}
animate<2-21>
animatevalue<2-21>{myangle}{0}{19}
begin{tikzpicture}
tikzset{pics/.cd,
plane/.style={code={fill (-0.6,0.2) -- (-0.5,0) -- (-0.6,-0.2)
-- (-0.4,-0.2) -- (-0.3,-0.1)-- (-0.1,-0.15) -- (-0.2,-0.5) -- (00.05,-0.5)
-- (0.15,-0.2) to[out=0,in=-90] (0.5,0) to[out=90,in=180] (0.15,0.2)
-- (00.05,0.5) -- (-0.2,0.5) -- (-0.1,0.15) -- (-0.3,0.1) -- (-0.4,0.2); }}}
path[use as bounding box] (-5.5,-4.5) rectangle (2.5,3.5);
draw[postaction={decorate,decoration={markings,
mark=at position myangle/20 with {path let p1=($(current bounding
box.east)-(current bounding box.west)$),
n1={-atan2(y1,x1)} in pic[rotate=n1]{plane};}}}] (-5,0) to (2,0) arc(90:-180:2)
--++(0,5);
end{tikzpicture}
end{frame}
end{document}
This uses the beamer built-in animation facilities (as in Hafid's answer), but can be combined with animateinline
(see Raaja's answer and AlexG's answer).
The animated gif was created via
convert -density 300 -delay 34 -loop 0 -alpha remove multipage.pdf animated.gif
as explained in this great answer.
Or a 3D like version where the plane flies out of the beamer plane. (Before giving the presentation, please contact the organizers for a safety briefing. ;-)
documentclass[ignorenonframetext]{beamer}
mode<presentation>
{usetheme{Singapore}
setbeamercovered{transparent}
}
usepackage[english]{babel}
usepackage{tikz}
usetikzlibrary{decorations.markings,calc}
title{Beamer Example}
author{Author}
subject{Presentation Programs}
institute[ University]{
Department of XZ\
University}
newcountmydist
begin{document}
section{Outline}
begin{frame}[t]
frametitle{Example}
transduration{4}
animate<2-22>
animatevalue<2-22>{mydist}{0}{20}
begin{tikzpicture}
tikzset{pics/.cd,
plane/.style={code={fill (-0.6,0.2) -- (-0.5,0) -- (-0.6,-0.2)
-- (-0.4,-0.2) -- (-0.3,-0.1)-- (-0.1,-0.15) -- (-0.2,-0.5) -- (00.05,-0.5)
-- (0.15,-0.2) to[out=0,in=-90] (0.5,0) to[out=90,in=180] (0.15,0.2)
-- (00.05,0.5) -- (-0.2,0.5) -- (-0.1,0.15) -- (-0.3,0.1) -- (-0.4,0.2); }}}
path[use as bounding box] (-5.25,-4.5) rectangle (2.25,3.5);
draw[postaction={decorate,decoration={markings,
mark=at position mydist/20 with {path let p1=($(current bounding
box.east)-(current bounding box.west)$),
n1={-atan2(y1,x1)} in (0,0)
pic[rotate=n1,scale={0.3+0.7*sin(9*mydist)},gray!20]{plane}
(${0.01+0.04*sin(9*mydist)}*($(current bounding
box.north east)-(current bounding box.south west)$)$)
pic[rotate=n1,scale={0.3+0.7*sin(9*mydist)}]{plane};}}}] (-5,0) to (2,0) arc(90:-180:2)
--++(0,5);
end{tikzpicture}
end{frame}
end{document}
neat as usual and only niggle is the shift of focus at start :-) However my question is out of interest what steps did you use to convert to gif ?
– KJO
5 hours ago
@KJO I added that information (and also removed the initial kick;-).
– marmot
5 hours ago
+1 more and more if I could
– KJO
5 hours ago
Certainly the best solution here. +1
– AlexG
5 hours ago
2
@HafidBoukhoulda "The animated gif was created viaconvert -density 300 -delay 34 -loop 0 -alpha remove multipage.pdf animated.gif
as explained in this great answer".
– marmot
5 hours ago
|
show 6 more comments
A starting point for your pursuit:
documentclass[ignorenonframetext]{beamer}
usepackage{fontawesome}
mode<presentation>
{usetheme{Singapore}
setbeamercovered{transparent}
}
usepackage[english]{babel}
title{Beamer Example}
author{Author}
subject{Presentation Programs}
institute[ University]{
Department of XZ\
University}
%% you need these
usepackage{tikz}
usetikzlibrary{positioning, arrows}
usepackage{animate}
begin{document}
section{Outline}
frame[label=exampleframe]{
frametitle{Example}
faPlane
}
begin{frame}[c]
begin{center}
pgfmathtruncatemacroN{10}
begin{animateinline}[autoplay]{5}
multiframe{6}{iPosition=0+1}{
begin{tikzpicture}
node[circle,draw=black] (t1) at (0,0) {};
node (tx) at (iPosition,0) {rotatebox{-45}{faPlane}};
draw[-] (t1.center) -- (tx.center);
node[circle,draw=black] (t2) at (5,0) {};
end{tikzpicture}
}
end{animateinline}
end{center}
end{frame}
end{document}
PS With @marmot's
suggestion:
1
Thank you @Raaja. This seems good to me.. I 'll try to play around with this.
– GermanShepherd
10 hours ago
1
@Raaja a dirty way for make a .gif is using a screen capture software like Apowersoft
– vi pa
9 hours ago
@GermanShepherd You are welcome!
– Raaja
9 hours ago
@vipa I will try to play with that, thnx for the suggestion ;)
– Raaja
9 hours ago
add a comment |
Another solution using animate
command provided by the beamer
package
documentclass[ignorenonframetext]{beamer}
usepackage{fontawesome}
usepackage{tikz}
mode<presentation>
{usetheme{Singapore}
setbeamercovered{transparent}
}
usepackage[english]{babel}
title{Beamer Example}
author{Author}
subject{Presentation Programs}
institute[ University]{
Department of XZ\
University}
begin{document}
section{Outline}
frame[label=exampleframe]{
frametitle{Example}
See the plane flying
newcountp
animate<2-10>
animatevalue<2-10>{p}{0}{100}
begin{tikzpicture}
path(0,0)rectangle(0.75paperwidth,-0.75paperheight);
path[draw](0,0)..controls +(30:2) and +(40:2)..+(4,-1) node [pos=p/100,sloped,rotate=-45,allow upside down]{faPlane};
end{tikzpicture}
}
end{document}
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f475463%2fanimate-an-airplane-in-beamer%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
Example using Fontawesome plane (click on the image to see animation):
documentclass{beamer}
%documentclass[dvisvgm,preview]{standalone} % dvisvgm --zoom=-1 --bbox=preview
usepackage{fontawesome}
usepackage{tikz,animate}
begin{document}
begin{frame}{Move along path}
%begin{preview}%
begin{animateinline}[autoplay,loop,controls]{24}
multiframe{160}{rAng=110+-0.25,rSlpe=-25+-0.25}{%
begin{tikzpicture}[scale=0.85]
useasboundingbox[shift={(-1,0)}] (110:15) arc [start angle=110,end angle=70,radius=15] -- ++(2,0) -- ++(0,-0.5);
draw (110:15) arc [start angle=110,end angle=70,radius=15];
node[rotate=rSlpe, at=(rAng:15),inner sep=0pt, outer sep=0pt] {makebox[0pt]{faPlane}};
end{tikzpicture}}
end{animateinline}%
%end{preview}
end{frame}
end{document}
1
You need Acrobat Reader as PDF viewer.
– AlexG
10 hours ago
1
Thanks @AlexG. I'll have to install it then. Wont any other debian friendly PDF Viewer do?
– GermanShepherd
10 hours ago
1
@GermanShepherd there are a few pdf viewers that have good emulation of adobe internals on windows each adobe collaborator may have some good features the better ones are bluebeam and foxit and the lightest contender are the tracker products most of those 3 have products that should handle this form of animation well
– KJO
10 hours ago
2
Firefox, Chromium. In the case of SVG output. (As animation in my answer.)
– AlexG
10 hours ago
1
@AlexG, Firefox does render the image animation. I 'll still need Acrobat/ some other PDF Viewer for my presentation I believe. I want the plane to fly when the slide is loaded.
– GermanShepherd
9 hours ago
|
show 4 more comments
Example using Fontawesome plane (click on the image to see animation):
documentclass{beamer}
%documentclass[dvisvgm,preview]{standalone} % dvisvgm --zoom=-1 --bbox=preview
usepackage{fontawesome}
usepackage{tikz,animate}
begin{document}
begin{frame}{Move along path}
%begin{preview}%
begin{animateinline}[autoplay,loop,controls]{24}
multiframe{160}{rAng=110+-0.25,rSlpe=-25+-0.25}{%
begin{tikzpicture}[scale=0.85]
useasboundingbox[shift={(-1,0)}] (110:15) arc [start angle=110,end angle=70,radius=15] -- ++(2,0) -- ++(0,-0.5);
draw (110:15) arc [start angle=110,end angle=70,radius=15];
node[rotate=rSlpe, at=(rAng:15),inner sep=0pt, outer sep=0pt] {makebox[0pt]{faPlane}};
end{tikzpicture}}
end{animateinline}%
%end{preview}
end{frame}
end{document}
1
You need Acrobat Reader as PDF viewer.
– AlexG
10 hours ago
1
Thanks @AlexG. I'll have to install it then. Wont any other debian friendly PDF Viewer do?
– GermanShepherd
10 hours ago
1
@GermanShepherd there are a few pdf viewers that have good emulation of adobe internals on windows each adobe collaborator may have some good features the better ones are bluebeam and foxit and the lightest contender are the tracker products most of those 3 have products that should handle this form of animation well
– KJO
10 hours ago
2
Firefox, Chromium. In the case of SVG output. (As animation in my answer.)
– AlexG
10 hours ago
1
@AlexG, Firefox does render the image animation. I 'll still need Acrobat/ some other PDF Viewer for my presentation I believe. I want the plane to fly when the slide is loaded.
– GermanShepherd
9 hours ago
|
show 4 more comments
Example using Fontawesome plane (click on the image to see animation):
documentclass{beamer}
%documentclass[dvisvgm,preview]{standalone} % dvisvgm --zoom=-1 --bbox=preview
usepackage{fontawesome}
usepackage{tikz,animate}
begin{document}
begin{frame}{Move along path}
%begin{preview}%
begin{animateinline}[autoplay,loop,controls]{24}
multiframe{160}{rAng=110+-0.25,rSlpe=-25+-0.25}{%
begin{tikzpicture}[scale=0.85]
useasboundingbox[shift={(-1,0)}] (110:15) arc [start angle=110,end angle=70,radius=15] -- ++(2,0) -- ++(0,-0.5);
draw (110:15) arc [start angle=110,end angle=70,radius=15];
node[rotate=rSlpe, at=(rAng:15),inner sep=0pt, outer sep=0pt] {makebox[0pt]{faPlane}};
end{tikzpicture}}
end{animateinline}%
%end{preview}
end{frame}
end{document}
Example using Fontawesome plane (click on the image to see animation):
documentclass{beamer}
%documentclass[dvisvgm,preview]{standalone} % dvisvgm --zoom=-1 --bbox=preview
usepackage{fontawesome}
usepackage{tikz,animate}
begin{document}
begin{frame}{Move along path}
%begin{preview}%
begin{animateinline}[autoplay,loop,controls]{24}
multiframe{160}{rAng=110+-0.25,rSlpe=-25+-0.25}{%
begin{tikzpicture}[scale=0.85]
useasboundingbox[shift={(-1,0)}] (110:15) arc [start angle=110,end angle=70,radius=15] -- ++(2,0) -- ++(0,-0.5);
draw (110:15) arc [start angle=110,end angle=70,radius=15];
node[rotate=rSlpe, at=(rAng:15),inner sep=0pt, outer sep=0pt] {makebox[0pt]{faPlane}};
end{tikzpicture}}
end{animateinline}%
%end{preview}
end{frame}
end{document}
edited 10 hours ago
answered 11 hours ago
AlexGAlexG
33.6k479147
33.6k479147
1
You need Acrobat Reader as PDF viewer.
– AlexG
10 hours ago
1
Thanks @AlexG. I'll have to install it then. Wont any other debian friendly PDF Viewer do?
– GermanShepherd
10 hours ago
1
@GermanShepherd there are a few pdf viewers that have good emulation of adobe internals on windows each adobe collaborator may have some good features the better ones are bluebeam and foxit and the lightest contender are the tracker products most of those 3 have products that should handle this form of animation well
– KJO
10 hours ago
2
Firefox, Chromium. In the case of SVG output. (As animation in my answer.)
– AlexG
10 hours ago
1
@AlexG, Firefox does render the image animation. I 'll still need Acrobat/ some other PDF Viewer for my presentation I believe. I want the plane to fly when the slide is loaded.
– GermanShepherd
9 hours ago
|
show 4 more comments
1
You need Acrobat Reader as PDF viewer.
– AlexG
10 hours ago
1
Thanks @AlexG. I'll have to install it then. Wont any other debian friendly PDF Viewer do?
– GermanShepherd
10 hours ago
1
@GermanShepherd there are a few pdf viewers that have good emulation of adobe internals on windows each adobe collaborator may have some good features the better ones are bluebeam and foxit and the lightest contender are the tracker products most of those 3 have products that should handle this form of animation well
– KJO
10 hours ago
2
Firefox, Chromium. In the case of SVG output. (As animation in my answer.)
– AlexG
10 hours ago
1
@AlexG, Firefox does render the image animation. I 'll still need Acrobat/ some other PDF Viewer for my presentation I believe. I want the plane to fly when the slide is loaded.
– GermanShepherd
9 hours ago
1
1
You need Acrobat Reader as PDF viewer.
– AlexG
10 hours ago
You need Acrobat Reader as PDF viewer.
– AlexG
10 hours ago
1
1
Thanks @AlexG. I'll have to install it then. Wont any other debian friendly PDF Viewer do?
– GermanShepherd
10 hours ago
Thanks @AlexG. I'll have to install it then. Wont any other debian friendly PDF Viewer do?
– GermanShepherd
10 hours ago
1
1
@GermanShepherd there are a few pdf viewers that have good emulation of adobe internals on windows each adobe collaborator may have some good features the better ones are bluebeam and foxit and the lightest contender are the tracker products most of those 3 have products that should handle this form of animation well
– KJO
10 hours ago
@GermanShepherd there are a few pdf viewers that have good emulation of adobe internals on windows each adobe collaborator may have some good features the better ones are bluebeam and foxit and the lightest contender are the tracker products most of those 3 have products that should handle this form of animation well
– KJO
10 hours ago
2
2
Firefox, Chromium. In the case of SVG output. (As animation in my answer.)
– AlexG
10 hours ago
Firefox, Chromium. In the case of SVG output. (As animation in my answer.)
– AlexG
10 hours ago
1
1
@AlexG, Firefox does render the image animation. I 'll still need Acrobat/ some other PDF Viewer for my presentation I believe. I want the plane to fly when the slide is loaded.
– GermanShepherd
9 hours ago
@AlexG, Firefox does render the image animation. I 'll still need Acrobat/ some other PDF Viewer for my presentation I believe. I want the plane to fly when the slide is loaded.
– GermanShepherd
9 hours ago
|
show 4 more comments
With decorations.markings
you can transport the plane along any path and it will always be rotated to be a tangent of the path (without you having to do that manually).
documentclass[ignorenonframetext]{beamer}
usepackage{fontawesome}
mode<presentation>
{usetheme{Singapore}
setbeamercovered{transparent}
}
usepackage[english]{babel}
usepackage{tikz}
usetikzlibrary{decorations.markings,calc}
title{Beamer Example}
author{Author}
subject{Presentation Programs}
institute[ University]{
Department of XZ\
University}
newcountmyangle
begin{document}
section{Outline}
begin{frame}[t]
frametitle{Example}
transduration{4}
animate<2-21>
animatevalue<2-21>{myangle}{0}{19}
begin{tikzpicture}
tikzset{pics/.cd,
plane/.style={code={fill (-0.6,0.2) -- (-0.5,0) -- (-0.6,-0.2)
-- (-0.4,-0.2) -- (-0.3,-0.1)-- (-0.1,-0.15) -- (-0.2,-0.5) -- (00.05,-0.5)
-- (0.15,-0.2) to[out=0,in=-90] (0.5,0) to[out=90,in=180] (0.15,0.2)
-- (00.05,0.5) -- (-0.2,0.5) -- (-0.1,0.15) -- (-0.3,0.1) -- (-0.4,0.2); }}}
path[use as bounding box] (-5.5,-4.5) rectangle (2.5,3.5);
draw[postaction={decorate,decoration={markings,
mark=at position myangle/20 with {path let p1=($(current bounding
box.east)-(current bounding box.west)$),
n1={-atan2(y1,x1)} in pic[rotate=n1]{plane};}}}] (-5,0) to (2,0) arc(90:-180:2)
--++(0,5);
end{tikzpicture}
end{frame}
end{document}
This uses the beamer built-in animation facilities (as in Hafid's answer), but can be combined with animateinline
(see Raaja's answer and AlexG's answer).
The animated gif was created via
convert -density 300 -delay 34 -loop 0 -alpha remove multipage.pdf animated.gif
as explained in this great answer.
Or a 3D like version where the plane flies out of the beamer plane. (Before giving the presentation, please contact the organizers for a safety briefing. ;-)
documentclass[ignorenonframetext]{beamer}
mode<presentation>
{usetheme{Singapore}
setbeamercovered{transparent}
}
usepackage[english]{babel}
usepackage{tikz}
usetikzlibrary{decorations.markings,calc}
title{Beamer Example}
author{Author}
subject{Presentation Programs}
institute[ University]{
Department of XZ\
University}
newcountmydist
begin{document}
section{Outline}
begin{frame}[t]
frametitle{Example}
transduration{4}
animate<2-22>
animatevalue<2-22>{mydist}{0}{20}
begin{tikzpicture}
tikzset{pics/.cd,
plane/.style={code={fill (-0.6,0.2) -- (-0.5,0) -- (-0.6,-0.2)
-- (-0.4,-0.2) -- (-0.3,-0.1)-- (-0.1,-0.15) -- (-0.2,-0.5) -- (00.05,-0.5)
-- (0.15,-0.2) to[out=0,in=-90] (0.5,0) to[out=90,in=180] (0.15,0.2)
-- (00.05,0.5) -- (-0.2,0.5) -- (-0.1,0.15) -- (-0.3,0.1) -- (-0.4,0.2); }}}
path[use as bounding box] (-5.25,-4.5) rectangle (2.25,3.5);
draw[postaction={decorate,decoration={markings,
mark=at position mydist/20 with {path let p1=($(current bounding
box.east)-(current bounding box.west)$),
n1={-atan2(y1,x1)} in (0,0)
pic[rotate=n1,scale={0.3+0.7*sin(9*mydist)},gray!20]{plane}
(${0.01+0.04*sin(9*mydist)}*($(current bounding
box.north east)-(current bounding box.south west)$)$)
pic[rotate=n1,scale={0.3+0.7*sin(9*mydist)}]{plane};}}}] (-5,0) to (2,0) arc(90:-180:2)
--++(0,5);
end{tikzpicture}
end{frame}
end{document}
neat as usual and only niggle is the shift of focus at start :-) However my question is out of interest what steps did you use to convert to gif ?
– KJO
5 hours ago
@KJO I added that information (and also removed the initial kick;-).
– marmot
5 hours ago
+1 more and more if I could
– KJO
5 hours ago
Certainly the best solution here. +1
– AlexG
5 hours ago
2
@HafidBoukhoulda "The animated gif was created viaconvert -density 300 -delay 34 -loop 0 -alpha remove multipage.pdf animated.gif
as explained in this great answer".
– marmot
5 hours ago
|
show 6 more comments
With decorations.markings
you can transport the plane along any path and it will always be rotated to be a tangent of the path (without you having to do that manually).
documentclass[ignorenonframetext]{beamer}
usepackage{fontawesome}
mode<presentation>
{usetheme{Singapore}
setbeamercovered{transparent}
}
usepackage[english]{babel}
usepackage{tikz}
usetikzlibrary{decorations.markings,calc}
title{Beamer Example}
author{Author}
subject{Presentation Programs}
institute[ University]{
Department of XZ\
University}
newcountmyangle
begin{document}
section{Outline}
begin{frame}[t]
frametitle{Example}
transduration{4}
animate<2-21>
animatevalue<2-21>{myangle}{0}{19}
begin{tikzpicture}
tikzset{pics/.cd,
plane/.style={code={fill (-0.6,0.2) -- (-0.5,0) -- (-0.6,-0.2)
-- (-0.4,-0.2) -- (-0.3,-0.1)-- (-0.1,-0.15) -- (-0.2,-0.5) -- (00.05,-0.5)
-- (0.15,-0.2) to[out=0,in=-90] (0.5,0) to[out=90,in=180] (0.15,0.2)
-- (00.05,0.5) -- (-0.2,0.5) -- (-0.1,0.15) -- (-0.3,0.1) -- (-0.4,0.2); }}}
path[use as bounding box] (-5.5,-4.5) rectangle (2.5,3.5);
draw[postaction={decorate,decoration={markings,
mark=at position myangle/20 with {path let p1=($(current bounding
box.east)-(current bounding box.west)$),
n1={-atan2(y1,x1)} in pic[rotate=n1]{plane};}}}] (-5,0) to (2,0) arc(90:-180:2)
--++(0,5);
end{tikzpicture}
end{frame}
end{document}
This uses the beamer built-in animation facilities (as in Hafid's answer), but can be combined with animateinline
(see Raaja's answer and AlexG's answer).
The animated gif was created via
convert -density 300 -delay 34 -loop 0 -alpha remove multipage.pdf animated.gif
as explained in this great answer.
Or a 3D like version where the plane flies out of the beamer plane. (Before giving the presentation, please contact the organizers for a safety briefing. ;-)
documentclass[ignorenonframetext]{beamer}
mode<presentation>
{usetheme{Singapore}
setbeamercovered{transparent}
}
usepackage[english]{babel}
usepackage{tikz}
usetikzlibrary{decorations.markings,calc}
title{Beamer Example}
author{Author}
subject{Presentation Programs}
institute[ University]{
Department of XZ\
University}
newcountmydist
begin{document}
section{Outline}
begin{frame}[t]
frametitle{Example}
transduration{4}
animate<2-22>
animatevalue<2-22>{mydist}{0}{20}
begin{tikzpicture}
tikzset{pics/.cd,
plane/.style={code={fill (-0.6,0.2) -- (-0.5,0) -- (-0.6,-0.2)
-- (-0.4,-0.2) -- (-0.3,-0.1)-- (-0.1,-0.15) -- (-0.2,-0.5) -- (00.05,-0.5)
-- (0.15,-0.2) to[out=0,in=-90] (0.5,0) to[out=90,in=180] (0.15,0.2)
-- (00.05,0.5) -- (-0.2,0.5) -- (-0.1,0.15) -- (-0.3,0.1) -- (-0.4,0.2); }}}
path[use as bounding box] (-5.25,-4.5) rectangle (2.25,3.5);
draw[postaction={decorate,decoration={markings,
mark=at position mydist/20 with {path let p1=($(current bounding
box.east)-(current bounding box.west)$),
n1={-atan2(y1,x1)} in (0,0)
pic[rotate=n1,scale={0.3+0.7*sin(9*mydist)},gray!20]{plane}
(${0.01+0.04*sin(9*mydist)}*($(current bounding
box.north east)-(current bounding box.south west)$)$)
pic[rotate=n1,scale={0.3+0.7*sin(9*mydist)}]{plane};}}}] (-5,0) to (2,0) arc(90:-180:2)
--++(0,5);
end{tikzpicture}
end{frame}
end{document}
neat as usual and only niggle is the shift of focus at start :-) However my question is out of interest what steps did you use to convert to gif ?
– KJO
5 hours ago
@KJO I added that information (and also removed the initial kick;-).
– marmot
5 hours ago
+1 more and more if I could
– KJO
5 hours ago
Certainly the best solution here. +1
– AlexG
5 hours ago
2
@HafidBoukhoulda "The animated gif was created viaconvert -density 300 -delay 34 -loop 0 -alpha remove multipage.pdf animated.gif
as explained in this great answer".
– marmot
5 hours ago
|
show 6 more comments
With decorations.markings
you can transport the plane along any path and it will always be rotated to be a tangent of the path (without you having to do that manually).
documentclass[ignorenonframetext]{beamer}
usepackage{fontawesome}
mode<presentation>
{usetheme{Singapore}
setbeamercovered{transparent}
}
usepackage[english]{babel}
usepackage{tikz}
usetikzlibrary{decorations.markings,calc}
title{Beamer Example}
author{Author}
subject{Presentation Programs}
institute[ University]{
Department of XZ\
University}
newcountmyangle
begin{document}
section{Outline}
begin{frame}[t]
frametitle{Example}
transduration{4}
animate<2-21>
animatevalue<2-21>{myangle}{0}{19}
begin{tikzpicture}
tikzset{pics/.cd,
plane/.style={code={fill (-0.6,0.2) -- (-0.5,0) -- (-0.6,-0.2)
-- (-0.4,-0.2) -- (-0.3,-0.1)-- (-0.1,-0.15) -- (-0.2,-0.5) -- (00.05,-0.5)
-- (0.15,-0.2) to[out=0,in=-90] (0.5,0) to[out=90,in=180] (0.15,0.2)
-- (00.05,0.5) -- (-0.2,0.5) -- (-0.1,0.15) -- (-0.3,0.1) -- (-0.4,0.2); }}}
path[use as bounding box] (-5.5,-4.5) rectangle (2.5,3.5);
draw[postaction={decorate,decoration={markings,
mark=at position myangle/20 with {path let p1=($(current bounding
box.east)-(current bounding box.west)$),
n1={-atan2(y1,x1)} in pic[rotate=n1]{plane};}}}] (-5,0) to (2,0) arc(90:-180:2)
--++(0,5);
end{tikzpicture}
end{frame}
end{document}
This uses the beamer built-in animation facilities (as in Hafid's answer), but can be combined with animateinline
(see Raaja's answer and AlexG's answer).
The animated gif was created via
convert -density 300 -delay 34 -loop 0 -alpha remove multipage.pdf animated.gif
as explained in this great answer.
Or a 3D like version where the plane flies out of the beamer plane. (Before giving the presentation, please contact the organizers for a safety briefing. ;-)
documentclass[ignorenonframetext]{beamer}
mode<presentation>
{usetheme{Singapore}
setbeamercovered{transparent}
}
usepackage[english]{babel}
usepackage{tikz}
usetikzlibrary{decorations.markings,calc}
title{Beamer Example}
author{Author}
subject{Presentation Programs}
institute[ University]{
Department of XZ\
University}
newcountmydist
begin{document}
section{Outline}
begin{frame}[t]
frametitle{Example}
transduration{4}
animate<2-22>
animatevalue<2-22>{mydist}{0}{20}
begin{tikzpicture}
tikzset{pics/.cd,
plane/.style={code={fill (-0.6,0.2) -- (-0.5,0) -- (-0.6,-0.2)
-- (-0.4,-0.2) -- (-0.3,-0.1)-- (-0.1,-0.15) -- (-0.2,-0.5) -- (00.05,-0.5)
-- (0.15,-0.2) to[out=0,in=-90] (0.5,0) to[out=90,in=180] (0.15,0.2)
-- (00.05,0.5) -- (-0.2,0.5) -- (-0.1,0.15) -- (-0.3,0.1) -- (-0.4,0.2); }}}
path[use as bounding box] (-5.25,-4.5) rectangle (2.25,3.5);
draw[postaction={decorate,decoration={markings,
mark=at position mydist/20 with {path let p1=($(current bounding
box.east)-(current bounding box.west)$),
n1={-atan2(y1,x1)} in (0,0)
pic[rotate=n1,scale={0.3+0.7*sin(9*mydist)},gray!20]{plane}
(${0.01+0.04*sin(9*mydist)}*($(current bounding
box.north east)-(current bounding box.south west)$)$)
pic[rotate=n1,scale={0.3+0.7*sin(9*mydist)}]{plane};}}}] (-5,0) to (2,0) arc(90:-180:2)
--++(0,5);
end{tikzpicture}
end{frame}
end{document}
With decorations.markings
you can transport the plane along any path and it will always be rotated to be a tangent of the path (without you having to do that manually).
documentclass[ignorenonframetext]{beamer}
usepackage{fontawesome}
mode<presentation>
{usetheme{Singapore}
setbeamercovered{transparent}
}
usepackage[english]{babel}
usepackage{tikz}
usetikzlibrary{decorations.markings,calc}
title{Beamer Example}
author{Author}
subject{Presentation Programs}
institute[ University]{
Department of XZ\
University}
newcountmyangle
begin{document}
section{Outline}
begin{frame}[t]
frametitle{Example}
transduration{4}
animate<2-21>
animatevalue<2-21>{myangle}{0}{19}
begin{tikzpicture}
tikzset{pics/.cd,
plane/.style={code={fill (-0.6,0.2) -- (-0.5,0) -- (-0.6,-0.2)
-- (-0.4,-0.2) -- (-0.3,-0.1)-- (-0.1,-0.15) -- (-0.2,-0.5) -- (00.05,-0.5)
-- (0.15,-0.2) to[out=0,in=-90] (0.5,0) to[out=90,in=180] (0.15,0.2)
-- (00.05,0.5) -- (-0.2,0.5) -- (-0.1,0.15) -- (-0.3,0.1) -- (-0.4,0.2); }}}
path[use as bounding box] (-5.5,-4.5) rectangle (2.5,3.5);
draw[postaction={decorate,decoration={markings,
mark=at position myangle/20 with {path let p1=($(current bounding
box.east)-(current bounding box.west)$),
n1={-atan2(y1,x1)} in pic[rotate=n1]{plane};}}}] (-5,0) to (2,0) arc(90:-180:2)
--++(0,5);
end{tikzpicture}
end{frame}
end{document}
This uses the beamer built-in animation facilities (as in Hafid's answer), but can be combined with animateinline
(see Raaja's answer and AlexG's answer).
The animated gif was created via
convert -density 300 -delay 34 -loop 0 -alpha remove multipage.pdf animated.gif
as explained in this great answer.
Or a 3D like version where the plane flies out of the beamer plane. (Before giving the presentation, please contact the organizers for a safety briefing. ;-)
documentclass[ignorenonframetext]{beamer}
mode<presentation>
{usetheme{Singapore}
setbeamercovered{transparent}
}
usepackage[english]{babel}
usepackage{tikz}
usetikzlibrary{decorations.markings,calc}
title{Beamer Example}
author{Author}
subject{Presentation Programs}
institute[ University]{
Department of XZ\
University}
newcountmydist
begin{document}
section{Outline}
begin{frame}[t]
frametitle{Example}
transduration{4}
animate<2-22>
animatevalue<2-22>{mydist}{0}{20}
begin{tikzpicture}
tikzset{pics/.cd,
plane/.style={code={fill (-0.6,0.2) -- (-0.5,0) -- (-0.6,-0.2)
-- (-0.4,-0.2) -- (-0.3,-0.1)-- (-0.1,-0.15) -- (-0.2,-0.5) -- (00.05,-0.5)
-- (0.15,-0.2) to[out=0,in=-90] (0.5,0) to[out=90,in=180] (0.15,0.2)
-- (00.05,0.5) -- (-0.2,0.5) -- (-0.1,0.15) -- (-0.3,0.1) -- (-0.4,0.2); }}}
path[use as bounding box] (-5.25,-4.5) rectangle (2.25,3.5);
draw[postaction={decorate,decoration={markings,
mark=at position mydist/20 with {path let p1=($(current bounding
box.east)-(current bounding box.west)$),
n1={-atan2(y1,x1)} in (0,0)
pic[rotate=n1,scale={0.3+0.7*sin(9*mydist)},gray!20]{plane}
(${0.01+0.04*sin(9*mydist)}*($(current bounding
box.north east)-(current bounding box.south west)$)$)
pic[rotate=n1,scale={0.3+0.7*sin(9*mydist)}]{plane};}}}] (-5,0) to (2,0) arc(90:-180:2)
--++(0,5);
end{tikzpicture}
end{frame}
end{document}
edited 5 hours ago
answered 6 hours ago
marmotmarmot
101k4117225
101k4117225
neat as usual and only niggle is the shift of focus at start :-) However my question is out of interest what steps did you use to convert to gif ?
– KJO
5 hours ago
@KJO I added that information (and also removed the initial kick;-).
– marmot
5 hours ago
+1 more and more if I could
– KJO
5 hours ago
Certainly the best solution here. +1
– AlexG
5 hours ago
2
@HafidBoukhoulda "The animated gif was created viaconvert -density 300 -delay 34 -loop 0 -alpha remove multipage.pdf animated.gif
as explained in this great answer".
– marmot
5 hours ago
|
show 6 more comments
neat as usual and only niggle is the shift of focus at start :-) However my question is out of interest what steps did you use to convert to gif ?
– KJO
5 hours ago
@KJO I added that information (and also removed the initial kick;-).
– marmot
5 hours ago
+1 more and more if I could
– KJO
5 hours ago
Certainly the best solution here. +1
– AlexG
5 hours ago
2
@HafidBoukhoulda "The animated gif was created viaconvert -density 300 -delay 34 -loop 0 -alpha remove multipage.pdf animated.gif
as explained in this great answer".
– marmot
5 hours ago
neat as usual and only niggle is the shift of focus at start :-) However my question is out of interest what steps did you use to convert to gif ?
– KJO
5 hours ago
neat as usual and only niggle is the shift of focus at start :-) However my question is out of interest what steps did you use to convert to gif ?
– KJO
5 hours ago
@KJO I added that information (and also removed the initial kick;-).
– marmot
5 hours ago
@KJO I added that information (and also removed the initial kick;-).
– marmot
5 hours ago
+1 more and more if I could
– KJO
5 hours ago
+1 more and more if I could
– KJO
5 hours ago
Certainly the best solution here. +1
– AlexG
5 hours ago
Certainly the best solution here. +1
– AlexG
5 hours ago
2
2
@HafidBoukhoulda "The animated gif was created via
convert -density 300 -delay 34 -loop 0 -alpha remove multipage.pdf animated.gif
as explained in this great answer".– marmot
5 hours ago
@HafidBoukhoulda "The animated gif was created via
convert -density 300 -delay 34 -loop 0 -alpha remove multipage.pdf animated.gif
as explained in this great answer".– marmot
5 hours ago
|
show 6 more comments
A starting point for your pursuit:
documentclass[ignorenonframetext]{beamer}
usepackage{fontawesome}
mode<presentation>
{usetheme{Singapore}
setbeamercovered{transparent}
}
usepackage[english]{babel}
title{Beamer Example}
author{Author}
subject{Presentation Programs}
institute[ University]{
Department of XZ\
University}
%% you need these
usepackage{tikz}
usetikzlibrary{positioning, arrows}
usepackage{animate}
begin{document}
section{Outline}
frame[label=exampleframe]{
frametitle{Example}
faPlane
}
begin{frame}[c]
begin{center}
pgfmathtruncatemacroN{10}
begin{animateinline}[autoplay]{5}
multiframe{6}{iPosition=0+1}{
begin{tikzpicture}
node[circle,draw=black] (t1) at (0,0) {};
node (tx) at (iPosition,0) {rotatebox{-45}{faPlane}};
draw[-] (t1.center) -- (tx.center);
node[circle,draw=black] (t2) at (5,0) {};
end{tikzpicture}
}
end{animateinline}
end{center}
end{frame}
end{document}
PS With @marmot's
suggestion:
1
Thank you @Raaja. This seems good to me.. I 'll try to play around with this.
– GermanShepherd
10 hours ago
1
@Raaja a dirty way for make a .gif is using a screen capture software like Apowersoft
– vi pa
9 hours ago
@GermanShepherd You are welcome!
– Raaja
9 hours ago
@vipa I will try to play with that, thnx for the suggestion ;)
– Raaja
9 hours ago
add a comment |
A starting point for your pursuit:
documentclass[ignorenonframetext]{beamer}
usepackage{fontawesome}
mode<presentation>
{usetheme{Singapore}
setbeamercovered{transparent}
}
usepackage[english]{babel}
title{Beamer Example}
author{Author}
subject{Presentation Programs}
institute[ University]{
Department of XZ\
University}
%% you need these
usepackage{tikz}
usetikzlibrary{positioning, arrows}
usepackage{animate}
begin{document}
section{Outline}
frame[label=exampleframe]{
frametitle{Example}
faPlane
}
begin{frame}[c]
begin{center}
pgfmathtruncatemacroN{10}
begin{animateinline}[autoplay]{5}
multiframe{6}{iPosition=0+1}{
begin{tikzpicture}
node[circle,draw=black] (t1) at (0,0) {};
node (tx) at (iPosition,0) {rotatebox{-45}{faPlane}};
draw[-] (t1.center) -- (tx.center);
node[circle,draw=black] (t2) at (5,0) {};
end{tikzpicture}
}
end{animateinline}
end{center}
end{frame}
end{document}
PS With @marmot's
suggestion:
1
Thank you @Raaja. This seems good to me.. I 'll try to play around with this.
– GermanShepherd
10 hours ago
1
@Raaja a dirty way for make a .gif is using a screen capture software like Apowersoft
– vi pa
9 hours ago
@GermanShepherd You are welcome!
– Raaja
9 hours ago
@vipa I will try to play with that, thnx for the suggestion ;)
– Raaja
9 hours ago
add a comment |
A starting point for your pursuit:
documentclass[ignorenonframetext]{beamer}
usepackage{fontawesome}
mode<presentation>
{usetheme{Singapore}
setbeamercovered{transparent}
}
usepackage[english]{babel}
title{Beamer Example}
author{Author}
subject{Presentation Programs}
institute[ University]{
Department of XZ\
University}
%% you need these
usepackage{tikz}
usetikzlibrary{positioning, arrows}
usepackage{animate}
begin{document}
section{Outline}
frame[label=exampleframe]{
frametitle{Example}
faPlane
}
begin{frame}[c]
begin{center}
pgfmathtruncatemacroN{10}
begin{animateinline}[autoplay]{5}
multiframe{6}{iPosition=0+1}{
begin{tikzpicture}
node[circle,draw=black] (t1) at (0,0) {};
node (tx) at (iPosition,0) {rotatebox{-45}{faPlane}};
draw[-] (t1.center) -- (tx.center);
node[circle,draw=black] (t2) at (5,0) {};
end{tikzpicture}
}
end{animateinline}
end{center}
end{frame}
end{document}
PS With @marmot's
suggestion:
A starting point for your pursuit:
documentclass[ignorenonframetext]{beamer}
usepackage{fontawesome}
mode<presentation>
{usetheme{Singapore}
setbeamercovered{transparent}
}
usepackage[english]{babel}
title{Beamer Example}
author{Author}
subject{Presentation Programs}
institute[ University]{
Department of XZ\
University}
%% you need these
usepackage{tikz}
usetikzlibrary{positioning, arrows}
usepackage{animate}
begin{document}
section{Outline}
frame[label=exampleframe]{
frametitle{Example}
faPlane
}
begin{frame}[c]
begin{center}
pgfmathtruncatemacroN{10}
begin{animateinline}[autoplay]{5}
multiframe{6}{iPosition=0+1}{
begin{tikzpicture}
node[circle,draw=black] (t1) at (0,0) {};
node (tx) at (iPosition,0) {rotatebox{-45}{faPlane}};
draw[-] (t1.center) -- (tx.center);
node[circle,draw=black] (t2) at (5,0) {};
end{tikzpicture}
}
end{animateinline}
end{center}
end{frame}
end{document}
PS With @marmot's
suggestion:
edited 2 hours ago
answered 11 hours ago
RaajaRaaja
3,95121038
3,95121038
1
Thank you @Raaja. This seems good to me.. I 'll try to play around with this.
– GermanShepherd
10 hours ago
1
@Raaja a dirty way for make a .gif is using a screen capture software like Apowersoft
– vi pa
9 hours ago
@GermanShepherd You are welcome!
– Raaja
9 hours ago
@vipa I will try to play with that, thnx for the suggestion ;)
– Raaja
9 hours ago
add a comment |
1
Thank you @Raaja. This seems good to me.. I 'll try to play around with this.
– GermanShepherd
10 hours ago
1
@Raaja a dirty way for make a .gif is using a screen capture software like Apowersoft
– vi pa
9 hours ago
@GermanShepherd You are welcome!
– Raaja
9 hours ago
@vipa I will try to play with that, thnx for the suggestion ;)
– Raaja
9 hours ago
1
1
Thank you @Raaja. This seems good to me.. I 'll try to play around with this.
– GermanShepherd
10 hours ago
Thank you @Raaja. This seems good to me.. I 'll try to play around with this.
– GermanShepherd
10 hours ago
1
1
@Raaja a dirty way for make a .gif is using a screen capture software like Apowersoft
– vi pa
9 hours ago
@Raaja a dirty way for make a .gif is using a screen capture software like Apowersoft
– vi pa
9 hours ago
@GermanShepherd You are welcome!
– Raaja
9 hours ago
@GermanShepherd You are welcome!
– Raaja
9 hours ago
@vipa I will try to play with that, thnx for the suggestion ;)
– Raaja
9 hours ago
@vipa I will try to play with that, thnx for the suggestion ;)
– Raaja
9 hours ago
add a comment |
Another solution using animate
command provided by the beamer
package
documentclass[ignorenonframetext]{beamer}
usepackage{fontawesome}
usepackage{tikz}
mode<presentation>
{usetheme{Singapore}
setbeamercovered{transparent}
}
usepackage[english]{babel}
title{Beamer Example}
author{Author}
subject{Presentation Programs}
institute[ University]{
Department of XZ\
University}
begin{document}
section{Outline}
frame[label=exampleframe]{
frametitle{Example}
See the plane flying
newcountp
animate<2-10>
animatevalue<2-10>{p}{0}{100}
begin{tikzpicture}
path(0,0)rectangle(0.75paperwidth,-0.75paperheight);
path[draw](0,0)..controls +(30:2) and +(40:2)..+(4,-1) node [pos=p/100,sloped,rotate=-45,allow upside down]{faPlane};
end{tikzpicture}
}
end{document}
add a comment |
Another solution using animate
command provided by the beamer
package
documentclass[ignorenonframetext]{beamer}
usepackage{fontawesome}
usepackage{tikz}
mode<presentation>
{usetheme{Singapore}
setbeamercovered{transparent}
}
usepackage[english]{babel}
title{Beamer Example}
author{Author}
subject{Presentation Programs}
institute[ University]{
Department of XZ\
University}
begin{document}
section{Outline}
frame[label=exampleframe]{
frametitle{Example}
See the plane flying
newcountp
animate<2-10>
animatevalue<2-10>{p}{0}{100}
begin{tikzpicture}
path(0,0)rectangle(0.75paperwidth,-0.75paperheight);
path[draw](0,0)..controls +(30:2) and +(40:2)..+(4,-1) node [pos=p/100,sloped,rotate=-45,allow upside down]{faPlane};
end{tikzpicture}
}
end{document}
add a comment |
Another solution using animate
command provided by the beamer
package
documentclass[ignorenonframetext]{beamer}
usepackage{fontawesome}
usepackage{tikz}
mode<presentation>
{usetheme{Singapore}
setbeamercovered{transparent}
}
usepackage[english]{babel}
title{Beamer Example}
author{Author}
subject{Presentation Programs}
institute[ University]{
Department of XZ\
University}
begin{document}
section{Outline}
frame[label=exampleframe]{
frametitle{Example}
See the plane flying
newcountp
animate<2-10>
animatevalue<2-10>{p}{0}{100}
begin{tikzpicture}
path(0,0)rectangle(0.75paperwidth,-0.75paperheight);
path[draw](0,0)..controls +(30:2) and +(40:2)..+(4,-1) node [pos=p/100,sloped,rotate=-45,allow upside down]{faPlane};
end{tikzpicture}
}
end{document}
Another solution using animate
command provided by the beamer
package
documentclass[ignorenonframetext]{beamer}
usepackage{fontawesome}
usepackage{tikz}
mode<presentation>
{usetheme{Singapore}
setbeamercovered{transparent}
}
usepackage[english]{babel}
title{Beamer Example}
author{Author}
subject{Presentation Programs}
institute[ University]{
Department of XZ\
University}
begin{document}
section{Outline}
frame[label=exampleframe]{
frametitle{Example}
See the plane flying
newcountp
animate<2-10>
animatevalue<2-10>{p}{0}{100}
begin{tikzpicture}
path(0,0)rectangle(0.75paperwidth,-0.75paperheight);
path[draw](0,0)..controls +(30:2) and +(40:2)..+(4,-1) node [pos=p/100,sloped,rotate=-45,allow upside down]{faPlane};
end{tikzpicture}
}
end{document}
edited 7 hours ago
Raaja
3,95121038
3,95121038
answered 7 hours ago
Hafid BoukhouldaHafid Boukhoulda
3,6051621
3,6051621
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f475463%2fanimate-an-airplane-in-beamer%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown