LibreOffice Math Formula Syntax Rules

LibreOffice Math uses a dedicated markup language to convert plain-text commands into formatted mathematical expressions. Writing formulas in LibreOffice Math relies on a specific set of syntax rules covering token separation, grouping, operators, brackets, and literal text formatting. Understanding these fundamental rules ensures formulas render accurately across LibreOffice applications such as Writer, Calc, and Impress.

Whitespace and Grouping

LibreOffice Math ignores regular spaces, tabs, and line breaks within the code pane when rendering the visual formula. Spaces are solely used to separate distinct tokens, commands, and variable names.

Case Sensitivity and Identifiers

Basic Operators and Structures

Math provides straightforward keywords for common mathematical operations:

Brackets and Delimiters

Parentheses () and square brackets [] typed directly into the code pane render static, fixed-size delimiters.

Special Characters and Greek Letters

Greek letters and special symbols require a percent sign (%) prefix:

Literal Text, Alignment, and Line Breaks