Hey, I'm using Manim for probability/statistics videos. To write combination notation right now I have to do this:
from manim import *
class Sample_slide(Scene):
def construct(self):
problem = MathTex(r"P(x) = {}^{n}C_{x}\, p^x q^{n-x}")
self.play(Write(problem))
self.wait()
The {}^{x+r}C_{r}\, part is really messy just for a single symbol. It would be much cleaner if Manim had a built-in command like \ncr{}{} so I could just write:
MathTex(r"P(x) = \ncr{x+r}{r} p^x q^{n-x}")
like how \frac{}{} works. Would it be possible to add this to Manim's default LaTeX template?
Thanks
Hey, I'm using Manim for probability/statistics videos. To write combination notation right now I have to do this:
The
{}^{x+r}C_{r}\,part is really messy just for a single symbol. It would be much cleaner if Manim had a built-in command like\ncr{}{}so I could just write:like how
\frac{}{}works. Would it be possible to add this to Manim's default LaTeX template?Thanks