Change in README.txt to fix a small problem and add some tips for LaTeX using

This commit is contained in:
曾毅 2025-04-05 10:01:38 +08:00
parent f4737828f6
commit 0a53e2f6e1

View file

@ -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 <number>` to skip ahead to the `n`'th animation of a scene.
* `-f` to make the playback window fullscreen