Skip to content

LaTeX workspace

The LaTeX workspace is where you check a LaTeX solution animation after you import it. It has a steps list, a source pane, an inspector that shows what Molkit found in each step, and a Reader that shows what a student will see and hear.

Molkit reads every step as one or more operations and checks each one at the precision of the numbers you wrote. A step it cannot check still plays, but its caption then only describes the change instead of claiming it. The inspector shows which operations were checked in each step.

  • Each line is built in reading order, and the side being solved for is drawn last.
  • The animation pauses after each step. The caption names the operation, for example Substitute, Evaluate, Round to 3 significant figures (decimal places after a sum or difference), Rearrange the equation, Multiply by the conversion factor, or Cancel. When one step substitutes several values, the caption names each quantity (up to four), and the animation stops on each value in turn.
  • A rearrangement shows the equations in between. The combined gas law, for example, is multiplied by T2, and then the sides are swapped.
  • Distribute and factor play one term at a time, with arrows showing where each term goes.
  • A term you strike out with \cancel, \bcancel, \xcancel, or \cancelto is canceled where it stands instead of moving.
  • When a solution goes on to a second equation after a result, the new equation plays under a Next: caption that names it, and the earlier results it reuses are outlined.
  • At the last stop, the finished derivation is shown at full strength with the answer boxed.

In the preview window, Line and Op set whether stepping forward stops at each line or at each operation.

The workspace opens after an import. To return to it later, click Edit solution… in the animation toolbar (shown whenever the document has a LaTeX animation). To go back to the canvas, click Done or press Esc.

The workspace has four areas: the steps list on the left, a preview of the selected step in the center, the source pane underneath, and the inspector on the right. The ☰ button hides or shows the steps list, and the button beside Done hides or shows the inspector.

Header control What it does
Fit all Fits every step in view.
Preview Plays the animation.
Export Opens the export dialog.
Badges Shows which terms are matched between lines.
Terms Marks notation terms; hover over one for its definition.
⋮ menu Holds Delete animation….

Click a step to select it. To rename a step, double-click its title or click its pencil. Right-click a step for these commands:

Command What it does
Edit hold… Sets a hold time for the step. A LaTeX solution animation times its own pauses, so playback does not use it.
Duplicate state Copies the step.
Insert blank after Adds an empty step after it.
Delete state Removes the step. Unavailable when only one step is left.

Molkit builds the animation from the source pane and sets each pause itself, so these commands do not change playback. To change the steps, edit the source and click Re-parse. If the steps list and the source no longer have the same number of lines, the inspector says so, and the preview plays the lines of the source.

The source pane shows the LaTeX you imported, with the same live parse status as the import dialog. When you change the text, the pane is marked ”• edited”. Click Re-parse to rebuild the animation in place from the new source. The arrow at the right of the pane header collapses the pane.

Select a step to see what Molkit found in the transition that leads into it.

  • Change underline (on by default): when the step plays as a plain fade, what changed on the new line is briefly underlined. It has no effect on a step that moves its terms.

  • Choreography is Auto (engine) or Whole-line fade. To make that one step fade in as a whole line instead of moving its terms, choose Whole-line fade. Motion and timing otherwise follow Molkit’s built-in rules.

  • A sentence under the menu says how the step will play. It is marked ⚠ when part of the step could not be explained.

  • The operations in the step are listed, each with a tag. Hover over a tag for its meaning.

    • verified: checked. The next line equals this one under the operation, at the precision shown.
    • descriptive: plays, but is not a claim that can be checked; for example, a symbol renamed to another symbol.
    • approximate: holds only with more precise constants than the ones shown, and plays as approximately equal.
  • Crossfades in place lists changes that nothing explained. They fade from the old text to the new where they stand.

  • Notes for the author lists problems Molkit found in the step.

The Reader section shows what a student sees and hears when a web page plays the exported animation one operation at a time, including what a screen reader announces. Click its header to open it; it builds the export first, which takes a moment. It lists the Summary read first by a screen reader, then, for each operation, what is printed On screen and what is Read aloud when the page steps to it (“Step 3 of 9. Substitute …”). The line of the step you selected is highlighted.

Notation Molkit does not know by name is read as written, and the Reader marks it Read as written.

The Solution options apply to the whole animation:

Option Default Effect
Final answer On Boxes the last line.
Captions On Names each operation during preview playback.
Notes On Shows the animation’s annotations (notes, arrows) on the canvas and in the exported file. Off hides them everywhere.
Substitution Card flip Card flip or Lift and drop, as in the import options.
Cancel units Off Strikes out units that cancel when a step is evaluated (see Automatic unit cancellation).

With Cancel units on (or Strike canceling units checked when you import), a step that evaluates a product with the same unit above and below the bar first strikes that unit out where it stands, under a caption such as Cancel mol, and then evaluates. The strike stays on the line, so the finished derivation and a printout show the units crossed out.

  • It has no effect when the source strikes anything itself with \cancel, \bcancel, \xcancel, or \cancelto. Your own strikes are used instead.
  • A unit pairs with the same unit: g with g, mol Al with mol Al (\text{mol} and \mathrm{mol} count as the same). Units written separately, as in \frac{\mathrm{J}}{\mathrm{g}~^{\circ}\mathrm{C}}, each pair on their own. Several units written inside one \mathrm{...}, such as \mathrm{J/(g~^{\circ}C)}, are never split; strike those yourself with \cancel.
  • A unit after \div or / counts as below the bar, and a negative quantity cancels like any other.
  • Units in a sum (a temperature difference) do not cancel, and a unit is struck only when the result agrees that it canceled.
  • Only steps whose arithmetic Molkit checked are affected.