哈囉!感謝你拜訪我們的幫助中心。目前我們的幫助中心還在建設中。我們將在不久的將來呈現幫助中心的內容。感謝你的理解,我們未來再見!

數學方程式

Math equations - hero
在本文內

在任何 Notion 頁面上,您都可以顯示格式精美、易於理解的數學字符、表達式和方程。這對於記筆記、技術文檔、家庭作業或任何需要使用分數和方程的地方都很方便。

跳至常見問題

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

  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.

With the formatting menu:

  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.

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.

還有其他問題嗎?歡迎傳送訊息詢問我們

給予回饋

這項資源有用嗎?