# LaTeX math inline Renders a small LaTeX equation inside a line of text, sized to sit on the baseline with the words around it. Use this when a symbol or short formula belongs in a sentence, "the cost grows as E = mc^2 for each…", rather than on a line of its own. The macro sizes itself to the equation rather than taking a fixed-width box of its own. Everything else is the same KaTeX renderer as the block LaTeX macro, with the same Text and Live editing modes. If your equation is a block environment such as align or cases, it switches itself to display mode automatically. --- ## See it Every example below is a real macro on this page, not a screenshot, and each one is a configuration taken from a page somebody actually built. Open this page in the editor to see how any of them is set up. ### 16px Inline maths sits in the line of text, like E=mc^2\begin{pmatrix}12 & 12 & 3\\ 5 & 4 & 3\\ f & 3 & e\end{pmatrix} , without breaking it. ### 16px (2) Inline maths sits in the line of text, like \Delta t = \gamma\,\Delta t_0 , without breaking it. ### 16px (3) Inline maths sits in the line of text, like \gamma = (1 - v^2/c^2)^{-1/2} , without breaking it. --- ## Settings | **Setting** | **Values** | **Default** | **What it changes** | | ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Latex Equation | Any LaTeX. Text and Live editing modes as per the block macro. Errors render in red rather than failing. Leading/trailing \`$\` delimiters are stripped. | E = mc^2 | The equation. Empty renders "Invalid LaTeX equation". Required. | | Font Size | Pixels; input offers 8–96 step 1, renderer clamps to 8–96 (parseInt fallback 16). | 16 | Size of the inline equation. Chosen to sit with body text; the block macro's default is 21. | | Width (internal) | Number of pixels, measured automatically. | unset | Not user-editable. While you edit, the config panel renders the equation into a hidden off-screen span that exactly mirrors the view's wrapper, measures it, and stores width+4px. At render it is applied as a MINIMUM width, never a | | Height (internal) | Number of pixels, measured automatically. | unset | As above; stored as measured height + 2px and applied as a min-height. | | Rendered HTML (internal) | Present in the schema but never written by the inline config panel ("computed for dimension measurement only, not stored for security"). | unset | Effectively always empty. This matters for published Sites, see export behaviour. | --- ## Worth knowing before you use it * There is no Align and no Equation colour on the inline variant, the block LaTeX macro has both, this one has neither. The inline equation always inherits the surrounding text colour. * Block environments (\\\\begin{align…}, equation, eqnarray, gather, multline, split, cases, matrix, pmatrix, bmatrix, vmatrix, Vmatrix, array) are detected by substring match and force KaTeX display mode plus a block wrapper, so an "inline" macro carrying one of those actually breaks the line. * Unlike the block macro, KaTeX is loaded with NO idle/jitter defer here: Forge measures an inline macro's document early and does not reliably re-apply the iframe width afterwards, so a deferred first paint would lock the frame at the empty document's width. A skeleton bar sized from the source length is painted meanwhile for the same reason. * Padding of \`calc(0.25em + 2px) calc(0.3em + 2px)\` is applied unconditionally because KaTeX paints past its own layout box (a superscript sits \~1.5px above it, an integral descender \~1px below) and Forge would clip those pixels. This makes the inline macro very slightly taller than the raw glyphs. * Because \`html\` is never stored, this macro has nothing for the static site exporter to use, see below. --- ## Export and publishing PDF/Word: the equation appears as inline code inside the paragraph rather than as a rendered equation. Published Capable Site: DEGRADED. An inline equation is published as its raw LaTeX source in a centred block of its own, which breaks the sentence it was written into. ℹ️ **The full picture is in one place.** Export support differs between the standalone app and the suite, and several macros have no export at all. See the export support matrix in Reference. --- ## Related [CodeA read-only code block with syntax highlighting, optional line numbers, a copy button and a cho](https://help.gocapable.com/macros/code.html) [LaTeX mathRenders a block mathematical equation written in LaTeX, centred on its own line in the page.](https://help.gocapable.com/macros/latex-math.html) [Technical and dataThe rest of this family.](https://help.gocapable.com/macros/technical-and-data.html) --- _The largest family, and the most precise._