Components
Inline Equation Element

Inline Equation Element

Inline LaTeX equation element with editable popover for mathematical expressions.

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.

Examples

Equation

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. Press Escape to close the menu without editing it.
  • You can navigate through the equation by using the arrow keys
  • 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.