CSDN 編寫數學公式參考文檔

CSDN markdown 編輯器使用的是 katex 來完成對 TeX 公式的解析。公式得緊挨兩個 $ 符內部,而且第一個 $ 後面不能有空格,第二個 $ 前面不能有空格。想要換行居中的話,得使用兩次 $$ 來將公式框起來:

$p_i$

$$
x = x + 1
$$

幫助文檔及支持的公式可以參考https://katex.org/docs/supported.html,下面是對我常用的一些數學公式的總結:

要找到自己想用的符號的幾個方法:

  • 通讀一遍幫助文檔
  • 推測想用符號所述類別,按幫助文檔的目錄找
  • 對想用的符號提煉出英文關鍵字搜索,找不到再挨個找

角標和上標

在這裏插入圖片描述
想要表示xi+1x_{i+1}得用大括號擴起來,如:x_{i+1}

分數和二項式

在這裏插入圖片描述

不等號和根號

在這裏插入圖片描述

在這裏插入圖片描述

在這裏插入圖片描述

在這裏插入圖片描述

希臘字母

在這裏插入圖片描述

邏輯符號

感覺這個離散數學用的應該比較多
在這裏插入圖片描述

高階技巧

C7C1C0D7D2D1D0 \begin{array}{ccccc} \mathclap{C_7} & & & & \mathclap{C_1} & & \mathclap{C_0} \\[-.5ex] \mathclap{\curvearrowleft} & & & & \mathclap{\curvearrowleft} & & \mathclap{\curvearrowleft} \\[-.5ex] & \mathclap{D_7} & \cdots & \mathclap{D_2} & & \mathclap{D_1} & & \mathclap{D_0} \end{array}

\begin{array}{ccccc}
\mathclap{C_7} & & & & \mathclap{C_1} & & \mathclap{C_0}
\\[-.5ex]
\mathclap{\curvearrowleft} & & & & \mathclap{\curvearrowleft} & & \mathclap{\curvearrowleft}
\\[-.5ex]
& \mathclap{D_7} & \cdots & \mathclap{D_2} & & \mathclap{D_1} & & \mathclap{D_0}
\end{array}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章