This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from manim import * | |
| config.disable_caching = True | |
| # Change default font size | |
| DEFAULT_FONT_SIZE = 28 | |
| MathTex.set_default(font_size=DEFAULT_FONT_SIZE) | |
| Tex.set_default(font_size=DEFAULT_FONT_SIZE) | |
| SCALE_FACTOR = 1 | |
| tmp_pixel_height = config.pixel_height |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:latest | |
| RUN apt update && \ | |
| apt upgrade -y && \ | |
| apt install -y curl unzip zip git ninja-build gettext cmake build-essential zsh && \ | |
| echo "PROMPT='%n@%m %~ %# '" > /root/.zshrc | |
| RUN chsh -s $(which zsh) | |
| SHELL [ "/bin/zsh", "-c" ] | |
| ENV SHELL=/bin/zsh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from manimlib import * | |
| # manim_config["camera"]["background_color"] = YELLOW | |
| # manim_config["camera"]["fps"] = 60 | |
| class Example0(Scene): | |
| def construct(self): | |
| # Tex (GL) = MathTex (CE) | |
| # TexText (GL) = Tex (CE) | |
| t = TexText("This is a test") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from presenter import * | |
| config.disable_caching = True | |
| jt = lambda mob: JustifyText(mob, tex_width=8.6) | |
| def get_element(name, tex_type=jt): | |
| return { | |
| "name": name, | |
| "type": tex_type, | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import sys | |
| import subprocess | |
| from manim import * | |
| from manim.opengl import * | |
| # pip install pyperclip | |
| import pyperclip | |
| # pip install antlr4-python3-runtime | |
| from sympy import pprint | |
| from sympy.parsing.latex import parse_latex |
OlderNewer