You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TransformMatchingTex does not work as expected when transforming from one MathTex object to an other which contains a Latex sqrt operator
The last character in the square-root of the last MathTex object is invisible (in the following example, the parenthesis )
The transform_mismatches is therefore badly rendered
Expected behavior
In the following example, the exponent 2 should transform into the square root.
The last character under the square root (the closing parenthesis ) should be visible.
How to reproduce the issue
``
Code for reproducing the problem. Adapted and simplfied version from 3B1B manim's TExTransformExample in his repository, https://3b1b.github.io/manim/getting_started/example_scenes.html
Manim Community v0.6.0
[05/16/21 23:42:15]
DEBUG Animation received extra kwargs: {'final_alpha_value': 0} animation.py:50
DEBUG Animation received extra kwargs: {'final_alpha_value': 0} animation.py:50
DEBUG Animation received extra kwargs: {'final_alpha_value': 0} animation.py:50
DEBUG Hashing ... hashing.py:240
DEBUG Hashing done in 0.333753 s. hashing.py:253
DEBUG Hash generated : 450974505_3223459120_2098723146 hashing.py:257
DEBUG List of the first few animation hashes of the scene: ['450974505_3223459120_2098723146'] cairo_renderer.py:108
[05/16/21 23:42:21] INFO Animation 0 : Partial movie file written in {'/path/to/project/mani scene_file_writer.py:401
m/media/videos/scene/1080p60/partial_movie_files/TexTransformExampleSimple/450974505_3223459120_2098
723146.mp4'}
DEBUG Animation with empty mobject animation.py:62
DEBUG Hashing ... hashing.py:240
DEBUG Hashing done in 0.196513 s. hashing.py:253
DEBUG Hash generated : 2788726626_1615497636_227427286 hashing.py:257
INFO Animation 1 : Using cached data (hash : 2788726626_1615497636_227427286) cairo_renderer.py:100
DEBUG List of the first few animation hashes of the scene: ['450974505_3223459120_2098723146', cairo_renderer.py:108
'2788726626_1615497636_227427286']
DEBUG Partial movie files to combine (2 files): ['/path/to/project/manim/ scene_file_writer.py:450
media/videos/scene/1080p60/partial_movie_files/TexTransformExampleSimple/450974505_3223459120_209872
3146.mp4', '/path/to/project/manim/media/videos/scene/1080p60/parti
al_movie_files/TexTransformExampleSimple/2788726626_1615497636_227427286.mp4']
[05/16/21 23:42:25] INFO scene_file_writer.py:585
File ready at /path/to/project/manim/media/videos/scene/1080p60/Tex
TransformExampleSimple_ManimCE_v0.6.0.gif
INFO Rendered TexTransformExampleSimple scene.py:217
Played 2 animations
A work around for the disapearing of the last character under the sqrt is to add an other random character to its right. But it is clearly not viable, and doesn't solve the morphing issue.
The text was updated successfully, but these errors were encountered:
Thanks for your report! Turns out the issue is that \sqrt is not always handled correctly (in particular in the case where the TeX string is split at the first symbol under the square root (you can check that \sqrt{x(C + B)(C - B)} renders correctly.
Description of bug / unexpected behavior
TransformMatchingTex
does not work as expected when transforming from oneMathTex
object to an other which contains a Latexsqrt
operatorExpected behavior
How to reproduce the issue
``
Code for reproducing the problem. Adapted and simplfied version from 3B1B manim's TExTransformExample in his repository, https://3b1b.github.io/manim/getting_started/example_scenes.html
Additional media files
Images/GIFs
Logs
Terminal output
System specifications
System Details
pip list
):LaTeX details
FFMPEG
Output of
ffmpeg -version
:Additional comments
A work around for the disapearing of the last character under the sqrt is to add an other random character to its right. But it is clearly not viable, and doesn't solve the morphing issue.
The text was updated successfully, but these errors were encountered: