forked from code4mathorg/github-for-mathematicians
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathch-latex.ptx
More file actions
121 lines (114 loc) · 4.15 KB
/
ch-latex.ptx
File metadata and controls
121 lines (114 loc) · 4.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?xml version='1.0' encoding='utf-8'?>
<chapter xml:id="ch-latex">
<title>LaTeX</title>
<introduction>
<p>
This chapter is co-authored by Francesca Gandini, ADD
</p>
</introduction>
<section xml:id="sec-what-is">
<title>What Is </title>
<p>
<pubtitle>XXX</pubtitle> stands for <q>YYY</q>.
more commonly known as
<em>ZZZZ</em>. A sample list and links
<ul>
<li>
<p>
<url href="https://www.3blue1brown.com/">https://www.3blue1brown.com/</url>
</p>
</li>
<li>
<p>
<url href="https://www.youtube.com/c/3blue1brown">https://www.youtube.com/c/3blue1brown</url>
</p>
</li>
</ul>
</p>
<p>
Soething
<url href="http://tbil.org">TBIL.org</url> Calculus I video series
<url href="https://www.youtube.com/playlist?list=PLwXCBkIf7xBODPeQxULagMeWSK4YtLYog">
at this YouTube playlist
</url>
was animated entirely by Tien Chih using Manim.
</p>
</section>
<section xml:id="sec-latex-codespace">
<title>Creating a LaTeX Codespace</title>
<p>
A turn-key repository for creating a Codespace
(<xref ref="sec-codespaces"/>) for LaTeX is available at
<url href="https://github.com/fragandi/latex-codespace">
fragandi/latex-codespace
</url>. Below we provide detailed instructions. If you have some experience with codespaces,
you might be able to follow directly the README in the repo. Otherwise, keep reading!
</p>
</section>
<section xml:id="sec-hello-world2">
<title>Hello World!</title>
<introduction>
<p>
Let's run our very first Manim animation.
</p>
</introduction>
<activity>
<introduction>
<p>
Open <c>main.py</c> and look for the line
<c>class HelloWorld(Scene):</c>.
</p>
</introduction>
<task>
<statement>
<p>
Open a Terminal and execute the command
<c>manim render -ql main.py HelloWorld</c>.
(See the README file for other options
to render Manim scenes.)
</p>
</statement>
</task>
<task>
<statement>
<p>
Open the file
<c>media/videos/main/480p15/HelloWorld.mp4</c>
to view your newly rendered video.
</p>
</statement>
</task>
<task>
<statement>
<p>
See if you can add these lines to the code so
the video ends by saying <q>My name is YOUR NAME HERE</q>.
<ul>
<li>
<p>
<c>name = MathTex(r"\text{My name is YOUR NAME HERE.}")</c>
</p>
</li>
<li>
<p>
<c>self.play(Transform(hello, name))</c>
</p>
</li>
</ul>
Don't forget to re-run
<c>manim render -ql main.py HelloWorld</c>
to update your rendered video.
</p>
</statement>
</task>
<task>
<statement>
<p>
See if you can make the circle <c>GREEN</c> instead
of <c>PINK</c>.
</p>
</statement>
</task>
</activity>
</section>
</chapter>