Structured Content 2022: Join our conference to explore fresh perspectives on content and digital experiences →

LaTex input

Official(made by Sanity team)

Use the LaTex format to describe math and other complicated typography.

LaTeX input for Sanity


sanity install sanity-plugin-latex-input

You may now use the type name latex in your schema, such as in portable text.

Example schema definition for portable text

import React from 'react'
const mathInlineIcon = () => (
    <span style={{ fontWeight: 'bold' }}>∑</span>b
const mathIcon = () => <span style={{ fontWeight: 'bold' }}>∑</span>

export default {
  name: 'portableTextWithLatex',
  type: 'array',
  title: 'Body',
  of: [
      type: 'block',
      title: 'Block',
      of: [
        { type: 'latex', icon: mathInlineIcon, title: 'Inline math' },
    { type: 'latex', icon: mathIcon, title: 'Math block' },

The Portable Text editor will render a preview of the contents with KaTeX.

Install command

sanity install latex-input

Categorized in

Other plugins by author

Document chart

Display a chart giving you a rough count of your various document types.

Go to Document chart

Cats widget

Official(made by Sanity team)

Random cats for obvious reasons

Go to Cats widget