Commit graph

186 commits

Author SHA1 Message Date
Grant Sanderson
8e9b4d8563 Account for edge case where \{ is used in Tex 2022-01-18 10:04:01 -08:00
Grant Sanderson
f1996f8479 Small hack for the lightbulb, needs to be fixed properly later 2021-12-21 10:58:33 -08:00
Michael W
0de303d5e0
Some refactors
- Split out `_TexParser` class
- Replace `math_mode` parameter with `tex_environment`
- Fix the bug that braces following even number of backslashes aren't matched
2021-12-13 21:01:27 +08:00
Michael W
155839bde9
Add unbreakable_commands parameter 2021-12-13 12:46:29 +08:00
Michael W
6821a7c20e
Handle empty strings 2021-12-07 14:12:08 +08:00
Michael W
00f72da493
Some small refactor 2021-12-07 13:17:48 +08:00
Michael W
744916507c
Add a debugging method 2021-12-07 12:55:52 +08:00
Michael W
88d863c1d7
Support get_tex() for submobjects of MTex 2021-12-07 00:34:07 +08:00
Michael W
4631508b7d
Add get_tex() method 2021-12-06 13:48:17 +08:00
Michael W
8803088121
Fix bugs concerned with child environments 2021-12-06 09:44:59 +08:00
Michael W
1d466cb299
Add Exception for indices_of_part() 2021-12-05 22:17:09 +08:00
Michael W
17d31045b2
Add TransformMatchingMTex 2021-12-05 11:45:42 +08:00
Michael W
950466c1da
Some refactors 2021-12-05 10:21:55 +08:00
Michael W
62151e52f1
Merge branch '3b1b:master' into master 2021-12-01 08:42:17 +08:00
Michael W
8b1715379d
Some small refactors 2021-11-29 09:48:00 +08:00
Michael W
2501fac32f
Some small refactors 2021-11-29 09:38:48 +08:00
Michael W
1aec0462ec
Some small refactors 2021-11-29 01:43:48 +08:00
Michael W
83c70a59d8
Sort superscripts and subscripts in submobjects 2021-11-29 01:15:38 +08:00
Michael W
758f2ec236
Some small refactor 2021-11-28 23:38:12 +08:00
Michael W
e8ebfa312b
Prevent infinite loops from unexpected inputs 2021-11-28 13:26:54 +08:00
Michael W
dae24891fa
Add get_all_isolated_substrings method 2021-11-28 13:03:33 +08:00
Michael W
a4f9de1ca1
Fix bugs concerned with coloring 2021-11-28 12:14:29 +08:00
Michael W
697028cd4c
Add slicing and indexing methods 2021-11-27 23:07:46 +08:00
Michael W
c84acc0023
Remove disabled methods 2021-11-27 19:53:52 +08:00
Michael W
13a5f6d6ff
Add MTex 2021-11-27 16:19:01 +08:00
Michael W
e3f87d835b
Recover files 2021-11-27 16:17:22 +08:00
Grant Sanderson
f3ecebee43 Remove unnecessary import 2021-11-16 17:37:45 -08:00
TonyCrane
5c2a9f2129
style: change CRLF to LF
Change the line ending characters from CRLF to LF
2021-11-12 21:49:56 +08:00
Michael W
1b695e1c19
Refactor Tex 2021-11-12 21:22:42 +08:00
Grant Sanderson
b881e55fca Merge branch 'master' of github.com:3b1b/manim into video-work 2021-10-24 09:48:56 -07:00
Grant Sanderson
deb1311e48 Fix VideoIcon 2021-10-24 09:28:52 -07:00
Michael W
4d91ff3f2f
Update balance_braces method 2021-10-24 23:21:49 +08:00
Michael W
b6f9da87d0
Refactor command handling in svg_mobject.py 2021-10-24 22:30:18 +08:00
Grant Sanderson
2753beb7bb Merge branch 'master' of github.com:3b1b/manim into quintic 2021-10-03 10:28:14 -07:00
Grant Sanderson
788775e419 Larger spacing between Text lines 2021-10-01 12:32:38 -07:00
Grant Sanderson
1bca0e63e9 Remove unnecessary import 2021-10-01 12:32:20 -07:00
Grant Sanderson
54ad3550ef Fix bug with SVG rectangles 2021-10-01 12:32:04 -07:00
TonyCrane
add1daf500 change CRLF to LF 2021-09-15 20:02:57 +08:00
Michael W
9e563ae3b4
Add Code mobject and rewrite Text.text2settings() 2021-09-15 15:55:19 +08:00
Grant Sanderson
ca9b70e218 Make sure triangulation is remembered correctly 2021-08-19 09:19:02 -07:00
Michael W
ec620fa849
Support the elliptical arc command for SVGMobject 2021-08-08 20:53:50 +08:00
Grant Sanderson
fd8904ec83
Merge pull request #1557 from naveen521kk/add-markuptext
Add MarkupText
2021-07-28 07:45:50 -07:00
Wallbreaker5th
2ed78c6e0f Rewrite earclip_triangulation 2021-07-28 17:06:43 +08:00
Naveen M K
5986d0e7d2
Add MarkupText
This would use a Pango specific markup which looks like html.

There are some specific implementation here about `<color>`
and `<gradient>`
Pango doesn't support `<gradient>`  or `<color> ` instead it works
with `color` attribute and gradient isn't supported.
Since, `SVGMobject` doesn't know about parsing colors from SVG image
and implmentation of `<color>` and `<gradient>` is added.

Co-authored-by: Philipp Imhof <52650214+PhilippImhof@users.noreply.github.com>
Signed-off-by: Naveen M K <naveen@syrusdark.website>
2021-06-20 01:13:13 +05:30
Grant Sanderson
8aedb8f33e
Merge branch 'master' into master 2021-06-19 09:48:53 -07:00
TonyCrane
663c57ba74 a little fix to TEXT_MOB_SCALE_FACTOR 2021-06-19 19:33:53 +08:00
Wallbreaker5th
a99ccea02c Add some comments about the temporary hack 2021-06-19 16:00:39 +08:00
鹤翔万里
d14f22c5ba
Revert "Fixed the default size of Text" 2021-06-19 13:11:36 +08:00
Grant Sanderson
128178b46e
Merge branch 'master' into master 2021-06-18 12:25:00 -07:00
Naveen M K
5765ab9055
Move 0.3 constant to DEFAULT_LINE_SPACING_SCALE 2021-06-19 00:43:01 +05:30