Methodox Office Math
Methodox Office Math is the equation editor of Methodox Office. You write a formula as a line of commands in the StarMath language LibreOffice Math uses, and Math typesets it as you type.

Writing a formula
Type in the Commands box docked under the formula; drag the bar between them to give either more room. The formula above is drawn again as you type, and View ▸ Update (F9) draws it at once. For example:
| Commands | Typeset |
|---|---|
x = {-b +- sqrt{b^2 - 4ac}} over {2a} |
the quadratic formula |
f(x) = sum from {n=0} to infinity {{f^{(n)}(a)} over {n!} (x - a)^n} |
a Taylor series |
int from {-infinity} to {infinity} e^{-x^2} dx = sqrt{%pi} |
the Gaussian integral |
left( matrix{ a # b ## c # d } right) |
a 2 × 2 matrix in brackets |
The Commands box helps as you type: it closes brackets and braces, suggests commands, turns a LaTeX name typed with its backslash, such as \alpha, into its StarMath, and Tab goes to the next <?> marker. View ▸ AutoUpdate Display decides whether the formula is drawn again as you type, and View ▸ Command Window hides the box or puts it beside the formula instead of under it.
Braces group, ^ and _ make superscripts and subscripts, over makes a fraction, # and ## separate the columns and rows of a matrix, words such as sqrt, sum, int, matrix and infinity stand for what they say, and a % before a name makes a Greek letter (%pi, %sigma).
Editing
- Edit has Cut, Copy, Paste and Select All, and Find and Replace over the commands.
- Edit ▸ Copy As copies the formula as MathML, as Office Math (which Word pastes as an equation), in Linear Format or as LaTeX. Tools ▸ Import Office Math from Clipboard and Import MathML from Clipboard read a formula copied from Word or a web page, and Insert ▸ Insert LaTeX… reads LaTeX.
- Right-click the typeset formula or the commands for the commands of the structure at the caret: a matrix's rows, columns and their alignment, a fraction's style (display, inline or linear), removing a script, and the rest.
The Insert menu
Insert has Word's eleven structure galleries (Fraction, Script, Radical, Integral, Large Operator, Bracket, Function, Accent, Limit and Log, Operator and Matrix), each entry drawn as it will look, and the Equation Gallery… of well-known formulas, to which Save as New Equation adds your own. The same galleries are on a toolbar of their own. Matrix… makes a matrix of a size you choose, Normal Text inserts words set as text, and Special Character any character.
The Elements deck
The Elements deck in the sidebar lists every operator, function, bracket, attribute, format, set operation and layout LibreOffice Math has, each drawn as it will look. The list at the top shows one category or all of them, and the search box finds an element by name. Click one to insert its commands at the caret, with markers <?> where its arguments go; Edit ▸ Next Marker (F4) and Previous Marker (Shift+F4) move between the markers. Right-clicking in the Commands box offers the same elements, a submenu for each category, so you can insert one without leaving the keyboard's place.
The Symbols deck
Tools ▸ Symbols opens the Symbols deck: the Greek letters, upright and italic, and the special characters, relations, operators and other symbols, chosen from the list at its top, with the ones you used last first. Click one to insert it, as %alpha, %iGamma and so on. Tools ▸ Edit Symbols… adds symbols of your own and changes them.
The Structure pane
The Structure pane on the left shows the formula as a tree: lines, fractions, groups, radicals, identifiers and numbers. Clicking a part of the typeset formula selects it in the tree.
Problems
A command Math cannot read is reported under the Commands box and in the status bar; Edit ▸ Next Error (F3 or F8) and Previous Error (Shift+F3 or Shift+F8) go to it.
Size and style
Base size sets the size the formula is set at. Display sets it as a formula on a line of its own, with full-size fractions and limits above and below; Inline sets it to sit inside a line of text. Format ▸ Larger and Smaller change the size.
As in LibreOffice Math, the Format menu sets how the whole formula is typeset:
- Fonts…: the mathematics font, the fonts of variables, functions, numbers and text, each bold or italic, and the serif, sans-serif and fixed-width fonts that
font serif,font sansandfont fixedrefer to, with Default; - Font Size…: the base size and the relative sizes of indexes, functions, operators, limits and text;
- Spacing…: LibreOffice's ten categories, from the spacing and line spacing to the distance of superscripts and subscripts, of numerators and denominators, the fraction bar's weight and the spacing of matrices, with Default to go back to LibreOffice's;
- Alignment: left, centred or right, for a formula of several lines, or Align at =, which lines the lines up at their equals signs;
- Text Mode, which sets the formula in the size of the text around it, and Scale All Brackets;
- Font Colour, Bold and Italic for the selected part of the commands.
The Properties deck in the sidebar has the same settings, and Tools ▸ Math Options has LibreOffice's settings, among them what a printed page carries: the title, the commands, a border, and the size the formula is printed at.
Each is one undo step and is saved in the .mml beside the formula, so it opens again as you left it; a formula you do not format lays out exactly as LibreOffice's default does.
Files
Math opens and saves MathML (.mml), which Word, LibreOffice and web pages read, LibreOffice's own formula files (.odf and the flat .fodf), which LibreOffice Math opens with their formatting, and StarMath commands as plain text (.smf, .txt). File ▸ Save a Copy saves under another name and keeps the one you are working on, and File ▸ Reload reads the file again, dropping changes. A MathML file Math writes carries the StarMath commands inside it, so reopening it gives back exactly what you typed. Tools ▸ Import MathML from Clipboard reads a formula copied as MathML from a web page or another program. File ▸ Export as Image, Export as SVG and Export as PDF write the typeset formula; in a PDF the variables stay italic and large operators keep their size. --convert-to writes odf, fodf, png and jpg too. See Supported file formats.
The Examples\Math folder has seven formulas to start from.
Equations in other applications
Impulse, Expo and Formula insert equations with Math's language and engine, without opening Math: Insert ▸ Equation, or Alt+= in Impulse and Expo. See Equations.