LaTeX Math for Confluence (Formula Library & Editor) - User Guide

LaTeX Math for Confluence (Formula Library & Editor) - User Guide

Quick Start

LaTeX Math for Confluence allows you to easily insert mathematical formulas and equations into your Confluence pages using LaTeX syntax.

Adding a Formula

  1. Open your Confluence page in edit mode

  2. Type /latex to insert a LaTeX macro

  3. Choose between Latex Block (display mode) or Latex Inline (inline mode)

  4. Enter your LaTeX formula and preview it in real-time

  5. Click Save to insert the formula into your page

图片-20260215-181133.png

Interface Overview

The LaTeX Math editor provides a clean and intuitive interface for creating mathematical formulas.

图片-20260215-181153.png

 

Main Components

Component

Description

Component

Description

Formula Editor (Left panel)

Enter your LaTeX code here

Preview (Right panel)

See real-time rendering of your formula

Alignment Buttons

Choose left, center, or right alignment for block formulas

Formula Library

Quick access to common mathematical formulas organized by category

Search Bar

Find formulas by name or syntax


Features

1. Real-Time Preview

As you type LaTeX code in the editor, the formula renders instantly in the preview panel, allowing you to catch syntax errors immediately.

图片-20260215-181205.png

 

2. Comprehensive Formula Library

Access hundreds of pre-built formulas organized by category:

  • Arithmetic: Basic operations (addition, subtraction, multiplication, division)

  • Geometry: Shapes, angles, and spatial relationships

  • Algebra: Equations, functions, and expressions

  • Calculus: Derivatives, integrals, limits

  • Trigonometry: Sin, cos, tan functions and identities

  • Physics: Force, energy, momentum equations

  • Statistics: Mean, variance, probability

  • Linear Algebra: Matrices, vectors

  • Thermodynamics: Heat, energy transfer

  • Symbols: Greek letters, operators, special characters

Simply click any formula template to insert it into your editor.

3. Inline and Block Display Modes

Inline Mode

Formulas appear within the text flow, perfect for equations mentioned in sentences.

Block Mode

Formulas display as standalone elements with configurable alignment (left, center, or right).

图片-20260215-181216.png

 

4. Flexible Alignment Options

For block formulas, choose from three alignment options:

  • Left: Aligns formula to the left margin

  • Center: Centers formula on the page (default)

  • Right: Aligns formula to the right margin

图片-20260215-181235.png

 

5. Seamless Confluence Integration

Formulas integrate naturally with your Confluence content, maintaining proper spacing and alignment with surrounding text.

图片-20260215-181246.png

 


Configuration Options

Macro Selection

When inserting a LaTeX macro, choose the appropriate type:

Macro Type

Use Case

Example

Macro Type

Use Case

Example

Latex Block (Development)

Display formulas as standalone blocks

Large equations, proofs

Latex Inline (Development)

Insert formulas within text

Variables in sentences

Alignment Settings (Block Mode Only)

Configure how block formulas align relative to page content:

图片-20260215-181501.png

 

  1. Click the alignment buttons in the preview panel (see red box in img_2.png)

  2. Choose from:

    •  Left align

    •  Center align

    •  Right align

 

Formula Search

Use the search bar to quickly find formulas:

  • Search by formula name (e.g., "Einstein", "Pythagorean")

  • Search by LaTeX syntax (e.g., "frac", "sum", "int")


FAQ

Q: How do I fix "Invalid LaTeX syntax" errors?

A: Check your LaTeX code for:

  • Missing braces { }

  • Unclosed commands

  • Invalid command names

  • Refer to LaTeX syntax guides for correct formatting

Q: Can I edit formulas after inserting them?

A: Yes! Click on the formula in your Confluence page, then select "Edit" from the macro menu.

Q: Why doesn't my formula appear correctly?

A: Ensure you:

  • Selected the correct macro type (Block vs. Inline)

  • Saved the macro after entering your formula

  • Used valid LaTeX syntax

  • Refreshed the page if needed

Q: Can I copy formulas from the library?

A: Yes! Click any formula in the library to insert it into your editor. You can then modify it as needed.

Q: How do I align formulas properly?

A: For block formulas, use the alignment buttons in the preview panel. For inline formulas, alignment follows the text flow automatically.

Q: Can I nest fractions or use complex structures?

A: Absolutely! LaTeX supports nested structures. Use the preview to verify complex formulas render correctly.


Quick Reference

Common LaTeX Commands

Operation

LaTeX Code

Example

Operation

LaTeX Code

Example

Fraction

\frac{numerator}{denominator}

\frac{1}{2}

Square root

\sqrt{x}

\sqrt{25}

Nth root

\sqrt[n]{x}

\sqrt[3]{8}

Superscript

x^{power}

x^{2}

Subscript

x_{index}

x_{i}

Sum

\sum_{i=1}^{n}

\sum_{i=1}^{n} i

Integral

\int_{a}^{b}

\int_{0}^{1} x dx

Greek letters

\alpha\beta\gamma

\alpha + \beta