Animate an airplane in BeamerDraw an aircraft with TikzExporting animation created with animate packageMaking...
How do we objectively assess if a dialogue sounds unnatural or cringy?
Rationale to prefer local variables over instance variables?
Is every open circuit a capacitor?
Dukha vs legitimate need
Remove object from array based on array of some property of that object
Sundering Titan and basic normal lands and snow lands
Linear Combination of Atomic Orbitals
What is brightness?
Are Wave equations equivalent to Maxwell equations in free space?
What is the oldest European royal house?
Under what conditions would I NOT add my Proficiency Bonus to a Spell Attack Roll (or Saving Throw DC)?
How do you make a gun that shoots melee weapons and/or swords?
Should I use HTTPS on a domain that will only be used for redirection?
The Key to the Door
Does the in-code argument passing conventions used on PDP-11's have a name?
Are angels creatures (Mark 16:15) and can they repent (Rev 2:5 and Rom 8:21)
Forcing Mathematica's Integrate to give more general answers
Why do phishing e-mails use faked e-mail addresses instead of the real one?
How to write a chaotic neutral protagonist and prevent my readers from thinking they are evil?
Is there a way to find out the age of climbing ropes?
PSPICE - must be 'I' or 'V' error
What is better: yes / no radio, or simple checkbox?
What is the purpose of a disclaimer like "this is not legal advice"?
I've given my players a lot of magic items. Is it reasonable for me to give them harder encounters?
Animate an airplane in Beamer
Draw an aircraft with TikzExporting animation created with animate packageMaking motorway with TikZWhen I use animate in beamer, how do I move back in my presentation?Animate subitemize in beamerAnimate swaps of elements in beamerAnimate movement/transition of sections on a slide in Beamer?Animate code blocks beamerCannot create animation in beamer with xelatex using the animate packageanimate does not animate files in beamer although compilation worksSpeed for animate in beamerBeamer: animate package and overlayBeamer animate package error
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 Feb 18 at 10:10
GermanShepherd
asked Feb 18 at 10:02
GermanShepherdGermanShepherd
525219
525219
add a comment |
add a comment |
5 Answers
5
active
oldest
votes
Example using Fontawesome plane (click on the image to see animation):
Update: The Beamer part, to fulfill the request completely.
To become independent from Adobe products, the whole presentation can be made in SVG format (Click to start presentation, F11 for full-screen, navigate with PgUp and PgDown; a Blink-based browser [Chromium, Chrome, Opera] may be needed for the background gradient to be rendered correctly):
Standalone animation LaTeX input:
Update: example extended (softer take-off and landing) and improved (node placing along path, as shown by user @Hafid).
documentclass{standalone} % animated PDF
%documentclass[dvisvgm,preview]{standalone} % animated SVG: latex + dvisvgm --font-format=woff --bbox=preview --zoom=-1
%documentclass[export]{standalone} % multipage PDF
usepackage{fontawesome}
usepackage{tikz,animate}
ExplSyntaxOn
letfpEvalfp_eval:n % expandable flt-point calculation with L3
ExplSyntaxOff
begin{document}
begin{animateinline}[
autoplay,controls,
begin={begin{tikzpicture}[scale=0.85]
coordinate (a) at (110:15); coordinate (b) at (70:15);
node [anchor=north east] at (a) {A}; node [anchor=north west] at (b) {B};
useasboundingbox (a) node [anchor=north east] {A} arc [start angle=110,end angle=70,radius=15] (b) node [anchor=north west] {B};},
end={end{tikzpicture}}
]{24}
multiframe{161}{iPos=0+1}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=fpEval{0.5*(1-cosd(180*iPos/160))},sloped,rotate=-45]{faPlane};
}
newframe
multiframe{19}{iAng=45+10}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=1,sloped,rotate=-iAng]{faPlane};
}
newframe*
multiframe{161}{iPos=0+1}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=fpEval{0.5*(1+cosd(180*iPos/160))},sloped,rotate=135]{faPlane};
}
newframe
multiframe{19}{iAng=135+-10}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=0,sloped,rotate=iAng]{faPlane};
}
end{animateinline}
end{document}
Presentation (beamer
-class ) LaTeX input. Compile with
latex presentation.tex
latex presentation.tex
dvisvgm --font-format=woff --bbox=papersize --zoom=-1 -p1,- presentation
documentclass[dvisvgm,hypertex,aspectratio=169]{beamer}
usetheme{Singapore}
usepackage{fontawesome}
usepackage{tikz,animate}
ExplSyntaxOn
letfpEvalfp_eval:n % expandable flt-point calculation with L3
ExplSyntaxOff
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% PageDown, PageUp key event handling; navigation symbols
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
usepackage[totpages]{zref}
usepackage{atbegshi}
usepackage{fontawesome}
setbeamertemplate{navigation symbols}{}
AtBeginShipout{%
AtBeginShipoutAddToBox{%
special{dvisvgm:raw
<defs>
<script type="text/javascript">
<![CDATA[
document.addEventListener('keydown', function(e){
if(e.key=='PageDown'){
ifnumthepage<ztotpages
document.location.replace('jobname-thenumexprthepage+1relax.svg');%
fi
}else if(e.key=='PageUp'){
ifnumthepage>1
document.location.replace('jobname-thenumexprthepage-1relax.svg');%
fi%
}
});
]]>
</script>
</defs>
}%
}%
AtBeginShipoutUpperLeftForeground{%
raisebox{-dimexprheight+0.5exrelax}[0pt][0pt]{makebox[paperwidth][r]{%
normalsizecolor{structure!40!}%
ifnumthepage>1%
href{jobname-thenumexprthepage-1relax.svg}{faArrowLeft}%
else%
textcolor{lightgray}{faArrowLeft}%
fihspace{0.5ex}%
ifnumthepage<ztotpages%
href{jobname-thenumexprthepage+1relax.svg}{faArrowRight}%
else%
textcolor{lightgray}{faArrowRight}%
fi%
hspace{0.5ex}%
}}%
}%
}%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
title{Fasten Seat Belts}
subtitle{Use a Web browser and press framebox{F11}}
author{AlexG}
date{today}
begin{document}
frame{titlepage}
begin{frame}{Animation}
begin{center}
begin{animateinline}[
autoplay,controls,
begin={begin{tikzpicture}[scale=0.95]
coordinate (a) at (110:15); coordinate (b) at (70:15);
node [anchor=north east] at (a) {A}; node [anchor=north west] at (b) {B};
useasboundingbox (a) node [anchor=north east] {A} arc [start angle=110,end angle=70,radius=15] (b) node [anchor=north west] {B};},
end={end{tikzpicture}}
]{24}
multiframe{161}{iPos=0+1}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=fpEval{0.5*(1-cosd(180*iPos/160))},sloped,rotate=-45]{faPlane};
}
newframe
multiframe{19}{iAng=45+10}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=1,sloped,rotate=-iAng]{faPlane};
}
newframe*
multiframe{161}{iPos=0+1}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=fpEval{0.5*(1+cosd(180*iPos/160))},sloped,rotate=135]{faPlane};
}
newframe
multiframe{19}{iAng=135+-10}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=0,sloped,rotate=iAng]{faPlane};
}
end{animateinline}
end{center}
end{frame}
end{document}
1
You need Acrobat Reader as PDF viewer.
– AlexG
Feb 18 at 11:30
1
Thanks @AlexG. I'll have to install it then. Wont any other debian friendly PDF Viewer do?
– GermanShepherd
Feb 18 at 12:22
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
Feb 18 at 12:23
2
Firefox, Chromium. In the case of SVG output. (As animation in my answer.)
– AlexG
Feb 18 at 12:24
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
Feb 18 at 12:31
|
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
Feb 18 at 16:31
@KJO I added that information (and also removed the initial kick;-).
– marmot
Feb 18 at 16:36
+1 more and more if I could
– KJO
Feb 18 at 16:40
Certainly the best solution here. +1
– AlexG
Feb 18 at 16:43
3
@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
Feb 18 at 17:09
|
show 6 more comments
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}
It was this method of positioning a node along the path I was looking for. Thanks, +1!
– AlexG
Feb 19 at 7:53
@AlexG Very pleased to know that my answer is helpful to you
– Hafid Boukhoulda
Feb 19 at 8:31
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
Feb 18 at 12:23
2
@Raaja a dirty way for make a .gif is using a screen capture software like Apowersoft
– vi pa
Feb 18 at 12:32
@GermanShepherd You are welcome!
– Raaja
Feb 18 at 12:39
1
@Raaja Very nice and good. You airplane is very fast. :-)
– Sebastiano
Feb 19 at 10:13
1
@Sebastiano Thank you. I'll slide you a secret, my TiKzplane possess time-warping capabilities;-)
.
– Raaja
Feb 19 at 10:17
|
show 1 more comment
Slightly modified from https://github.com/samcarter/Extravanganza2018/blob/master/paulo/MaryDuck/MaryDuck.tex by @PauloCereda
documentclass{beamer}
usepackage{tikzducks}
setbeamertemplate{navigation symbols}{}
usetikzlibrary{calc,decorations.markings}
setbeamertemplate{background}{%
begin{tikzpicture}[remember picture,overlay,
decoration={markings, mark=at position thepage/insertdocumentendpage with {
begin{scope}[xscale=-1]
duck
fill[orange] (0.7331,0.5229) .. controls (1.8688,-0.6326) and (2.2337,0.0383) .. (1.2819,0.7331) -- cycle;
fill[brown] (1.3848,1.6771) .. controls (1.2665,2.2823) and (0.5559,2.2697) .. (0.4000,1.6455) .. controls (0.5711,1.6714) and (0.8503,1.6562) .. (0.9926,1.6247) .. controls (0.9703,1.4641) and (1.0307,1.0718) .. (1.1444,1.0104) .. controls (1.3485,0.9002) and (1.4461,1.4498) .. (1.3848,1.6771) -- cycle;
fill[gray] (0.9153,1.4857) -- (0.9472,1.6278) -- (1.3926,1.5288) -- (1.3840,1.4228) -- cycle;
fill[gray] (0.6484,1.6773) -- (0.6601,1.7155) -- (0.7558,1.6863) -- (0.7441,1.6480) -- cycle;
draw[gray,fill=black] (0.83,1.57) circle (0.135);
draw[gray,fill=black] (0.54,1.65) circle (0.12);
end{scope}
}}
]
path[postaction=decorate]
($(current page.north west)+(-1,0)$) to[out=-30,in=90]
(current page.center) to[out=-90,in=180,looseness=6,distance=4cm]
(current page.center) to[out=0,in=160]
(current page.south east);
end{tikzpicture}%
}
begin{document}
begin{frame}
pause[50]
end{frame}
end{document}
Do ducks need artificial wings?
– AlexG
4 hours ago
Also, downward loopings are dangerous!
– AlexG
4 hours ago
I have always been especially fond of a plane duck!
– R. Schumacher
3 hours ago
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');
});
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
5 Answers
5
active
oldest
votes
5 Answers
5
active
oldest
votes
active
oldest
votes
active
oldest
votes
Example using Fontawesome plane (click on the image to see animation):
Update: The Beamer part, to fulfill the request completely.
To become independent from Adobe products, the whole presentation can be made in SVG format (Click to start presentation, F11 for full-screen, navigate with PgUp and PgDown; a Blink-based browser [Chromium, Chrome, Opera] may be needed for the background gradient to be rendered correctly):
Standalone animation LaTeX input:
Update: example extended (softer take-off and landing) and improved (node placing along path, as shown by user @Hafid).
documentclass{standalone} % animated PDF
%documentclass[dvisvgm,preview]{standalone} % animated SVG: latex + dvisvgm --font-format=woff --bbox=preview --zoom=-1
%documentclass[export]{standalone} % multipage PDF
usepackage{fontawesome}
usepackage{tikz,animate}
ExplSyntaxOn
letfpEvalfp_eval:n % expandable flt-point calculation with L3
ExplSyntaxOff
begin{document}
begin{animateinline}[
autoplay,controls,
begin={begin{tikzpicture}[scale=0.85]
coordinate (a) at (110:15); coordinate (b) at (70:15);
node [anchor=north east] at (a) {A}; node [anchor=north west] at (b) {B};
useasboundingbox (a) node [anchor=north east] {A} arc [start angle=110,end angle=70,radius=15] (b) node [anchor=north west] {B};},
end={end{tikzpicture}}
]{24}
multiframe{161}{iPos=0+1}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=fpEval{0.5*(1-cosd(180*iPos/160))},sloped,rotate=-45]{faPlane};
}
newframe
multiframe{19}{iAng=45+10}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=1,sloped,rotate=-iAng]{faPlane};
}
newframe*
multiframe{161}{iPos=0+1}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=fpEval{0.5*(1+cosd(180*iPos/160))},sloped,rotate=135]{faPlane};
}
newframe
multiframe{19}{iAng=135+-10}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=0,sloped,rotate=iAng]{faPlane};
}
end{animateinline}
end{document}
Presentation (beamer
-class ) LaTeX input. Compile with
latex presentation.tex
latex presentation.tex
dvisvgm --font-format=woff --bbox=papersize --zoom=-1 -p1,- presentation
documentclass[dvisvgm,hypertex,aspectratio=169]{beamer}
usetheme{Singapore}
usepackage{fontawesome}
usepackage{tikz,animate}
ExplSyntaxOn
letfpEvalfp_eval:n % expandable flt-point calculation with L3
ExplSyntaxOff
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% PageDown, PageUp key event handling; navigation symbols
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
usepackage[totpages]{zref}
usepackage{atbegshi}
usepackage{fontawesome}
setbeamertemplate{navigation symbols}{}
AtBeginShipout{%
AtBeginShipoutAddToBox{%
special{dvisvgm:raw
<defs>
<script type="text/javascript">
<![CDATA[
document.addEventListener('keydown', function(e){
if(e.key=='PageDown'){
ifnumthepage<ztotpages
document.location.replace('jobname-thenumexprthepage+1relax.svg');%
fi
}else if(e.key=='PageUp'){
ifnumthepage>1
document.location.replace('jobname-thenumexprthepage-1relax.svg');%
fi%
}
});
]]>
</script>
</defs>
}%
}%
AtBeginShipoutUpperLeftForeground{%
raisebox{-dimexprheight+0.5exrelax}[0pt][0pt]{makebox[paperwidth][r]{%
normalsizecolor{structure!40!}%
ifnumthepage>1%
href{jobname-thenumexprthepage-1relax.svg}{faArrowLeft}%
else%
textcolor{lightgray}{faArrowLeft}%
fihspace{0.5ex}%
ifnumthepage<ztotpages%
href{jobname-thenumexprthepage+1relax.svg}{faArrowRight}%
else%
textcolor{lightgray}{faArrowRight}%
fi%
hspace{0.5ex}%
}}%
}%
}%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
title{Fasten Seat Belts}
subtitle{Use a Web browser and press framebox{F11}}
author{AlexG}
date{today}
begin{document}
frame{titlepage}
begin{frame}{Animation}
begin{center}
begin{animateinline}[
autoplay,controls,
begin={begin{tikzpicture}[scale=0.95]
coordinate (a) at (110:15); coordinate (b) at (70:15);
node [anchor=north east] at (a) {A}; node [anchor=north west] at (b) {B};
useasboundingbox (a) node [anchor=north east] {A} arc [start angle=110,end angle=70,radius=15] (b) node [anchor=north west] {B};},
end={end{tikzpicture}}
]{24}
multiframe{161}{iPos=0+1}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=fpEval{0.5*(1-cosd(180*iPos/160))},sloped,rotate=-45]{faPlane};
}
newframe
multiframe{19}{iAng=45+10}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=1,sloped,rotate=-iAng]{faPlane};
}
newframe*
multiframe{161}{iPos=0+1}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=fpEval{0.5*(1+cosd(180*iPos/160))},sloped,rotate=135]{faPlane};
}
newframe
multiframe{19}{iAng=135+-10}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=0,sloped,rotate=iAng]{faPlane};
}
end{animateinline}
end{center}
end{frame}
end{document}
1
You need Acrobat Reader as PDF viewer.
– AlexG
Feb 18 at 11:30
1
Thanks @AlexG. I'll have to install it then. Wont any other debian friendly PDF Viewer do?
– GermanShepherd
Feb 18 at 12:22
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
Feb 18 at 12:23
2
Firefox, Chromium. In the case of SVG output. (As animation in my answer.)
– AlexG
Feb 18 at 12:24
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
Feb 18 at 12:31
|
show 4 more comments
Example using Fontawesome plane (click on the image to see animation):
Update: The Beamer part, to fulfill the request completely.
To become independent from Adobe products, the whole presentation can be made in SVG format (Click to start presentation, F11 for full-screen, navigate with PgUp and PgDown; a Blink-based browser [Chromium, Chrome, Opera] may be needed for the background gradient to be rendered correctly):
Standalone animation LaTeX input:
Update: example extended (softer take-off and landing) and improved (node placing along path, as shown by user @Hafid).
documentclass{standalone} % animated PDF
%documentclass[dvisvgm,preview]{standalone} % animated SVG: latex + dvisvgm --font-format=woff --bbox=preview --zoom=-1
%documentclass[export]{standalone} % multipage PDF
usepackage{fontawesome}
usepackage{tikz,animate}
ExplSyntaxOn
letfpEvalfp_eval:n % expandable flt-point calculation with L3
ExplSyntaxOff
begin{document}
begin{animateinline}[
autoplay,controls,
begin={begin{tikzpicture}[scale=0.85]
coordinate (a) at (110:15); coordinate (b) at (70:15);
node [anchor=north east] at (a) {A}; node [anchor=north west] at (b) {B};
useasboundingbox (a) node [anchor=north east] {A} arc [start angle=110,end angle=70,radius=15] (b) node [anchor=north west] {B};},
end={end{tikzpicture}}
]{24}
multiframe{161}{iPos=0+1}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=fpEval{0.5*(1-cosd(180*iPos/160))},sloped,rotate=-45]{faPlane};
}
newframe
multiframe{19}{iAng=45+10}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=1,sloped,rotate=-iAng]{faPlane};
}
newframe*
multiframe{161}{iPos=0+1}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=fpEval{0.5*(1+cosd(180*iPos/160))},sloped,rotate=135]{faPlane};
}
newframe
multiframe{19}{iAng=135+-10}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=0,sloped,rotate=iAng]{faPlane};
}
end{animateinline}
end{document}
Presentation (beamer
-class ) LaTeX input. Compile with
latex presentation.tex
latex presentation.tex
dvisvgm --font-format=woff --bbox=papersize --zoom=-1 -p1,- presentation
documentclass[dvisvgm,hypertex,aspectratio=169]{beamer}
usetheme{Singapore}
usepackage{fontawesome}
usepackage{tikz,animate}
ExplSyntaxOn
letfpEvalfp_eval:n % expandable flt-point calculation with L3
ExplSyntaxOff
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% PageDown, PageUp key event handling; navigation symbols
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
usepackage[totpages]{zref}
usepackage{atbegshi}
usepackage{fontawesome}
setbeamertemplate{navigation symbols}{}
AtBeginShipout{%
AtBeginShipoutAddToBox{%
special{dvisvgm:raw
<defs>
<script type="text/javascript">
<![CDATA[
document.addEventListener('keydown', function(e){
if(e.key=='PageDown'){
ifnumthepage<ztotpages
document.location.replace('jobname-thenumexprthepage+1relax.svg');%
fi
}else if(e.key=='PageUp'){
ifnumthepage>1
document.location.replace('jobname-thenumexprthepage-1relax.svg');%
fi%
}
});
]]>
</script>
</defs>
}%
}%
AtBeginShipoutUpperLeftForeground{%
raisebox{-dimexprheight+0.5exrelax}[0pt][0pt]{makebox[paperwidth][r]{%
normalsizecolor{structure!40!}%
ifnumthepage>1%
href{jobname-thenumexprthepage-1relax.svg}{faArrowLeft}%
else%
textcolor{lightgray}{faArrowLeft}%
fihspace{0.5ex}%
ifnumthepage<ztotpages%
href{jobname-thenumexprthepage+1relax.svg}{faArrowRight}%
else%
textcolor{lightgray}{faArrowRight}%
fi%
hspace{0.5ex}%
}}%
}%
}%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
title{Fasten Seat Belts}
subtitle{Use a Web browser and press framebox{F11}}
author{AlexG}
date{today}
begin{document}
frame{titlepage}
begin{frame}{Animation}
begin{center}
begin{animateinline}[
autoplay,controls,
begin={begin{tikzpicture}[scale=0.95]
coordinate (a) at (110:15); coordinate (b) at (70:15);
node [anchor=north east] at (a) {A}; node [anchor=north west] at (b) {B};
useasboundingbox (a) node [anchor=north east] {A} arc [start angle=110,end angle=70,radius=15] (b) node [anchor=north west] {B};},
end={end{tikzpicture}}
]{24}
multiframe{161}{iPos=0+1}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=fpEval{0.5*(1-cosd(180*iPos/160))},sloped,rotate=-45]{faPlane};
}
newframe
multiframe{19}{iAng=45+10}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=1,sloped,rotate=-iAng]{faPlane};
}
newframe*
multiframe{161}{iPos=0+1}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=fpEval{0.5*(1+cosd(180*iPos/160))},sloped,rotate=135]{faPlane};
}
newframe
multiframe{19}{iAng=135+-10}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=0,sloped,rotate=iAng]{faPlane};
}
end{animateinline}
end{center}
end{frame}
end{document}
1
You need Acrobat Reader as PDF viewer.
– AlexG
Feb 18 at 11:30
1
Thanks @AlexG. I'll have to install it then. Wont any other debian friendly PDF Viewer do?
– GermanShepherd
Feb 18 at 12:22
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
Feb 18 at 12:23
2
Firefox, Chromium. In the case of SVG output. (As animation in my answer.)
– AlexG
Feb 18 at 12:24
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
Feb 18 at 12:31
|
show 4 more comments
Example using Fontawesome plane (click on the image to see animation):
Update: The Beamer part, to fulfill the request completely.
To become independent from Adobe products, the whole presentation can be made in SVG format (Click to start presentation, F11 for full-screen, navigate with PgUp and PgDown; a Blink-based browser [Chromium, Chrome, Opera] may be needed for the background gradient to be rendered correctly):
Standalone animation LaTeX input:
Update: example extended (softer take-off and landing) and improved (node placing along path, as shown by user @Hafid).
documentclass{standalone} % animated PDF
%documentclass[dvisvgm,preview]{standalone} % animated SVG: latex + dvisvgm --font-format=woff --bbox=preview --zoom=-1
%documentclass[export]{standalone} % multipage PDF
usepackage{fontawesome}
usepackage{tikz,animate}
ExplSyntaxOn
letfpEvalfp_eval:n % expandable flt-point calculation with L3
ExplSyntaxOff
begin{document}
begin{animateinline}[
autoplay,controls,
begin={begin{tikzpicture}[scale=0.85]
coordinate (a) at (110:15); coordinate (b) at (70:15);
node [anchor=north east] at (a) {A}; node [anchor=north west] at (b) {B};
useasboundingbox (a) node [anchor=north east] {A} arc [start angle=110,end angle=70,radius=15] (b) node [anchor=north west] {B};},
end={end{tikzpicture}}
]{24}
multiframe{161}{iPos=0+1}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=fpEval{0.5*(1-cosd(180*iPos/160))},sloped,rotate=-45]{faPlane};
}
newframe
multiframe{19}{iAng=45+10}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=1,sloped,rotate=-iAng]{faPlane};
}
newframe*
multiframe{161}{iPos=0+1}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=fpEval{0.5*(1+cosd(180*iPos/160))},sloped,rotate=135]{faPlane};
}
newframe
multiframe{19}{iAng=135+-10}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=0,sloped,rotate=iAng]{faPlane};
}
end{animateinline}
end{document}
Presentation (beamer
-class ) LaTeX input. Compile with
latex presentation.tex
latex presentation.tex
dvisvgm --font-format=woff --bbox=papersize --zoom=-1 -p1,- presentation
documentclass[dvisvgm,hypertex,aspectratio=169]{beamer}
usetheme{Singapore}
usepackage{fontawesome}
usepackage{tikz,animate}
ExplSyntaxOn
letfpEvalfp_eval:n % expandable flt-point calculation with L3
ExplSyntaxOff
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% PageDown, PageUp key event handling; navigation symbols
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
usepackage[totpages]{zref}
usepackage{atbegshi}
usepackage{fontawesome}
setbeamertemplate{navigation symbols}{}
AtBeginShipout{%
AtBeginShipoutAddToBox{%
special{dvisvgm:raw
<defs>
<script type="text/javascript">
<![CDATA[
document.addEventListener('keydown', function(e){
if(e.key=='PageDown'){
ifnumthepage<ztotpages
document.location.replace('jobname-thenumexprthepage+1relax.svg');%
fi
}else if(e.key=='PageUp'){
ifnumthepage>1
document.location.replace('jobname-thenumexprthepage-1relax.svg');%
fi%
}
});
]]>
</script>
</defs>
}%
}%
AtBeginShipoutUpperLeftForeground{%
raisebox{-dimexprheight+0.5exrelax}[0pt][0pt]{makebox[paperwidth][r]{%
normalsizecolor{structure!40!}%
ifnumthepage>1%
href{jobname-thenumexprthepage-1relax.svg}{faArrowLeft}%
else%
textcolor{lightgray}{faArrowLeft}%
fihspace{0.5ex}%
ifnumthepage<ztotpages%
href{jobname-thenumexprthepage+1relax.svg}{faArrowRight}%
else%
textcolor{lightgray}{faArrowRight}%
fi%
hspace{0.5ex}%
}}%
}%
}%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
title{Fasten Seat Belts}
subtitle{Use a Web browser and press framebox{F11}}
author{AlexG}
date{today}
begin{document}
frame{titlepage}
begin{frame}{Animation}
begin{center}
begin{animateinline}[
autoplay,controls,
begin={begin{tikzpicture}[scale=0.95]
coordinate (a) at (110:15); coordinate (b) at (70:15);
node [anchor=north east] at (a) {A}; node [anchor=north west] at (b) {B};
useasboundingbox (a) node [anchor=north east] {A} arc [start angle=110,end angle=70,radius=15] (b) node [anchor=north west] {B};},
end={end{tikzpicture}}
]{24}
multiframe{161}{iPos=0+1}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=fpEval{0.5*(1-cosd(180*iPos/160))},sloped,rotate=-45]{faPlane};
}
newframe
multiframe{19}{iAng=45+10}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=1,sloped,rotate=-iAng]{faPlane};
}
newframe*
multiframe{161}{iPos=0+1}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=fpEval{0.5*(1+cosd(180*iPos/160))},sloped,rotate=135]{faPlane};
}
newframe
multiframe{19}{iAng=135+-10}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=0,sloped,rotate=iAng]{faPlane};
}
end{animateinline}
end{center}
end{frame}
end{document}
Example using Fontawesome plane (click on the image to see animation):
Update: The Beamer part, to fulfill the request completely.
To become independent from Adobe products, the whole presentation can be made in SVG format (Click to start presentation, F11 for full-screen, navigate with PgUp and PgDown; a Blink-based browser [Chromium, Chrome, Opera] may be needed for the background gradient to be rendered correctly):
Standalone animation LaTeX input:
Update: example extended (softer take-off and landing) and improved (node placing along path, as shown by user @Hafid).
documentclass{standalone} % animated PDF
%documentclass[dvisvgm,preview]{standalone} % animated SVG: latex + dvisvgm --font-format=woff --bbox=preview --zoom=-1
%documentclass[export]{standalone} % multipage PDF
usepackage{fontawesome}
usepackage{tikz,animate}
ExplSyntaxOn
letfpEvalfp_eval:n % expandable flt-point calculation with L3
ExplSyntaxOff
begin{document}
begin{animateinline}[
autoplay,controls,
begin={begin{tikzpicture}[scale=0.85]
coordinate (a) at (110:15); coordinate (b) at (70:15);
node [anchor=north east] at (a) {A}; node [anchor=north west] at (b) {B};
useasboundingbox (a) node [anchor=north east] {A} arc [start angle=110,end angle=70,radius=15] (b) node [anchor=north west] {B};},
end={end{tikzpicture}}
]{24}
multiframe{161}{iPos=0+1}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=fpEval{0.5*(1-cosd(180*iPos/160))},sloped,rotate=-45]{faPlane};
}
newframe
multiframe{19}{iAng=45+10}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=1,sloped,rotate=-iAng]{faPlane};
}
newframe*
multiframe{161}{iPos=0+1}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=fpEval{0.5*(1+cosd(180*iPos/160))},sloped,rotate=135]{faPlane};
}
newframe
multiframe{19}{iAng=135+-10}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=0,sloped,rotate=iAng]{faPlane};
}
end{animateinline}
end{document}
Presentation (beamer
-class ) LaTeX input. Compile with
latex presentation.tex
latex presentation.tex
dvisvgm --font-format=woff --bbox=papersize --zoom=-1 -p1,- presentation
documentclass[dvisvgm,hypertex,aspectratio=169]{beamer}
usetheme{Singapore}
usepackage{fontawesome}
usepackage{tikz,animate}
ExplSyntaxOn
letfpEvalfp_eval:n % expandable flt-point calculation with L3
ExplSyntaxOff
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% PageDown, PageUp key event handling; navigation symbols
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
usepackage[totpages]{zref}
usepackage{atbegshi}
usepackage{fontawesome}
setbeamertemplate{navigation symbols}{}
AtBeginShipout{%
AtBeginShipoutAddToBox{%
special{dvisvgm:raw
<defs>
<script type="text/javascript">
<![CDATA[
document.addEventListener('keydown', function(e){
if(e.key=='PageDown'){
ifnumthepage<ztotpages
document.location.replace('jobname-thenumexprthepage+1relax.svg');%
fi
}else if(e.key=='PageUp'){
ifnumthepage>1
document.location.replace('jobname-thenumexprthepage-1relax.svg');%
fi%
}
});
]]>
</script>
</defs>
}%
}%
AtBeginShipoutUpperLeftForeground{%
raisebox{-dimexprheight+0.5exrelax}[0pt][0pt]{makebox[paperwidth][r]{%
normalsizecolor{structure!40!}%
ifnumthepage>1%
href{jobname-thenumexprthepage-1relax.svg}{faArrowLeft}%
else%
textcolor{lightgray}{faArrowLeft}%
fihspace{0.5ex}%
ifnumthepage<ztotpages%
href{jobname-thenumexprthepage+1relax.svg}{faArrowRight}%
else%
textcolor{lightgray}{faArrowRight}%
fi%
hspace{0.5ex}%
}}%
}%
}%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
title{Fasten Seat Belts}
subtitle{Use a Web browser and press framebox{F11}}
author{AlexG}
date{today}
begin{document}
frame{titlepage}
begin{frame}{Animation}
begin{center}
begin{animateinline}[
autoplay,controls,
begin={begin{tikzpicture}[scale=0.95]
coordinate (a) at (110:15); coordinate (b) at (70:15);
node [anchor=north east] at (a) {A}; node [anchor=north west] at (b) {B};
useasboundingbox (a) node [anchor=north east] {A} arc [start angle=110,end angle=70,radius=15] (b) node [anchor=north west] {B};},
end={end{tikzpicture}}
]{24}
multiframe{161}{iPos=0+1}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=fpEval{0.5*(1-cosd(180*iPos/160))},sloped,rotate=-45]{faPlane};
}
newframe
multiframe{19}{iAng=45+10}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=1,sloped,rotate=-iAng]{faPlane};
}
newframe*
multiframe{161}{iPos=0+1}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=fpEval{0.5*(1+cosd(180*iPos/160))},sloped,rotate=135]{faPlane};
}
newframe
multiframe{19}{iAng=135+-10}{%
path[draw] (a) arc [start angle=110,end angle=70,radius=15] (b) node [pos=0,sloped,rotate=iAng]{faPlane};
}
end{animateinline}
end{center}
end{frame}
end{document}
edited Feb 19 at 12:39
answered Feb 18 at 11:19
AlexGAlexG
33.9k480149
33.9k480149
1
You need Acrobat Reader as PDF viewer.
– AlexG
Feb 18 at 11:30
1
Thanks @AlexG. I'll have to install it then. Wont any other debian friendly PDF Viewer do?
– GermanShepherd
Feb 18 at 12:22
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
Feb 18 at 12:23
2
Firefox, Chromium. In the case of SVG output. (As animation in my answer.)
– AlexG
Feb 18 at 12:24
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
Feb 18 at 12:31
|
show 4 more comments
1
You need Acrobat Reader as PDF viewer.
– AlexG
Feb 18 at 11:30
1
Thanks @AlexG. I'll have to install it then. Wont any other debian friendly PDF Viewer do?
– GermanShepherd
Feb 18 at 12:22
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
Feb 18 at 12:23
2
Firefox, Chromium. In the case of SVG output. (As animation in my answer.)
– AlexG
Feb 18 at 12:24
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
Feb 18 at 12:31
1
1
You need Acrobat Reader as PDF viewer.
– AlexG
Feb 18 at 11:30
You need Acrobat Reader as PDF viewer.
– AlexG
Feb 18 at 11:30
1
1
Thanks @AlexG. I'll have to install it then. Wont any other debian friendly PDF Viewer do?
– GermanShepherd
Feb 18 at 12:22
Thanks @AlexG. I'll have to install it then. Wont any other debian friendly PDF Viewer do?
– GermanShepherd
Feb 18 at 12:22
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
Feb 18 at 12:23
@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
Feb 18 at 12:23
2
2
Firefox, Chromium. In the case of SVG output. (As animation in my answer.)
– AlexG
Feb 18 at 12:24
Firefox, Chromium. In the case of SVG output. (As animation in my answer.)
– AlexG
Feb 18 at 12:24
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
Feb 18 at 12:31
@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
Feb 18 at 12:31
|
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
Feb 18 at 16:31
@KJO I added that information (and also removed the initial kick;-).
– marmot
Feb 18 at 16:36
+1 more and more if I could
– KJO
Feb 18 at 16:40
Certainly the best solution here. +1
– AlexG
Feb 18 at 16:43
3
@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
Feb 18 at 17:09
|
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
Feb 18 at 16:31
@KJO I added that information (and also removed the initial kick;-).
– marmot
Feb 18 at 16:36
+1 more and more if I could
– KJO
Feb 18 at 16:40
Certainly the best solution here. +1
– AlexG
Feb 18 at 16:43
3
@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
Feb 18 at 17:09
|
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 Feb 18 at 17:07
answered Feb 18 at 16:08
marmotmarmot
106k5129243
106k5129243
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
Feb 18 at 16:31
@KJO I added that information (and also removed the initial kick;-).
– marmot
Feb 18 at 16:36
+1 more and more if I could
– KJO
Feb 18 at 16:40
Certainly the best solution here. +1
– AlexG
Feb 18 at 16:43
3
@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
Feb 18 at 17:09
|
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
Feb 18 at 16:31
@KJO I added that information (and also removed the initial kick;-).
– marmot
Feb 18 at 16:36
+1 more and more if I could
– KJO
Feb 18 at 16:40
Certainly the best solution here. +1
– AlexG
Feb 18 at 16:43
3
@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
Feb 18 at 17:09
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
Feb 18 at 16:31
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
Feb 18 at 16:31
@KJO I added that information (and also removed the initial kick;-).
– marmot
Feb 18 at 16:36
@KJO I added that information (and also removed the initial kick;-).
– marmot
Feb 18 at 16:36
+1 more and more if I could
– KJO
Feb 18 at 16:40
+1 more and more if I could
– KJO
Feb 18 at 16:40
Certainly the best solution here. +1
– AlexG
Feb 18 at 16:43
Certainly the best solution here. +1
– AlexG
Feb 18 at 16:43
3
3
@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
Feb 18 at 17:09
@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
Feb 18 at 17:09
|
show 6 more comments
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}
It was this method of positioning a node along the path I was looking for. Thanks, +1!
– AlexG
Feb 19 at 7:53
@AlexG Very pleased to know that my answer is helpful to you
– Hafid Boukhoulda
Feb 19 at 8:31
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}
It was this method of positioning a node along the path I was looking for. Thanks, +1!
– AlexG
Feb 19 at 7:53
@AlexG Very pleased to know that my answer is helpful to you
– Hafid Boukhoulda
Feb 19 at 8:31
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 Feb 18 at 14:51
Raaja
4,47621138
4,47621138
answered Feb 18 at 14:32
Hafid BoukhouldaHafid Boukhoulda
4,5341625
4,5341625
It was this method of positioning a node along the path I was looking for. Thanks, +1!
– AlexG
Feb 19 at 7:53
@AlexG Very pleased to know that my answer is helpful to you
– Hafid Boukhoulda
Feb 19 at 8:31
add a comment |
It was this method of positioning a node along the path I was looking for. Thanks, +1!
– AlexG
Feb 19 at 7:53
@AlexG Very pleased to know that my answer is helpful to you
– Hafid Boukhoulda
Feb 19 at 8:31
It was this method of positioning a node along the path I was looking for. Thanks, +1!
– AlexG
Feb 19 at 7:53
It was this method of positioning a node along the path I was looking for. Thanks, +1!
– AlexG
Feb 19 at 7:53
@AlexG Very pleased to know that my answer is helpful to you
– Hafid Boukhoulda
Feb 19 at 8:31
@AlexG Very pleased to know that my answer is helpful to you
– Hafid Boukhoulda
Feb 19 at 8:31
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
Feb 18 at 12:23
2
@Raaja a dirty way for make a .gif is using a screen capture software like Apowersoft
– vi pa
Feb 18 at 12:32
@GermanShepherd You are welcome!
– Raaja
Feb 18 at 12:39
1
@Raaja Very nice and good. You airplane is very fast. :-)
– Sebastiano
Feb 19 at 10:13
1
@Sebastiano Thank you. I'll slide you a secret, my TiKzplane possess time-warping capabilities;-)
.
– Raaja
Feb 19 at 10:17
|
show 1 more 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
Feb 18 at 12:23
2
@Raaja a dirty way for make a .gif is using a screen capture software like Apowersoft
– vi pa
Feb 18 at 12:32
@GermanShepherd You are welcome!
– Raaja
Feb 18 at 12:39
1
@Raaja Very nice and good. You airplane is very fast. :-)
– Sebastiano
Feb 19 at 10:13
1
@Sebastiano Thank you. I'll slide you a secret, my TiKzplane possess time-warping capabilities;-)
.
– Raaja
Feb 19 at 10:17
|
show 1 more 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 Feb 18 at 19:43
answered Feb 18 at 11:14
RaajaRaaja
4,47621138
4,47621138
1
Thank you @Raaja. This seems good to me.. I 'll try to play around with this.
– GermanShepherd
Feb 18 at 12:23
2
@Raaja a dirty way for make a .gif is using a screen capture software like Apowersoft
– vi pa
Feb 18 at 12:32
@GermanShepherd You are welcome!
– Raaja
Feb 18 at 12:39
1
@Raaja Very nice and good. You airplane is very fast. :-)
– Sebastiano
Feb 19 at 10:13
1
@Sebastiano Thank you. I'll slide you a secret, my TiKzplane possess time-warping capabilities;-)
.
– Raaja
Feb 19 at 10:17
|
show 1 more comment
1
Thank you @Raaja. This seems good to me.. I 'll try to play around with this.
– GermanShepherd
Feb 18 at 12:23
2
@Raaja a dirty way for make a .gif is using a screen capture software like Apowersoft
– vi pa
Feb 18 at 12:32
@GermanShepherd You are welcome!
– Raaja
Feb 18 at 12:39
1
@Raaja Very nice and good. You airplane is very fast. :-)
– Sebastiano
Feb 19 at 10:13
1
@Sebastiano Thank you. I'll slide you a secret, my TiKzplane possess time-warping capabilities;-)
.
– Raaja
Feb 19 at 10:17
1
1
Thank you @Raaja. This seems good to me.. I 'll try to play around with this.
– GermanShepherd
Feb 18 at 12:23
Thank you @Raaja. This seems good to me.. I 'll try to play around with this.
– GermanShepherd
Feb 18 at 12:23
2
2
@Raaja a dirty way for make a .gif is using a screen capture software like Apowersoft
– vi pa
Feb 18 at 12:32
@Raaja a dirty way for make a .gif is using a screen capture software like Apowersoft
– vi pa
Feb 18 at 12:32
@GermanShepherd You are welcome!
– Raaja
Feb 18 at 12:39
@GermanShepherd You are welcome!
– Raaja
Feb 18 at 12:39
1
1
@Raaja Very nice and good. You airplane is very fast. :-)
– Sebastiano
Feb 19 at 10:13
@Raaja Very nice and good. You airplane is very fast. :-)
– Sebastiano
Feb 19 at 10:13
1
1
@Sebastiano Thank you. I'll slide you a secret, my TiKzplane possess time-warping capabilities
;-)
.– Raaja
Feb 19 at 10:17
@Sebastiano Thank you. I'll slide you a secret, my TiKzplane possess time-warping capabilities
;-)
.– Raaja
Feb 19 at 10:17
|
show 1 more comment
Slightly modified from https://github.com/samcarter/Extravanganza2018/blob/master/paulo/MaryDuck/MaryDuck.tex by @PauloCereda
documentclass{beamer}
usepackage{tikzducks}
setbeamertemplate{navigation symbols}{}
usetikzlibrary{calc,decorations.markings}
setbeamertemplate{background}{%
begin{tikzpicture}[remember picture,overlay,
decoration={markings, mark=at position thepage/insertdocumentendpage with {
begin{scope}[xscale=-1]
duck
fill[orange] (0.7331,0.5229) .. controls (1.8688,-0.6326) and (2.2337,0.0383) .. (1.2819,0.7331) -- cycle;
fill[brown] (1.3848,1.6771) .. controls (1.2665,2.2823) and (0.5559,2.2697) .. (0.4000,1.6455) .. controls (0.5711,1.6714) and (0.8503,1.6562) .. (0.9926,1.6247) .. controls (0.9703,1.4641) and (1.0307,1.0718) .. (1.1444,1.0104) .. controls (1.3485,0.9002) and (1.4461,1.4498) .. (1.3848,1.6771) -- cycle;
fill[gray] (0.9153,1.4857) -- (0.9472,1.6278) -- (1.3926,1.5288) -- (1.3840,1.4228) -- cycle;
fill[gray] (0.6484,1.6773) -- (0.6601,1.7155) -- (0.7558,1.6863) -- (0.7441,1.6480) -- cycle;
draw[gray,fill=black] (0.83,1.57) circle (0.135);
draw[gray,fill=black] (0.54,1.65) circle (0.12);
end{scope}
}}
]
path[postaction=decorate]
($(current page.north west)+(-1,0)$) to[out=-30,in=90]
(current page.center) to[out=-90,in=180,looseness=6,distance=4cm]
(current page.center) to[out=0,in=160]
(current page.south east);
end{tikzpicture}%
}
begin{document}
begin{frame}
pause[50]
end{frame}
end{document}
Do ducks need artificial wings?
– AlexG
4 hours ago
Also, downward loopings are dangerous!
– AlexG
4 hours ago
I have always been especially fond of a plane duck!
– R. Schumacher
3 hours ago
add a comment |
Slightly modified from https://github.com/samcarter/Extravanganza2018/blob/master/paulo/MaryDuck/MaryDuck.tex by @PauloCereda
documentclass{beamer}
usepackage{tikzducks}
setbeamertemplate{navigation symbols}{}
usetikzlibrary{calc,decorations.markings}
setbeamertemplate{background}{%
begin{tikzpicture}[remember picture,overlay,
decoration={markings, mark=at position thepage/insertdocumentendpage with {
begin{scope}[xscale=-1]
duck
fill[orange] (0.7331,0.5229) .. controls (1.8688,-0.6326) and (2.2337,0.0383) .. (1.2819,0.7331) -- cycle;
fill[brown] (1.3848,1.6771) .. controls (1.2665,2.2823) and (0.5559,2.2697) .. (0.4000,1.6455) .. controls (0.5711,1.6714) and (0.8503,1.6562) .. (0.9926,1.6247) .. controls (0.9703,1.4641) and (1.0307,1.0718) .. (1.1444,1.0104) .. controls (1.3485,0.9002) and (1.4461,1.4498) .. (1.3848,1.6771) -- cycle;
fill[gray] (0.9153,1.4857) -- (0.9472,1.6278) -- (1.3926,1.5288) -- (1.3840,1.4228) -- cycle;
fill[gray] (0.6484,1.6773) -- (0.6601,1.7155) -- (0.7558,1.6863) -- (0.7441,1.6480) -- cycle;
draw[gray,fill=black] (0.83,1.57) circle (0.135);
draw[gray,fill=black] (0.54,1.65) circle (0.12);
end{scope}
}}
]
path[postaction=decorate]
($(current page.north west)+(-1,0)$) to[out=-30,in=90]
(current page.center) to[out=-90,in=180,looseness=6,distance=4cm]
(current page.center) to[out=0,in=160]
(current page.south east);
end{tikzpicture}%
}
begin{document}
begin{frame}
pause[50]
end{frame}
end{document}
Do ducks need artificial wings?
– AlexG
4 hours ago
Also, downward loopings are dangerous!
– AlexG
4 hours ago
I have always been especially fond of a plane duck!
– R. Schumacher
3 hours ago
add a comment |
Slightly modified from https://github.com/samcarter/Extravanganza2018/blob/master/paulo/MaryDuck/MaryDuck.tex by @PauloCereda
documentclass{beamer}
usepackage{tikzducks}
setbeamertemplate{navigation symbols}{}
usetikzlibrary{calc,decorations.markings}
setbeamertemplate{background}{%
begin{tikzpicture}[remember picture,overlay,
decoration={markings, mark=at position thepage/insertdocumentendpage with {
begin{scope}[xscale=-1]
duck
fill[orange] (0.7331,0.5229) .. controls (1.8688,-0.6326) and (2.2337,0.0383) .. (1.2819,0.7331) -- cycle;
fill[brown] (1.3848,1.6771) .. controls (1.2665,2.2823) and (0.5559,2.2697) .. (0.4000,1.6455) .. controls (0.5711,1.6714) and (0.8503,1.6562) .. (0.9926,1.6247) .. controls (0.9703,1.4641) and (1.0307,1.0718) .. (1.1444,1.0104) .. controls (1.3485,0.9002) and (1.4461,1.4498) .. (1.3848,1.6771) -- cycle;
fill[gray] (0.9153,1.4857) -- (0.9472,1.6278) -- (1.3926,1.5288) -- (1.3840,1.4228) -- cycle;
fill[gray] (0.6484,1.6773) -- (0.6601,1.7155) -- (0.7558,1.6863) -- (0.7441,1.6480) -- cycle;
draw[gray,fill=black] (0.83,1.57) circle (0.135);
draw[gray,fill=black] (0.54,1.65) circle (0.12);
end{scope}
}}
]
path[postaction=decorate]
($(current page.north west)+(-1,0)$) to[out=-30,in=90]
(current page.center) to[out=-90,in=180,looseness=6,distance=4cm]
(current page.center) to[out=0,in=160]
(current page.south east);
end{tikzpicture}%
}
begin{document}
begin{frame}
pause[50]
end{frame}
end{document}
Slightly modified from https://github.com/samcarter/Extravanganza2018/blob/master/paulo/MaryDuck/MaryDuck.tex by @PauloCereda
documentclass{beamer}
usepackage{tikzducks}
setbeamertemplate{navigation symbols}{}
usetikzlibrary{calc,decorations.markings}
setbeamertemplate{background}{%
begin{tikzpicture}[remember picture,overlay,
decoration={markings, mark=at position thepage/insertdocumentendpage with {
begin{scope}[xscale=-1]
duck
fill[orange] (0.7331,0.5229) .. controls (1.8688,-0.6326) and (2.2337,0.0383) .. (1.2819,0.7331) -- cycle;
fill[brown] (1.3848,1.6771) .. controls (1.2665,2.2823) and (0.5559,2.2697) .. (0.4000,1.6455) .. controls (0.5711,1.6714) and (0.8503,1.6562) .. (0.9926,1.6247) .. controls (0.9703,1.4641) and (1.0307,1.0718) .. (1.1444,1.0104) .. controls (1.3485,0.9002) and (1.4461,1.4498) .. (1.3848,1.6771) -- cycle;
fill[gray] (0.9153,1.4857) -- (0.9472,1.6278) -- (1.3926,1.5288) -- (1.3840,1.4228) -- cycle;
fill[gray] (0.6484,1.6773) -- (0.6601,1.7155) -- (0.7558,1.6863) -- (0.7441,1.6480) -- cycle;
draw[gray,fill=black] (0.83,1.57) circle (0.135);
draw[gray,fill=black] (0.54,1.65) circle (0.12);
end{scope}
}}
]
path[postaction=decorate]
($(current page.north west)+(-1,0)$) to[out=-30,in=90]
(current page.center) to[out=-90,in=180,looseness=6,distance=4cm]
(current page.center) to[out=0,in=160]
(current page.south east);
end{tikzpicture}%
}
begin{document}
begin{frame}
pause[50]
end{frame}
end{document}
answered 5 hours ago
samcartersamcarter
90.2k7104293
90.2k7104293
Do ducks need artificial wings?
– AlexG
4 hours ago
Also, downward loopings are dangerous!
– AlexG
4 hours ago
I have always been especially fond of a plane duck!
– R. Schumacher
3 hours ago
add a comment |
Do ducks need artificial wings?
– AlexG
4 hours ago
Also, downward loopings are dangerous!
– AlexG
4 hours ago
I have always been especially fond of a plane duck!
– R. Schumacher
3 hours ago
Do ducks need artificial wings?
– AlexG
4 hours ago
Do ducks need artificial wings?
– AlexG
4 hours ago
Also, downward loopings are dangerous!
– AlexG
4 hours ago
Also, downward loopings are dangerous!
– AlexG
4 hours ago
I have always been especially fond of a plane duck!
– R. Schumacher
3 hours ago
I have always been especially fond of a plane duck!
– R. Schumacher
3 hours ago
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');
});
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');
});
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');
});
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');
});
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