33 Commits

Author SHA1 Message Date
d6b20a7306 Refactor MTex and implement TransformMatchingMTex (#1725)
* Some small refactors

* Refactor MTex

* Implement TransformMatchingMTex

* Some refactors

* Some refactors

* Some small refactors

* Strip strings before matching

* Implement get_submob_tex

* Use RGB color mode

* Some small refactors
2022-02-07 08:21:53 -08:00
7093f7d02d Some small refactors to MTex (#1723) 2022-01-30 12:42:35 +08:00
725155409b Some small refactors 2022-01-29 21:06:54 +08:00
a6675eb043 Some small refactors 2022-01-29 14:35:27 +08:00
5d2dcec307 Fix color-related bugs 2022-01-29 14:05:52 +08:00
6c39cac62b Remove redundant attribute 2022-01-28 01:19:02 +08:00
831b7d455c Handle explicit color-related commands 2022-01-27 23:09:05 +08:00
c315300ff1 Merge branch 'master' into master 2022-01-26 08:54:18 -08:00
a770291053 Include style in MTex.get_mobjects_from 2022-01-26 08:20:38 -08:00
942a7e71b8 Update MTex 2022-01-26 23:46:13 +08:00
e8205a5049 Some refactors for MTex 2022-01-26 13:03:14 +08:00
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
155839bde9 Add unbreakable_commands parameter 2021-12-13 12:46:29 +08:00
6821a7c20e Handle empty strings 2021-12-07 14:12:08 +08:00
00f72da493 Some small refactor 2021-12-07 13:17:48 +08:00
744916507c Add a debugging method 2021-12-07 12:55:52 +08:00
88d863c1d7 Support get_tex() for submobjects of MTex 2021-12-07 00:34:07 +08:00
4631508b7d Add get_tex() method 2021-12-06 13:48:17 +08:00
8803088121 Fix bugs concerned with child environments 2021-12-06 09:44:59 +08:00
1d466cb299 Add Exception for indices_of_part() 2021-12-05 22:17:09 +08:00
17d31045b2 Add TransformMatchingMTex 2021-12-05 11:45:42 +08:00
950466c1da Some refactors 2021-12-05 10:21:55 +08:00
8b1715379d Some small refactors 2021-11-29 09:48:00 +08:00
2501fac32f Some small refactors 2021-11-29 09:38:48 +08:00
1aec0462ec Some small refactors 2021-11-29 01:43:48 +08:00
83c70a59d8 Sort superscripts and subscripts in submobjects 2021-11-29 01:15:38 +08:00
758f2ec236 Some small refactor 2021-11-28 23:38:12 +08:00
e8ebfa312b Prevent infinite loops from unexpected inputs 2021-11-28 13:26:54 +08:00
dae24891fa Add get_all_isolated_substrings method 2021-11-28 13:03:33 +08:00
a4f9de1ca1 Fix bugs concerned with coloring 2021-11-28 12:14:29 +08:00
697028cd4c Add slicing and indexing methods 2021-11-27 23:07:46 +08:00
c84acc0023 Remove disabled methods 2021-11-27 19:53:52 +08:00
13a5f6d6ff Add MTex 2021-11-27 16:19:01 +08:00