-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Rewrite MathTex to make it more robust regarding splitting #4515
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
behackl
merged 61 commits into
ManimCommunity:main
from
henrikmidtiby:MathTexFromScratch
Feb 16, 2026
+248
−138
Merged
Changes from all commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
b88b358
Extracted the method get_mob_from_shape_element
henrikmidtiby e8e003a
Moved more functionality to get_mob_from_shape_element
henrikmidtiby f9f7138
More cleanup
henrikmidtiby 1a9212b
Parse the svg file while maintaining the group structure.
henrikmidtiby bd78c43
Make the svg groups available
henrikmidtiby 494708e
Merge branch 'main' into maintain_groups_from_svg
henrikmidtiby 9e364e3
Handle PERF401 issue
henrikmidtiby 9059479
[pre-commit.ci] pre-commit autoupdate (#4506)
pre-commit-ci[bot] 66f456e
Added an example of the issue
henrikmidtiby d6c6f5d
Experimenting with coloring elements from the latex equation
henrikmidtiby 96db1b0
...
henrikmidtiby fe411af
Regular expression can now match more than one object
henrikmidtiby 68395df
Process the string by applying the substrings in the order they match
henrikmidtiby 4499c73
Code refactoring and added type annotations
henrikmidtiby 751c718
...
henrikmidtiby 73a08e4
Added a lot of test cases
henrikmidtiby b9e313e
More examples
henrikmidtiby 63a4c19
More examples
henrikmidtiby a651d95
Use matched_strings_and_ids to simplify existing methods
henrikmidtiby b8c9123
Remove unused code
henrikmidtiby 86a1b46
Update get_part_by_tex to use matched_strings_and_ids
henrikmidtiby 1c2d113
This is required for test_MathTable to pass
henrikmidtiby d9bc03f
Ensure that self.texstring is set.
henrikmidtiby 64894a7
Merge branch 'main' into MathTexFromScratch
henrikmidtiby d12bde7
Added more examples from exising issues in the github repo
henrikmidtiby 63f786f
Ensure that latex groups are maintained by adding an additional pair …
henrikmidtiby d8a4b43
ExampleScene -> Scene
henrikmidtiby bb41f5c
Added comment
henrikmidtiby c9b6c52
_break_up_by_substrings
henrikmidtiby 0afc9b8
Refactor code
henrikmidtiby e2f3203
Added comment to example
henrikmidtiby f0a4bf9
Handle integer inputs well.
henrikmidtiby 3fd3adc
Expose the original tex_string
henrikmidtiby f06991e
Do not treat the content of substrings_to_isolate as regular expressi…
henrikmidtiby c11dcc3
Updated examples
henrikmidtiby c11799a
Update examples
henrikmidtiby ada86f1
Fix SVMobject caching issue.
henrikmidtiby 919bfee
Remove traces from brace_notation_split_occurred
henrikmidtiby b7d1c83
Simplify MathTex::_break_up_by_substrings
henrikmidtiby ca6f0c1
Fix small issue in tex that in some cases moved elements a tiny bit a…
henrikmidtiby d7ddee8
No use of regular expressions for locate substrings.
henrikmidtiby 654f877
Updated notes to the set of test cases
henrikmidtiby ee93305
Handle issues with the center environment.
henrikmidtiby 01e1f25
Add example
henrikmidtiby 084745d
Fix issue with rectangles (e.g. from sqrt)
henrikmidtiby e4d19cb
ConvertToOpenGL
henrikmidtiby 3b7da3b
Reduce the number of nesting levels.
henrikmidtiby d2ea3f9
Use the specified arg_seperator
henrikmidtiby e98c514
Deal with the double curly brace markup
henrikmidtiby 2d6bfee
Code cleanup
henrikmidtiby 3e99987
Code cleanup
henrikmidtiby ba58cd0
Rollback a few changes
henrikmidtiby 4025934
Code cleanup
henrikmidtiby 5b69c36
Merge branch 'main' into MathTexFromScratch
henrikmidtiby e928a0c
Adjust paths the generated artefacts in tests that rely on MathTex
henrikmidtiby bbdd0bb
Added a remark to the using text guide on enclosing snippets in curly…
henrikmidtiby 800cfa6
Added space around the numerator argument to frac to avoid having dou…
henrikmidtiby 7418a4e
Merge branch 'main' into MathTexFromScratch
henrikmidtiby 09b6cd0
Log errors properly and display some information about the errors and…
henrikmidtiby 114c013
Code refactoring as suggested by Benjamin
henrikmidtiby a27cb12
Merge branch 'main' into MathTexFromScratch
behackl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.