From 0fda5237091bb52b72630c57ae47052fc3913b0c Mon Sep 17 00:00:00 2001 From: Francesca Gandini Date: Sat, 1 Mar 2025 18:47:20 +0000 Subject: [PATCH 1/3] skeletom of new chapter added --- source/ch-latex.ptx | 122 ++++++++++++++++++++++++++++++++++++++++++++ source/main.ptx | 1 + 2 files changed, 123 insertions(+) create mode 100644 source/ch-latex.ptx diff --git a/source/ch-latex.ptx b/source/ch-latex.ptx new file mode 100644 index 0000000..039e70f --- /dev/null +++ b/source/ch-latex.ptx @@ -0,0 +1,122 @@ + + + LaTeX + +

+This chapter is co-authored by Francesca Gandini, ADD +

+
+
+ What Is +

+ XXX stands for YYY. + more commonly known as + ZZZZ. A sample list and links +

    +
  • +

    + https://www.3blue1brown.com/ +

    +
  • +
  • +

    + https://www.youtube.com/c/3blue1brown +

    +
  • +
+

+

+ Soething + TBIL.org Calculus I video series + + at this YouTube playlist + + was animated entirely by Tien Chih using Manim. +

+
+ +
+ Creating a LaTeX Codespace + +

+ A turn-key repository for creating a Codespace + () for Manim is available at + + StevenClontz/manim-workshop + . Follow the instructions there to obtain an interface + for authoring Manim content using just your web browser + (Chrome/Edge/Firefox recommended). +

+
+ +
+ Hello World! + +

+ Let's run our very first Manim animation. +

+
+ + +

+ Open main.py and look for the line + class HelloWorld(Scene):. +

+
+ + +

+ Open a Terminal and execute the command + manim render -ql main.py HelloWorld. + (See the README file for other options + to render Manim scenes.) +

+
+
+ + +

+ Open the file + media/videos/main/480p15/HelloWorld.mp4 + to view your newly rendered video. +

+
+
+ + +

+ See if you can add these lines to the code so + the video ends by saying My name is YOUR NAME HERE. +

    +
  • +

    + name = MathTex(r"\text{My name is YOUR NAME HERE.}") +

    +
  • +
  • +

    + self.play(Transform(hello, name)) +

    +
  • +
+ Don't forget to re-run + manim render -ql main.py HelloWorld + to update your rendered video. +

+
+
+ + +

+ See if you can make the circle GREEN instead + of PINK. +

+
+
+
+
+ + + + +
diff --git a/source/main.ptx b/source/main.ptx index 6c9b996..b72414c 100644 --- a/source/main.ptx +++ b/source/main.ptx @@ -26,6 +26,7 @@ + Backmatter From 1d525731a0dac2daf9772e8e384944987bcd7b21 Mon Sep 17 00:00:00 2001 From: Francesca Gandini Date: Sat, 1 Mar 2025 12:58:02 -0600 Subject: [PATCH 2/3] Update ch-latex.ptx with link to latex codespace repo --- source/ch-latex.ptx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/source/ch-latex.ptx b/source/ch-latex.ptx index 039e70f..56d46cd 100644 --- a/source/ch-latex.ptx +++ b/source/ch-latex.ptx @@ -40,12 +40,11 @@ This chapter is co-authored by Francesca Gandini, ADD

A turn-key repository for creating a Codespace - () for Manim is available at - - StevenClontz/manim-workshop - . Follow the instructions there to obtain an interface - for authoring Manim content using just your web browser - (Chrome/Edge/Firefox recommended). + () for LaTeX is available at + + fragandi/latex-codespace + . 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!

From 3f0cdaff75e507953373e6e151057ca6aacb7be3 Mon Sep 17 00:00:00 2001 From: Francesca Gandini Date: Sat, 1 Mar 2025 19:08:58 +0000 Subject: [PATCH 3/3] Update to PreTeXt project source. --- source/ch-latex.ptx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ch-latex.ptx b/source/ch-latex.ptx index 56d46cd..efe6328 100644 --- a/source/ch-latex.ptx +++ b/source/ch-latex.ptx @@ -48,7 +48,7 @@ you might be able to follow directly the README in the repo. Otherwise, keep rea

-
+
Hello World!