mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Added a \overset as a special string
This commit is contained in:
parent
9d7db7aacd
commit
2277679111
1 changed files with 12 additions and 0 deletions
|
@ -100,6 +100,18 @@ class SingleStringTex(SVGMobject):
|
||||||
filler = "{\\quad}"
|
filler = "{\\quad}"
|
||||||
tex += filler
|
tex += filler
|
||||||
|
|
||||||
|
should_add_double_filler = reduce(op.or_, [
|
||||||
|
tex == "\\overset",
|
||||||
|
# TODO: these can't be used since they change
|
||||||
|
# the latex draw order.
|
||||||
|
# tex == "\\frac", # you can use \\over as a alternative
|
||||||
|
# tex == "\\dfrac",
|
||||||
|
# tex == "\\binom",
|
||||||
|
])
|
||||||
|
if should_add_double_filler:
|
||||||
|
filler = "{\\quad}{\\quad}"
|
||||||
|
tex += filler
|
||||||
|
|
||||||
if tex == "\\substack":
|
if tex == "\\substack":
|
||||||
tex = "\\quad"
|
tex = "\\quad"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue