Skip to content

Added ability to remove non-svg LaTeX files #3322

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

Merged
merged 39 commits into from
Nov 4, 2023
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
c635535
Added ability to remove latex junk (default True)
JasonGrace2282 Aug 9, 2023
c801683
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 9, 2023
c4e529e
Merge branch 'main' into latex_junk_remover
JasonGrace2282 Aug 9, 2023
7f1c735
Fixed tests (hopefully), and whitelisted .tex
JasonGrace2282 Aug 9, 2023
f9a0281
Merge branch 'latex_junk_remover' of https://github.com/JasonGrace228…
JasonGrace2282 Aug 9, 2023
e2b8489
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 9, 2023
e29473b
reverted weird changes from merge
JasonGrace2282 Aug 9, 2023
b23c30d
See previous commit message
JasonGrace2282 Aug 9, 2023
5c39ce1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 9, 2023
5750360
Fixed logs-too-long test
JasonGrace2282 Aug 9, 2023
227c269
Fixed log output
JasonGrace2282 Aug 9, 2023
7958f5f
Fixed typo ;)
JasonGrace2282 Aug 9, 2023
e4b2e01
deleted unused variable
JasonGrace2282 Aug 9, 2023
7d1cccb
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 9, 2023
03560b8
moved latex deletion to tex_file_writing.py
JasonGrace2282 Aug 11, 2023
7f044cb
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 11, 2023
f888c51
removed changes in scene files
JasonGrace2282 Aug 11, 2023
1f48107
Merge branch 'latex_junk_remover' of https://github.com/JasonGrace228…
JasonGrace2282 Aug 11, 2023
133ae4d
Added caching based on LaTeX expression .svg
JasonGrace2282 Aug 11, 2023
5a14356
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 11, 2023
009d551
Deleted unused function in delete_old_tex
JasonGrace2282 Aug 11, 2023
bf9f12c
make if condition more readable
JasonGrace2282 Aug 11, 2023
d6bab49
cleaned up svg file check
JasonGrace2282 Aug 11, 2023
d7aa545
Merge branch 'latex_junk_remover' of https://github.com/JasonGrace228…
JasonGrace2282 Aug 11, 2023
9a0240e
changed blacklist -> whitelist for file endings
JasonGrace2282 Aug 12, 2023
205b804
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 12, 2023
e323c08
Reverted docstring change
JasonGrace2282 Aug 12, 2023
486ba62
Merge branch 'latex_junk_remover' of https://github.com/JasonGrace228…
JasonGrace2282 Aug 12, 2023
6be5927
Updated delete_non_svg files docstring
JasonGrace2282 Aug 12, 2023
40257f7
Changed list to a set
JasonGrace2282 Aug 12, 2023
7860e4a
Merge branch 'main' into latex_junk_remover
JasonGrace2282 Sep 1, 2023
b91e5b8
Merge branch 'main' into latex_junk_remover
JasonGrace2282 Sep 4, 2023
7bc4442
Merge branch 'ManimCommunity:main' into latex_junk_remover
JasonGrace2282 Sep 23, 2023
e29c6d5
Merge branch 'main' into latex_junk_remover
JasonGrace2282 Oct 29, 2023
613bea2
Update manim/_config/utils.py
MrDiver Nov 4, 2023
fd81de7
Update manim/cli/render/global_options.py
MrDiver Nov 4, 2023
a0d71bf
Merge branch 'main' into latex_junk_remover
MrDiver Nov 4, 2023
a91cf07
added one test for the no_latex_cleanup config option
behackl Nov 4, 2023
572e68a
Merge branch 'main' into latex_junk_remover
behackl Nov 4, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 12, 2023
commit 205b8045f0f8690df21029367beec25fb85fd712
2 changes: 1 addition & 1 deletion manim/utils/tex_file_writing.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def delete_nonsvg_files(additional_endings: Iterable[str] = ()) -> None:

tex_dir = config.get_dir("tex_dir")
file_suffix_whitelist = (".svg", ".tex", *additional_endings)

for f in tex_dir.iterdir():
if f.suffix not in file_suffix_whitelist:
f.unlink()
Expand Down