Without the companion
You can open the editor with a double click and never start the companion. This page says what you have then, what the companion would add, and the one place where its absence shows in what you make: the Manim video of a few formulas.
Opened with a double click
The built editor opens from app/dist/index.html
(Getting the app running): no server, no companion
and no network. Keep the whole dist/ folder together: the fonts, Chroma Lab and the
licence files are beside the page.
Opened so, the editor does all of its own work:
- formulas, drawn by MathJax;
- the timeline with every block, relation and path, the camera, braces, shapes and lines;
- projects opened and saved in place (in Chrome and Edge), the autosave, the templates, the palettes and Chroma Lab, and the examples of Help ▸ Examples;
- every export the browser makes by itself: Python for ManimCE and ManimGL, video (MP4 and WebM), the frame as a PNG image, audio, and the scene as a web page (Exporting).
What the companion adds
What you have without it, and what it gives once it runs (The companion says how to start it):
| Without the companion | With it | |
|---|---|---|
| The glyphs of a formula | MathJax’s: the same formula, at times split into other glyphs than Manim’s (below). The menu bar says Renderer: MathJax. | LaTeX’s, which are Manim’s own: Renderer: LaTeX. |
| Accented letters in a LaTeX text | Drawn without their accents. | Drawn; for ManimCE the editor suggests the fontenc line. |
| A LaTeX text with a width | Its lines are broken about where LaTeX would break them, and the text says so. | LaTeX breaks them. |
| Font text | Placeholder boxes, one a character, composed, placed, coloured and animated all the same. | The outlines of the font (shaped on Linux in version 1.0). |
| Video | The browser’s encoders: MP4 (H.264, AV1) and WebM (VP9). | ffmpeg too: x264, ProRes, GIF. |
| AAC sound in an MP4 | Only where the browser encodes AAC (not Chrome on Linux); WebM with Opus otherwise. | ffmpeg encodes it. |
| Render with Manim | Not offered: the video dialog greys it out and says why. | The exported scene, rendered by your own Manim. |
Where it shows: the exported Python
Inside the editor a formula drawn by MathJax is as good as one drawn by LaTeX: it is coloured, animated and saved the same. The exported scene is another matter, because there the glyphs are Manim’s, and the script has to find, when it runs, which glyph of Manim is each glyph of the editor. It finds them by where they are, with the positional helper.
That works when MathJax and LaTeX split the formula into the same number of glyphs, in whatever order. Measured on 862 formulas (the 257 templates, 338 formulas of the author’s own projects and 267 written to cover the cases), 9 in 10 are split into the same number, and among those the helper’s pairing was right in 771 of 777. It does not work for the rest, and those are a short list of things.
What makes the numbers differ
| In the formula | MathJax draws | LaTeX (and Manim) draws |
|---|---|---|
\cdots, \ldots, \dots, \vdots, \ddots | one glyph | three dots |
\left|…\right|, vmatrix, \middle| around something tall | one bar | several pieces, stacked |
\iint, \iiint, \oint | one glyph | two or three (ManimGL draws \iint as one) |
\neq, \ne, \notin, \not= | one glyph | a stroke over = or ∈: two |
\Longrightarrow, \iff, \longmapsto | one long arrow | pieces |
A tall \sqrt; \cancel, \boxed, \underbrace, \xrightarrow, \overrightarrow | other pieces | other pieces |
Of the measured formulas that differ, \cdots and its kin are the most common (24 of
79), then the tall bars (18) and \neq and \notin (13).
What the video shows
Take 1+2+\cdots+n turning into 1+2+\cdots+n=\frac{n(n+1)}{2} through a
relation of seven pairs, exported with no companion. MathJax draws the three dots as one glyph,
so the editor splits the sum into seven glyphs; Manim makes nine of it, and the script reaches
seven of them. The two dots it does not reach are left out of every animation of
glyphs. What the video shows then depends on how the formula comes in. ManimCE 0.22.1
rendered the videos below; ManimGL 1.7.2 does the same.
A formula that comes in glyph by glyph
Here the sum writes itself in. The Write of the scene plays the sum’s list of glyphs, the seven the script reached:
self.play(Write(VGroup(*step1_g[:])), run_time=1)
A formula that comes in so, glyph by glyph (Write, Create, any intro with a lag), is drawn without the two dots that are in no list: one dot of three, from the first frame to the last.
A formula that comes in whole
With no intro, or a fade, the scene adds the formula whole, and its three dots are there:
self.add(step1)
When its glyphs go to the next formula, the relation moves the seven the script reached, and two of the dots stay where they were. This is the same scene with no intro on the sum, and centred, so that its glyphs travel to the equation:
Either way the scene says so when it runs, in a line for each such formula. For the sum it
prints Warning: Manim made 9 glyphs of a formula the editor split into 7; unmatched glyphs
are not animated.
Why the export does not warn you
The export dialog cannot say it sooner. With no companion it has no LaTeX render to count against, so every formula drawn by MathJax gets the same note there, the ones that will come out right and the others alike:
Glyphs of "step1" are matched by position when the scene runs, because it was rendered with MathJax, whose glyph order can differ from LaTeX. Render with the companion online for exact indices.
Nothing in the editor warns of the things of the list above while you type them.
The way out is the companion. With it online the formulas are rendered by LaTeX, the script names Manim’s glyphs by their index, with no helper (Exact indices), and all of them are drawn. Start it before you export, and let the formulas render with it: the badge of the menu bar says Renderer: LaTeX when they did (Is it working?).
Your work, opened from disk
Chrome gives every page opened from a file the same storage. The autosave, your templates, your palettes and the recordings you imported live in that browser profile, shared with any other page opened from disk.
A companion you start later is found by itself, but it refuses a page opened from a file
unless it was started with --allow-file-origin (the editor shows the command), or
serves the build itself: serve --app app/dist, then open
http://127.0.0.1:7799/app/ (Starting it;
Security says what the first option costs).
Next: ManimCE and ManimGL, and the companion for exact glyphs.