-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Maintain groups when importing svg files #4473
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
base: main
Are you sure you want to change the base?
Maintain groups when importing svg files #4473
Conversation
|
Currently the PR triggers the following 27 errors in the testsuite. The error in group 1 is a direct consequence from maintaining the tree structure in the SVG. The errors in group 2 are also related to the tree structure from the SVG. Errors in group 3 seems related to passing multiple tex strings to the Group 4 errors are related to The recursion depth exceeded in group 5, is associated with the color initialization. The failed graphical unit tests in group 6 are either related to color and opacity issues or the Text object in the imported SVG file. Finally the errors in group 7 are all related to the number of points that is being interpolated when interpolating between two mobjects. Apparently the number of points change from one object to the next. |
Overview: What does this pull request change?
This is a work in progress for being able to access groups in objects created from SVG files.
I hope that this could be useful for addressing the following issues and pull requests:
MathTexmay not correspond to their tex strings #3548When reading data from a SVG file, maintain the groupings of the document, which also allows the user to select (groups of) elements by their id.
Motivation and Explanation: Why and how do your changes improve the library?
Links to added or changed documentation pages
Further Information and Comments
The following example demonstrates how custom grouping of elements inside a latex equation can be achieved. This is based on an idea presented by @behackl in the discord dev-chat the 18th of august 2025.
renders like
Reviewer Checklist