Components
Inline Equation Element

Inline Equation Element

Renders an inline LaTeX equation element with an editable popover for inputting mathematical expressions.

Equation

  1. Equations allow you to express complex mathematical concepts in both inline and block formats.
  1. Key features:
  • LaTeX syntax support
  • Inline and block equation formats
  1. Inline equation example:
    
    (Einstein's famous equation)
  1. Block equation examples:

The quadratic formula for solving

.

The fundamental theorem of calculus.
  1. Try these actions:
  • Click on any equation to edit it
  • Use the slash command (/equation) to insert a new equation
  • Use the slash command (/inline equation) for inline equations
Advanced usage: Combine equations with other elements like tables or code blocks for comprehensive scientific documentation. For example:
The Schrödinger equation,

, is fundamental in quantum mechanics.
Experiment with different equation types and formatting to create rich, mathematical content in your documents.

Installation

Install the following dependencies:

npm install @udecode/plate-math @udecode/plate-selection @radix-ui/react-popover @udecode/plate-caption

Copy and paste the following code into your project.

Get the code ->

Update the import paths to match your project setup.