Expand description
Equations (Insert › Symbols › Equation): floating shapes holding LaTeX source, laid out by
gridcraft-math and drawn from the cached layout.
An equation is drawn to fit its frame, so resizing the frame scales it. Inserting sizes the frame for the requested font size; editing keeps the current scale and resizes the frame to the new content.
Constants§
- DEFAULT_
SIZE_ PT - Default equation font size, in points.
- PADDING
- Space between an equation’s frame and its content, in sheet pixels.
Functions§
- describe
- “Error at character 5: Undefined control sequence: \foo”.
- fit_
scale - The scale (sheet pixels per em) at which
listfits a frame ofwbyhpixels. - source_
excerpt - The first
crate::math::MAX_SOURCE_BYTESbytes of an equation’s source, cut at a char boundary. A longer source never lays out (the editor refuses it, and a file can carry one of megabytes), so what shows it as text, the sheet painter and the PDF fallback, shows this much and does no work on the rest. - specs