数学方程式

在任何 Notion 页面上，您都可以显示格式精美、易于理解的数学字符、表达式和方程。这对于记笔记、技术文档、家庭作业或任何需要使用分数和方程的地方都很方便。

Notion uses the KaTeX library to render math equations, which supports a large subset of LaTeX functions.

Add a math equation as a block

1. Click the + that appears to the left when you hover over a new line. Scroll down and choose Block equation in the dropdown. Alternatively, type /math and press enter.

2. With the new equation block in place, click inside it to type or paste your equation, or use cmd/ctrl + enter/return.

Just like you can format text in Notion as bold, strikethrough, or code notation, you can also format your text as a math equation, like this quadratic formula:

There are a few different ways to add math equations inline, and all are keyboard friendly.

With text shortcuts:

• Type two dollar signs, followed by your equation. When you close your formula with two more dollar signs, it will turn into an equation.

With the equation input:

1. To open the equation input, use the keyboard shortcut ctrl/cmd + shift + E.

2. Type your equation into the input, and press enter.

1. Highlight an equation in your paragraph.

2. Click the √x button in the formatting menu that appears, or use the keyboard shortcut ctrl/cmd + shiftE. Your selected text should turn into an equation.

Edit an inline equation

• You can edit an existing equation by clicking on it. This will open the equation input, and any changes you make to the equation will reflect live on your page.

• You can also use the arrow keys on your keyboard to navigate to an equation. The equation input will open when your cursor passes over the equation, and the equation input will close if you continue pressing the arrow key in the same direction.

Recognized symbols

Notion supports the full scope of symbols and operations within the \KaTeX language. For a full list of supported functions, please visit the links below:

Note: KaTeX spans most, but not all mathematical notation supported by LaTeX. If your equation isn't rendering correctly in Notion, please visit the links above to see if that function is supported.

常见问题

I don't know LaTeX but want to use Notion's equations. How can I get started?

It's easy to get started using LaTeX for homework, class notes, or lab reports. Basic arithmetic and variable names are valid in LaTeX already.

If you just need to look up specific symbols, Detexify is a great resource that allows you to draw the symbol and look up the corresponding LaTeX code.

To learn more powerful LaTeX, Overleaf documentation is a great place to learn the basics:

Note that Overleaf is a full-featured LaTeX editor, so not everything in the documentation is supported in Notion. If in doubt, you can always check this list of Supported Functions or alphabetized Support Table to determine which functions are supported.

Why can't I render a specific equation? What formulas/libraries do you support? Can you add support for a formula or library I want to use?

Notion uses the KaTeX library to render equations. KaTeX supports a large subset of LaTeX, documented on their list of Supported Functions and alphabetized in this Support Table. To request support for new functions or environments, you can open an issue on the KaTeX GitHub project.

I'm trying to use the align environment and it's not working!

From the Common Issues page of the KaTeX documentation:

"KaTeX does not support the align environment because LaTeX doesn't support align in math mode. The aligned environment offers the same functionality but in math mode, so use that instead."

Can I use inline equations for superscript and subscript?

It's possible to use inline equations for superscript and subscript, but it does mean that the text will be an equation, in "equation font."

• Use ^ to designate superscript, for example: x^2

• Use _ to designate subscript, for example: H_2O

If there are multiple characters that you want to include in superscript or subscript, wrap them in curly brackets. For example: 23^{rd}

What happens when I copy/paste inline LaTeX?

It will give you the source code.

How do I use Notion for chemistry?

Notion supports the \\ce and \\pu chemical equation macros from the mhchem extension. These shortcuts allow you to typeset beautiful chemical and mathematical equations quickly and easily.

How do I convert between inline and block equations?

If you have a block containing an inline equation, you can use the "Turn into" menu to make it a block equation.