Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A necessary tips for using latex added in README #2331

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mryuans
Copy link

@mryuans mryuans commented Apr 5, 2025

Motivation

When I first tried to use the LaTeX in my video, I constantly ran into a "LaTeX compilation failed" error. After read the tex_file_writing.py in manimlib/utils, I figured out that there is a necessary change for temporary file path, which is not obvious for users with their first trial. So I think it's better if it could be add to the README

Proposed changes

#### 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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant