Math Typesetting

Texpile provides powerful support for mathematical typesetting. Equations fall into two main categories: Inline and Block.

Inline Math

Inline equations flow naturally within your text paragraphs.

Inline Math Example

To create an inline equation:

  • Press Ctrl + M (or Cmd + M on Mac).
  • Type your LaTeX math expression (e.g., x^2).

Block Equations

Block equations are standalone expressions that occupy their own line. Unlike inline equations, block equations can be numbered.

Block Math Example

To create a block equation:

  • Press Ctrl + Shift + M (or Cmd + Shift + M on Mac).

Numbering and Referencing

When a block equation is numbered, you can reference it anywhere in your document. If you reorder your equations, Texpile will automatically update the numbering.

  1. Toggle Numbering: Hover over the block equation, click the Settings icon that appears on the right, and toggle Numbered.
  2. Reference: Type @ followed by the value to select the equation from the list.

Editing Math

There are many ways to edit a math field. One of the easiest ways is to use the toolbar.

Math Toolbar

Using the toolbar, you can find many common symbols and operations. You can also use the AI Assistant button on the right to describe your equation in plain English.

Access more options by right-clicking the math field to open the context menu.

Math Context Menu

Tip: You can also search for symbols using LaTeX commands by typing a backslash \ followed by the command name.

Environments

Texpile supports advanced environments for complex equations:

  1. Align: Align multiple equations at a specific character (usually the equal sign).
  2. Gather: Group multiple equations in one block, where each equation is numbered independently.
  3. Multiline: For single equations that are too long to fit on one line.

To create these environments, go to Insert > Math > More…

Math Insert Menu

Note: You can create a multi-line equation by pressing Ctrl + Enter (or Cmd + Enter) while inside a math field.

Custom LaTeX

We support over 700 LaTeX symbols. However, if you ever need a specific package or command that isn’t supported visually, you can insert a Raw LaTeX field from the insert menu to write standard LaTeX code directly.

Advanced: Custom Labels

For advanced LaTeX users, you can define a custom \label for your equation:

  1. Open the equation settings.
  2. Click Advanced.
  3. Enter your custom label (e.g., eq:newton).