Simple Line in LaTeX Help! Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30 pm US/Eastern)Exporting animation created with animate packageHow can you make animated objects on LaTeX and what programs do you have to use?Using beamer tools in tikz, without creating slidesRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?Calculate the intersection between a path enclosed by a `scope` and another pathChanging Size of Arrows, Labels, Loops in Diagrams and Directed GraphsTikZ scaling graphic and adjust node position and keep font sizeNumerical conditional within tikz keys?How to draw points in TikZ?TikZ: Drawing an arc from an intersection to an intersectionLine up nested tikz enviroments or how to get rid of themProblems with nested TikZpictures

How do I deal with an erroneously large refund?

Putting Ant-Man on house arrest

"Working on a knee"

What's parked in Mil Moscow helicopter plant?

What is the purpose of the side handle on a hand ("eggbeater") drill?

What was Apollo 13's "Little Jolt" after MECO?

Is it appropriate to mention a relatable company blog post when you're asked about the company?

Is there a way to fake a method response using Mock or Stubs?

Will I lose my paid in full property

Where to find documentation for `whois` command options?

What does the black goddess statue do and what is it?

false 'Security alert' from Google - every login generates mails from 'no-reply@accounts.google.com'

/bin/ls sorts differently than just ls

`FindRoot [ ]`::jsing: Encountered a singular Jacobian at a point...WHY

Simulate round-robin tournament draw

Why I cannot instantiate a class whose constructor is private in a friend class?

When I export an AI 300x60 art board it saves with bigger dimensions

Why did Israel vote against lifting the American embargo on Cuba?

Bright yellow or light yellow?

How to translate "red flag" into Spanish?

Can gravitational waves pass through a black hole?

What does こした mean?

What to do with someone that cheated their way though university and a PhD program?

Is it OK if I do not take the receipt in Germany?



Simple Line in LaTeX Help!



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30 pm US/Eastern)Exporting animation created with animate packageHow can you make animated objects on LaTeX and what programs do you have to use?Using beamer tools in tikz, without creating slidesRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?Calculate the intersection between a path enclosed by a `scope` and another pathChanging Size of Arrows, Labels, Loops in Diagrams and Directed GraphsTikZ scaling graphic and adjust node position and keep font sizeNumerical conditional within tikz keys?How to draw points in TikZ?TikZ: Drawing an arc from an intersection to an intersectionLine up nested tikz enviroments or how to get rid of themProblems with nested TikZpictures










7















I'm working in a project for university using latex and i'll make a gif explaning the radians of math! And I really dont know how to make this type of line (i'll put the example below) !! Plz help me guys!!



enter image description here



The project that ive done so far :D
http://www.mediafire.com/file/wc4xazt8k4h4t5h/testeAnime.pdf/file



WHAT IVE DONE :D



documentclass[border=1cm]standalone
usepackage[utf8]inputenc
usepackagetikz
begindocument

begintikzpicture





beginscope
draw (0,0) circle (10cm);
draw[line width=0.15cm, blue] (10,0) arc (0:360:10) ;

draw[-] (-12,0) -- (12,0) node[right] $x$;
draw[-] (0,-12) -- (0,12) node[above] $y$;
draw[line width=0.15cm,red] (0,0) -- (10,-0);
node[scale=15.5, red, right, opacity=0.5] at (2,2) r;

draw[red][fill] (0,0) circle (0.2cm);
draw[red][fill] (10,-0) circle (0.2cm);


endscope


endtikzpicture

enddocument









share|improve this question









New contributor




Felipe Fonseca is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 1





    What have you tried so far? Please show some efforts

    – JouleV
    2 days ago












  • I dont know how to send my animated pdf to you

    – Felipe Fonseca
    2 days ago











  • i can show you what i've done so far

    – Felipe Fonseca
    2 days ago






  • 3





    I am not asking for an animated PDF. I am asking for a LaTeX code that you have had, so that we know where you got stuck at and it will help us help you

    – JouleV
    2 days ago






  • 1





    But you get this type of line in your MWE? What do you want to achieve? The animation?

    – marmot
    2 days ago















7















I'm working in a project for university using latex and i'll make a gif explaning the radians of math! And I really dont know how to make this type of line (i'll put the example below) !! Plz help me guys!!



enter image description here



The project that ive done so far :D
http://www.mediafire.com/file/wc4xazt8k4h4t5h/testeAnime.pdf/file



WHAT IVE DONE :D



documentclass[border=1cm]standalone
usepackage[utf8]inputenc
usepackagetikz
begindocument

begintikzpicture





beginscope
draw (0,0) circle (10cm);
draw[line width=0.15cm, blue] (10,0) arc (0:360:10) ;

draw[-] (-12,0) -- (12,0) node[right] $x$;
draw[-] (0,-12) -- (0,12) node[above] $y$;
draw[line width=0.15cm,red] (0,0) -- (10,-0);
node[scale=15.5, red, right, opacity=0.5] at (2,2) r;

draw[red][fill] (0,0) circle (0.2cm);
draw[red][fill] (10,-0) circle (0.2cm);


endscope


endtikzpicture

enddocument









share|improve this question









New contributor




Felipe Fonseca is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 1





    What have you tried so far? Please show some efforts

    – JouleV
    2 days ago












  • I dont know how to send my animated pdf to you

    – Felipe Fonseca
    2 days ago











  • i can show you what i've done so far

    – Felipe Fonseca
    2 days ago






  • 3





    I am not asking for an animated PDF. I am asking for a LaTeX code that you have had, so that we know where you got stuck at and it will help us help you

    – JouleV
    2 days ago






  • 1





    But you get this type of line in your MWE? What do you want to achieve? The animation?

    – marmot
    2 days ago













7












7








7


1






I'm working in a project for university using latex and i'll make a gif explaning the radians of math! And I really dont know how to make this type of line (i'll put the example below) !! Plz help me guys!!



enter image description here



The project that ive done so far :D
http://www.mediafire.com/file/wc4xazt8k4h4t5h/testeAnime.pdf/file



WHAT IVE DONE :D



documentclass[border=1cm]standalone
usepackage[utf8]inputenc
usepackagetikz
begindocument

begintikzpicture





beginscope
draw (0,0) circle (10cm);
draw[line width=0.15cm, blue] (10,0) arc (0:360:10) ;

draw[-] (-12,0) -- (12,0) node[right] $x$;
draw[-] (0,-12) -- (0,12) node[above] $y$;
draw[line width=0.15cm,red] (0,0) -- (10,-0);
node[scale=15.5, red, right, opacity=0.5] at (2,2) r;

draw[red][fill] (0,0) circle (0.2cm);
draw[red][fill] (10,-0) circle (0.2cm);


endscope


endtikzpicture

enddocument









share|improve this question









New contributor




Felipe Fonseca is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I'm working in a project for university using latex and i'll make a gif explaning the radians of math! And I really dont know how to make this type of line (i'll put the example below) !! Plz help me guys!!



enter image description here



The project that ive done so far :D
http://www.mediafire.com/file/wc4xazt8k4h4t5h/testeAnime.pdf/file



WHAT IVE DONE :D



documentclass[border=1cm]standalone
usepackage[utf8]inputenc
usepackagetikz
begindocument

begintikzpicture





beginscope
draw (0,0) circle (10cm);
draw[line width=0.15cm, blue] (10,0) arc (0:360:10) ;

draw[-] (-12,0) -- (12,0) node[right] $x$;
draw[-] (0,-12) -- (0,12) node[above] $y$;
draw[line width=0.15cm,red] (0,0) -- (10,-0);
node[scale=15.5, red, right, opacity=0.5] at (2,2) r;

draw[red][fill] (0,0) circle (0.2cm);
draw[red][fill] (10,-0) circle (0.2cm);


endscope


endtikzpicture

enddocument






tikz-pgf animations






share|improve this question









New contributor




Felipe Fonseca is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Felipe Fonseca is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 2 days ago







Felipe Fonseca













New contributor




Felipe Fonseca is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 2 days ago









Felipe FonsecaFelipe Fonseca

415




415




New contributor




Felipe Fonseca is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Felipe Fonseca is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Felipe Fonseca is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







  • 1





    What have you tried so far? Please show some efforts

    – JouleV
    2 days ago












  • I dont know how to send my animated pdf to you

    – Felipe Fonseca
    2 days ago











  • i can show you what i've done so far

    – Felipe Fonseca
    2 days ago






  • 3





    I am not asking for an animated PDF. I am asking for a LaTeX code that you have had, so that we know where you got stuck at and it will help us help you

    – JouleV
    2 days ago






  • 1





    But you get this type of line in your MWE? What do you want to achieve? The animation?

    – marmot
    2 days ago












  • 1





    What have you tried so far? Please show some efforts

    – JouleV
    2 days ago












  • I dont know how to send my animated pdf to you

    – Felipe Fonseca
    2 days ago











  • i can show you what i've done so far

    – Felipe Fonseca
    2 days ago






  • 3





    I am not asking for an animated PDF. I am asking for a LaTeX code that you have had, so that we know where you got stuck at and it will help us help you

    – JouleV
    2 days ago






  • 1





    But you get this type of line in your MWE? What do you want to achieve? The animation?

    – marmot
    2 days ago







1




1





What have you tried so far? Please show some efforts

– JouleV
2 days ago






What have you tried so far? Please show some efforts

– JouleV
2 days ago














I dont know how to send my animated pdf to you

– Felipe Fonseca
2 days ago





I dont know how to send my animated pdf to you

– Felipe Fonseca
2 days ago













i can show you what i've done so far

– Felipe Fonseca
2 days ago





i can show you what i've done so far

– Felipe Fonseca
2 days ago




3




3





I am not asking for an animated PDF. I am asking for a LaTeX code that you have had, so that we know where you got stuck at and it will help us help you

– JouleV
2 days ago





I am not asking for an animated PDF. I am asking for a LaTeX code that you have had, so that we know where you got stuck at and it will help us help you

– JouleV
2 days ago




1




1





But you get this type of line in your MWE? What do you want to achieve? The animation?

– marmot
2 days ago





But you get this type of line in your MWE? What do you want to achieve? The animation?

– marmot
2 days ago










2 Answers
2






active

oldest

votes


















12














If you wish to produce such animated gifs, you may want to compile



documentclass[border=1cm,tikz]standalone
usetikzlibraryarrows.meta
begindocument
foreach X in 180,175,...,90
begintikzpicture
beginscope
draw (0,0) circle (10cm);
draw[line width=0.15cm, blue] (10,0) arc (0:360:10) ;
draw[-] (-12,0) -- (12,0) node[right] $x$;
draw[-] (0,-12) -- (0,12) node[above] $y$;
draw[line width=0.15cm,red,Circle-Circle,shorten >=-2*pgflinewidth,shorten
<=-2*pgflinewidth] (10,0) -- ++(X:10);
node[scale=15.5, red, right, opacity=0.5] at (2,2) r;
endscope
endtikzpicture
enddocument


with pdflatex and then convert the resulting pdf with



convert -density 300 -delay 34 -loop 0 -alpha remove outfile.pdf ani.gif


to get



enter image description here



When you attempt to patch several of those together, you want to define some command which behaves similarly as the beamer command only.



documentclass[border=1cm,tikz]standalone
usetikzlibraryarrows.meta
defOnly<#1-#2>#3ifnumnumexprX+1>#1
ifnumnumexprX-1<#2
pgfmathtruncatemacroDeltaXX+1-#1
xdefDeltaXDeltaX
#3
fifi
begindocument
pgfmathtruncatemacroXmax50
foreach X in 0,1,...,Xmax
begintikzpicture[fat line/.style=line width=0.15cm,red,Circle-Circle,shorten >=-2*pgflinewidth,shorten
<=-2*pgflinewidth,cc/.style=line width=0.15cm,
blue,annot/.style=scale=15.5]
draw[-] (-12,0) -- (12,0) node[right] $x$;
draw[-] (0,-12) -- (0,12) node[above] $y$;
%
Only<2-5>
draw[fat line] (0,0) -- (2*X,0);

Only<6-10>
draw[fat line] (0,0) -- (10,0) node[midway,above,annot,red]$r$;

Only<11-25>
typeoutDelta=DeltaX
draw[cc] (10,0) arc[start angle=0,end angle=DeltaX*24,radius=10];
draw[fat line] (0,0) -- (DeltaX*24:10);

Only<26-Xmax>
draw[cc] circle[radius=10cm];

Only<26-35>draw[fat line] (10,0) -- ++ (180-DeltaX*9:10);
Only<36-45>draw[fat line] (10,0) arc(0:18*DeltaX/pi:10) -- ++
(18*DeltaX/pi+90:10-DeltaX);
Only<46-50>
draw [fill=green!70!black,fill opacity=0.2] (0,0) -- (3,0)
node[green!70!black,below,annot,opacity=1]rad arc[start angle=0,
end angle=180/pi,radius=3] -- cycle;
draw[cc,green!70!black] (10,0) -- (0,0)
-- (180/pi:10);

endtikzpicture
enddocument


enter image description here






share|improve this answer

























  • omg man you are a beast!!!!!!!!!!!!!!!!!!! Ty so much! <3

    – Felipe Fonseca
    2 days ago






  • 1





    @FelipeFonseca If marmot's answer helps you, consider accepting it by clicking on the checkmark on the left of the answer

    – JouleV
    2 days ago











  • I clicked ! Ty so much! But just one more question :D There is a way to put marmot's animation frame by frama separed in diferents pdfs? Or it needs to be one?

    – Felipe Fonseca
    2 days ago











  • Like ive done here: prntscr.com/nerl0s and prntscr.com/nerl3o

    – Felipe Fonseca
    2 days ago











  • @FelipeFonseca I added something that might be useful for that task.

    – marmot
    2 days ago


















8














A PSTricks solution only for fun purposes.



documentclass[pstricks,border=12pt,12pt]standalone
radians
defobj#1%
beginpspicture(-4,-4)(4,4)
pscircle4
pssetlinecolor=red,linewidth=2pslinewidth
psarc(0,0)40#1
rput#1(4;#1)psline(!0 1 #1 sub 4 mul)
endpspicture
begindocument
foreach i in 0,0.1,...,1.0obji
enddocument


enter image description here






share|improve this answer























  • OMG! You guys know everthing about latex! Damnnnnnnnnnnnnnn

    – Felipe Fonseca
    2 days ago











  • @FelipeFonseca: I read your mind. :-)

    – Artificial Hairless Armpit
    2 days ago











  • I need to transform this gif in latex :D google.com/…:

    – Felipe Fonseca
    2 days ago











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
);



);






Felipe Fonseca is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f485843%2fsimple-line-in-latex-help%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









12














If you wish to produce such animated gifs, you may want to compile



documentclass[border=1cm,tikz]standalone
usetikzlibraryarrows.meta
begindocument
foreach X in 180,175,...,90
begintikzpicture
beginscope
draw (0,0) circle (10cm);
draw[line width=0.15cm, blue] (10,0) arc (0:360:10) ;
draw[-] (-12,0) -- (12,0) node[right] $x$;
draw[-] (0,-12) -- (0,12) node[above] $y$;
draw[line width=0.15cm,red,Circle-Circle,shorten >=-2*pgflinewidth,shorten
<=-2*pgflinewidth] (10,0) -- ++(X:10);
node[scale=15.5, red, right, opacity=0.5] at (2,2) r;
endscope
endtikzpicture
enddocument


with pdflatex and then convert the resulting pdf with



convert -density 300 -delay 34 -loop 0 -alpha remove outfile.pdf ani.gif


to get



enter image description here



When you attempt to patch several of those together, you want to define some command which behaves similarly as the beamer command only.



documentclass[border=1cm,tikz]standalone
usetikzlibraryarrows.meta
defOnly<#1-#2>#3ifnumnumexprX+1>#1
ifnumnumexprX-1<#2
pgfmathtruncatemacroDeltaXX+1-#1
xdefDeltaXDeltaX
#3
fifi
begindocument
pgfmathtruncatemacroXmax50
foreach X in 0,1,...,Xmax
begintikzpicture[fat line/.style=line width=0.15cm,red,Circle-Circle,shorten >=-2*pgflinewidth,shorten
<=-2*pgflinewidth,cc/.style=line width=0.15cm,
blue,annot/.style=scale=15.5]
draw[-] (-12,0) -- (12,0) node[right] $x$;
draw[-] (0,-12) -- (0,12) node[above] $y$;
%
Only<2-5>
draw[fat line] (0,0) -- (2*X,0);

Only<6-10>
draw[fat line] (0,0) -- (10,0) node[midway,above,annot,red]$r$;

Only<11-25>
typeoutDelta=DeltaX
draw[cc] (10,0) arc[start angle=0,end angle=DeltaX*24,radius=10];
draw[fat line] (0,0) -- (DeltaX*24:10);

Only<26-Xmax>
draw[cc] circle[radius=10cm];

Only<26-35>draw[fat line] (10,0) -- ++ (180-DeltaX*9:10);
Only<36-45>draw[fat line] (10,0) arc(0:18*DeltaX/pi:10) -- ++
(18*DeltaX/pi+90:10-DeltaX);
Only<46-50>
draw [fill=green!70!black,fill opacity=0.2] (0,0) -- (3,0)
node[green!70!black,below,annot,opacity=1]rad arc[start angle=0,
end angle=180/pi,radius=3] -- cycle;
draw[cc,green!70!black] (10,0) -- (0,0)
-- (180/pi:10);

endtikzpicture
enddocument


enter image description here






share|improve this answer

























  • omg man you are a beast!!!!!!!!!!!!!!!!!!! Ty so much! <3

    – Felipe Fonseca
    2 days ago






  • 1





    @FelipeFonseca If marmot's answer helps you, consider accepting it by clicking on the checkmark on the left of the answer

    – JouleV
    2 days ago











  • I clicked ! Ty so much! But just one more question :D There is a way to put marmot's animation frame by frama separed in diferents pdfs? Or it needs to be one?

    – Felipe Fonseca
    2 days ago











  • Like ive done here: prntscr.com/nerl0s and prntscr.com/nerl3o

    – Felipe Fonseca
    2 days ago











  • @FelipeFonseca I added something that might be useful for that task.

    – marmot
    2 days ago















12














If you wish to produce such animated gifs, you may want to compile



documentclass[border=1cm,tikz]standalone
usetikzlibraryarrows.meta
begindocument
foreach X in 180,175,...,90
begintikzpicture
beginscope
draw (0,0) circle (10cm);
draw[line width=0.15cm, blue] (10,0) arc (0:360:10) ;
draw[-] (-12,0) -- (12,0) node[right] $x$;
draw[-] (0,-12) -- (0,12) node[above] $y$;
draw[line width=0.15cm,red,Circle-Circle,shorten >=-2*pgflinewidth,shorten
<=-2*pgflinewidth] (10,0) -- ++(X:10);
node[scale=15.5, red, right, opacity=0.5] at (2,2) r;
endscope
endtikzpicture
enddocument


with pdflatex and then convert the resulting pdf with



convert -density 300 -delay 34 -loop 0 -alpha remove outfile.pdf ani.gif


to get



enter image description here



When you attempt to patch several of those together, you want to define some command which behaves similarly as the beamer command only.



documentclass[border=1cm,tikz]standalone
usetikzlibraryarrows.meta
defOnly<#1-#2>#3ifnumnumexprX+1>#1
ifnumnumexprX-1<#2
pgfmathtruncatemacroDeltaXX+1-#1
xdefDeltaXDeltaX
#3
fifi
begindocument
pgfmathtruncatemacroXmax50
foreach X in 0,1,...,Xmax
begintikzpicture[fat line/.style=line width=0.15cm,red,Circle-Circle,shorten >=-2*pgflinewidth,shorten
<=-2*pgflinewidth,cc/.style=line width=0.15cm,
blue,annot/.style=scale=15.5]
draw[-] (-12,0) -- (12,0) node[right] $x$;
draw[-] (0,-12) -- (0,12) node[above] $y$;
%
Only<2-5>
draw[fat line] (0,0) -- (2*X,0);

Only<6-10>
draw[fat line] (0,0) -- (10,0) node[midway,above,annot,red]$r$;

Only<11-25>
typeoutDelta=DeltaX
draw[cc] (10,0) arc[start angle=0,end angle=DeltaX*24,radius=10];
draw[fat line] (0,0) -- (DeltaX*24:10);

Only<26-Xmax>
draw[cc] circle[radius=10cm];

Only<26-35>draw[fat line] (10,0) -- ++ (180-DeltaX*9:10);
Only<36-45>draw[fat line] (10,0) arc(0:18*DeltaX/pi:10) -- ++
(18*DeltaX/pi+90:10-DeltaX);
Only<46-50>
draw [fill=green!70!black,fill opacity=0.2] (0,0) -- (3,0)
node[green!70!black,below,annot,opacity=1]rad arc[start angle=0,
end angle=180/pi,radius=3] -- cycle;
draw[cc,green!70!black] (10,0) -- (0,0)
-- (180/pi:10);

endtikzpicture
enddocument


enter image description here






share|improve this answer

























  • omg man you are a beast!!!!!!!!!!!!!!!!!!! Ty so much! <3

    – Felipe Fonseca
    2 days ago






  • 1





    @FelipeFonseca If marmot's answer helps you, consider accepting it by clicking on the checkmark on the left of the answer

    – JouleV
    2 days ago











  • I clicked ! Ty so much! But just one more question :D There is a way to put marmot's animation frame by frama separed in diferents pdfs? Or it needs to be one?

    – Felipe Fonseca
    2 days ago











  • Like ive done here: prntscr.com/nerl0s and prntscr.com/nerl3o

    – Felipe Fonseca
    2 days ago











  • @FelipeFonseca I added something that might be useful for that task.

    – marmot
    2 days ago













12












12








12







If you wish to produce such animated gifs, you may want to compile



documentclass[border=1cm,tikz]standalone
usetikzlibraryarrows.meta
begindocument
foreach X in 180,175,...,90
begintikzpicture
beginscope
draw (0,0) circle (10cm);
draw[line width=0.15cm, blue] (10,0) arc (0:360:10) ;
draw[-] (-12,0) -- (12,0) node[right] $x$;
draw[-] (0,-12) -- (0,12) node[above] $y$;
draw[line width=0.15cm,red,Circle-Circle,shorten >=-2*pgflinewidth,shorten
<=-2*pgflinewidth] (10,0) -- ++(X:10);
node[scale=15.5, red, right, opacity=0.5] at (2,2) r;
endscope
endtikzpicture
enddocument


with pdflatex and then convert the resulting pdf with



convert -density 300 -delay 34 -loop 0 -alpha remove outfile.pdf ani.gif


to get



enter image description here



When you attempt to patch several of those together, you want to define some command which behaves similarly as the beamer command only.



documentclass[border=1cm,tikz]standalone
usetikzlibraryarrows.meta
defOnly<#1-#2>#3ifnumnumexprX+1>#1
ifnumnumexprX-1<#2
pgfmathtruncatemacroDeltaXX+1-#1
xdefDeltaXDeltaX
#3
fifi
begindocument
pgfmathtruncatemacroXmax50
foreach X in 0,1,...,Xmax
begintikzpicture[fat line/.style=line width=0.15cm,red,Circle-Circle,shorten >=-2*pgflinewidth,shorten
<=-2*pgflinewidth,cc/.style=line width=0.15cm,
blue,annot/.style=scale=15.5]
draw[-] (-12,0) -- (12,0) node[right] $x$;
draw[-] (0,-12) -- (0,12) node[above] $y$;
%
Only<2-5>
draw[fat line] (0,0) -- (2*X,0);

Only<6-10>
draw[fat line] (0,0) -- (10,0) node[midway,above,annot,red]$r$;

Only<11-25>
typeoutDelta=DeltaX
draw[cc] (10,0) arc[start angle=0,end angle=DeltaX*24,radius=10];
draw[fat line] (0,0) -- (DeltaX*24:10);

Only<26-Xmax>
draw[cc] circle[radius=10cm];

Only<26-35>draw[fat line] (10,0) -- ++ (180-DeltaX*9:10);
Only<36-45>draw[fat line] (10,0) arc(0:18*DeltaX/pi:10) -- ++
(18*DeltaX/pi+90:10-DeltaX);
Only<46-50>
draw [fill=green!70!black,fill opacity=0.2] (0,0) -- (3,0)
node[green!70!black,below,annot,opacity=1]rad arc[start angle=0,
end angle=180/pi,radius=3] -- cycle;
draw[cc,green!70!black] (10,0) -- (0,0)
-- (180/pi:10);

endtikzpicture
enddocument


enter image description here






share|improve this answer















If you wish to produce such animated gifs, you may want to compile



documentclass[border=1cm,tikz]standalone
usetikzlibraryarrows.meta
begindocument
foreach X in 180,175,...,90
begintikzpicture
beginscope
draw (0,0) circle (10cm);
draw[line width=0.15cm, blue] (10,0) arc (0:360:10) ;
draw[-] (-12,0) -- (12,0) node[right] $x$;
draw[-] (0,-12) -- (0,12) node[above] $y$;
draw[line width=0.15cm,red,Circle-Circle,shorten >=-2*pgflinewidth,shorten
<=-2*pgflinewidth] (10,0) -- ++(X:10);
node[scale=15.5, red, right, opacity=0.5] at (2,2) r;
endscope
endtikzpicture
enddocument


with pdflatex and then convert the resulting pdf with



convert -density 300 -delay 34 -loop 0 -alpha remove outfile.pdf ani.gif


to get



enter image description here



When you attempt to patch several of those together, you want to define some command which behaves similarly as the beamer command only.



documentclass[border=1cm,tikz]standalone
usetikzlibraryarrows.meta
defOnly<#1-#2>#3ifnumnumexprX+1>#1
ifnumnumexprX-1<#2
pgfmathtruncatemacroDeltaXX+1-#1
xdefDeltaXDeltaX
#3
fifi
begindocument
pgfmathtruncatemacroXmax50
foreach X in 0,1,...,Xmax
begintikzpicture[fat line/.style=line width=0.15cm,red,Circle-Circle,shorten >=-2*pgflinewidth,shorten
<=-2*pgflinewidth,cc/.style=line width=0.15cm,
blue,annot/.style=scale=15.5]
draw[-] (-12,0) -- (12,0) node[right] $x$;
draw[-] (0,-12) -- (0,12) node[above] $y$;
%
Only<2-5>
draw[fat line] (0,0) -- (2*X,0);

Only<6-10>
draw[fat line] (0,0) -- (10,0) node[midway,above,annot,red]$r$;

Only<11-25>
typeoutDelta=DeltaX
draw[cc] (10,0) arc[start angle=0,end angle=DeltaX*24,radius=10];
draw[fat line] (0,0) -- (DeltaX*24:10);

Only<26-Xmax>
draw[cc] circle[radius=10cm];

Only<26-35>draw[fat line] (10,0) -- ++ (180-DeltaX*9:10);
Only<36-45>draw[fat line] (10,0) arc(0:18*DeltaX/pi:10) -- ++
(18*DeltaX/pi+90:10-DeltaX);
Only<46-50>
draw [fill=green!70!black,fill opacity=0.2] (0,0) -- (3,0)
node[green!70!black,below,annot,opacity=1]rad arc[start angle=0,
end angle=180/pi,radius=3] -- cycle;
draw[cc,green!70!black] (10,0) -- (0,0)
-- (180/pi:10);

endtikzpicture
enddocument


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited 2 days ago

























answered 2 days ago









marmotmarmot

121k6158294




121k6158294












  • omg man you are a beast!!!!!!!!!!!!!!!!!!! Ty so much! <3

    – Felipe Fonseca
    2 days ago






  • 1





    @FelipeFonseca If marmot's answer helps you, consider accepting it by clicking on the checkmark on the left of the answer

    – JouleV
    2 days ago











  • I clicked ! Ty so much! But just one more question :D There is a way to put marmot's animation frame by frama separed in diferents pdfs? Or it needs to be one?

    – Felipe Fonseca
    2 days ago











  • Like ive done here: prntscr.com/nerl0s and prntscr.com/nerl3o

    – Felipe Fonseca
    2 days ago











  • @FelipeFonseca I added something that might be useful for that task.

    – marmot
    2 days ago

















  • omg man you are a beast!!!!!!!!!!!!!!!!!!! Ty so much! <3

    – Felipe Fonseca
    2 days ago






  • 1





    @FelipeFonseca If marmot's answer helps you, consider accepting it by clicking on the checkmark on the left of the answer

    – JouleV
    2 days ago











  • I clicked ! Ty so much! But just one more question :D There is a way to put marmot's animation frame by frama separed in diferents pdfs? Or it needs to be one?

    – Felipe Fonseca
    2 days ago











  • Like ive done here: prntscr.com/nerl0s and prntscr.com/nerl3o

    – Felipe Fonseca
    2 days ago











  • @FelipeFonseca I added something that might be useful for that task.

    – marmot
    2 days ago
















omg man you are a beast!!!!!!!!!!!!!!!!!!! Ty so much! <3

– Felipe Fonseca
2 days ago





omg man you are a beast!!!!!!!!!!!!!!!!!!! Ty so much! <3

– Felipe Fonseca
2 days ago




1




1





@FelipeFonseca If marmot's answer helps you, consider accepting it by clicking on the checkmark on the left of the answer

– JouleV
2 days ago





@FelipeFonseca If marmot's answer helps you, consider accepting it by clicking on the checkmark on the left of the answer

– JouleV
2 days ago













I clicked ! Ty so much! But just one more question :D There is a way to put marmot's animation frame by frama separed in diferents pdfs? Or it needs to be one?

– Felipe Fonseca
2 days ago





I clicked ! Ty so much! But just one more question :D There is a way to put marmot's animation frame by frama separed in diferents pdfs? Or it needs to be one?

– Felipe Fonseca
2 days ago













Like ive done here: prntscr.com/nerl0s and prntscr.com/nerl3o

– Felipe Fonseca
2 days ago





Like ive done here: prntscr.com/nerl0s and prntscr.com/nerl3o

– Felipe Fonseca
2 days ago













@FelipeFonseca I added something that might be useful for that task.

– marmot
2 days ago





@FelipeFonseca I added something that might be useful for that task.

– marmot
2 days ago











8














A PSTricks solution only for fun purposes.



documentclass[pstricks,border=12pt,12pt]standalone
radians
defobj#1%
beginpspicture(-4,-4)(4,4)
pscircle4
pssetlinecolor=red,linewidth=2pslinewidth
psarc(0,0)40#1
rput#1(4;#1)psline(!0 1 #1 sub 4 mul)
endpspicture
begindocument
foreach i in 0,0.1,...,1.0obji
enddocument


enter image description here






share|improve this answer























  • OMG! You guys know everthing about latex! Damnnnnnnnnnnnnnn

    – Felipe Fonseca
    2 days ago











  • @FelipeFonseca: I read your mind. :-)

    – Artificial Hairless Armpit
    2 days ago











  • I need to transform this gif in latex :D google.com/…:

    – Felipe Fonseca
    2 days ago















8














A PSTricks solution only for fun purposes.



documentclass[pstricks,border=12pt,12pt]standalone
radians
defobj#1%
beginpspicture(-4,-4)(4,4)
pscircle4
pssetlinecolor=red,linewidth=2pslinewidth
psarc(0,0)40#1
rput#1(4;#1)psline(!0 1 #1 sub 4 mul)
endpspicture
begindocument
foreach i in 0,0.1,...,1.0obji
enddocument


enter image description here






share|improve this answer























  • OMG! You guys know everthing about latex! Damnnnnnnnnnnnnnn

    – Felipe Fonseca
    2 days ago











  • @FelipeFonseca: I read your mind. :-)

    – Artificial Hairless Armpit
    2 days ago











  • I need to transform this gif in latex :D google.com/…:

    – Felipe Fonseca
    2 days ago













8












8








8







A PSTricks solution only for fun purposes.



documentclass[pstricks,border=12pt,12pt]standalone
radians
defobj#1%
beginpspicture(-4,-4)(4,4)
pscircle4
pssetlinecolor=red,linewidth=2pslinewidth
psarc(0,0)40#1
rput#1(4;#1)psline(!0 1 #1 sub 4 mul)
endpspicture
begindocument
foreach i in 0,0.1,...,1.0obji
enddocument


enter image description here






share|improve this answer













A PSTricks solution only for fun purposes.



documentclass[pstricks,border=12pt,12pt]standalone
radians
defobj#1%
beginpspicture(-4,-4)(4,4)
pscircle4
pssetlinecolor=red,linewidth=2pslinewidth
psarc(0,0)40#1
rput#1(4;#1)psline(!0 1 #1 sub 4 mul)
endpspicture
begindocument
foreach i in 0,0.1,...,1.0obji
enddocument


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered 2 days ago









Artificial Hairless ArmpitArtificial Hairless Armpit

5,16411243




5,16411243












  • OMG! You guys know everthing about latex! Damnnnnnnnnnnnnnn

    – Felipe Fonseca
    2 days ago











  • @FelipeFonseca: I read your mind. :-)

    – Artificial Hairless Armpit
    2 days ago











  • I need to transform this gif in latex :D google.com/…:

    – Felipe Fonseca
    2 days ago

















  • OMG! You guys know everthing about latex! Damnnnnnnnnnnnnnn

    – Felipe Fonseca
    2 days ago











  • @FelipeFonseca: I read your mind. :-)

    – Artificial Hairless Armpit
    2 days ago











  • I need to transform this gif in latex :D google.com/…:

    – Felipe Fonseca
    2 days ago
















OMG! You guys know everthing about latex! Damnnnnnnnnnnnnnn

– Felipe Fonseca
2 days ago





OMG! You guys know everthing about latex! Damnnnnnnnnnnnnnn

– Felipe Fonseca
2 days ago













@FelipeFonseca: I read your mind. :-)

– Artificial Hairless Armpit
2 days ago





@FelipeFonseca: I read your mind. :-)

– Artificial Hairless Armpit
2 days ago













I need to transform this gif in latex :D google.com/…:

– Felipe Fonseca
2 days ago





I need to transform this gif in latex :D google.com/…:

– Felipe Fonseca
2 days ago










Felipe Fonseca is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















Felipe Fonseca is a new contributor. Be nice, and check out our Code of Conduct.












Felipe Fonseca is a new contributor. Be nice, and check out our Code of Conduct.











Felipe Fonseca is a new contributor. Be nice, and check out our Code of Conduct.














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.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f485843%2fsimple-line-in-latex-help%23new-answer', 'question_page');

);

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







Popular posts from this blog

Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?