From 0a53e2f6e100a0ca1ff3462919dd4c4fe0451182 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E6=AF=85?= Date: Sat, 5 Apr 2025 10:01:38 +0800 Subject: [PATCH 1/4] Change in README.txt to fix a small problem and add some tips for LaTeX using --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 527ff516..ad90dfac 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,20 @@ manim-render example_scenes.py OpeningManimExample manimgl example_scenes.py OpeningManimExample ``` +#### Tips for using LaTeX + +Before using functions that need LaTeX, please change the +temporary directory for intermediate files (which will lead to "LaTeX compilation failed") +you can change the `tex_file_writing.py` in `manimlib/utils': + ```tex_file_writing.py in full_tex_to_svg + # Write intermediate files to a temporary directory + with tempfile.TemporaryDirectory() as temp_dir: + + ``` +add a `dir=your/path` into the brackets. +(If you're using Linux or Mac OSX, please don't use path containing "~".) + + ## Anaconda Install 1. Install LaTeX as above. @@ -99,7 +113,7 @@ When running in the CLI, some useful flags include: * `-w` to write the scene to a file * `-o` to write the scene to a file and open the result * `-s` to skip to the end and just show the final frame. - * `-so` will save the final frame to an image and show it +* `-so` will save the final frame to an image and show it * `-n ` to skip ahead to the `n`'th animation of a scene. * `-f` to make the playback window fullscreen From 190e30428309019c3b80b5b327472f126f54df6f Mon Sep 17 00:00:00 2001 From: mryuans <1456721128@qq.com> Date: Sat, 5 Apr 2025 10:24:23 +0800 Subject: [PATCH 2/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ad90dfac..3586db7c 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,7 @@ When running in the CLI, some useful flags include: * `-w` to write the scene to a file * `-o` to write the scene to a file and open the result * `-s` to skip to the end and just show the final frame. -* `-so` will save the final frame to an image and show it + * `-so` will save the final frame to an image and show it * `-n ` to skip ahead to the `n`'th animation of a scene. * `-f` to make the playback window fullscreen From 636d32460d5274b98121be7bd8d248cf85d1c6ba Mon Sep 17 00:00:00 2001 From: mryuans <1456721128@qq.com> Date: Sat, 5 Apr 2025 10:26:25 +0800 Subject: [PATCH 3/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3586db7c..91d8db0d 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ you can change the `tex_file_writing.py` in `manimlib/utils': with tempfile.TemporaryDirectory() as temp_dir: ``` -add a `dir=your/path` into the brackets. +add a `dir="your/path"` into the brackets. (If you're using Linux or Mac OSX, please don't use path containing "~".) From 42f307d02749105d2d2c83ccc087c40e5027cc85 Mon Sep 17 00:00:00 2001 From: mryuans <1456721128@qq.com> Date: Sun, 6 Apr 2025 16:21:04 +0800 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 91d8db0d..411a31e1 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ manim-render example_scenes.py OpeningManimExample Before using functions that need LaTeX, please change the temporary directory for intermediate files (which will lead to "LaTeX compilation failed") -you can change the `tex_file_writing.py` in `manimlib/utils': +you can change the `tex_file_writing.py` in `manimlib/utils`: ```tex_file_writing.py in full_tex_to_svg # Write intermediate files to a temporary directory with tempfile.TemporaryDirectory() as temp_dir: