如何使用Typora编辑数学公式?
在编写一些有关于数学的笔记的时候,总是要输入一些特别麻烦的公式符号
我之前一直都是使用word编辑好后,再复制到Typora
这种方法效率特别低
在使用Typora编写的时候,突然发现它居然有自带的公式符号编辑方式
突然发现之前的自己是有多蠢
emmmmmm
好吧,废话不多说
以下是编辑方法:
1. 打开Typora选择数学模块
点击“段落”—>“公式块”
快捷键Ctrl+Shift+m
在两个$中间直接编辑公式
例如:
$x^2$
以上三种方式都能打开数学公式的编辑栏
2.常用公式代码
1.上/下标
Markdown | 效果 |
---|---|
x^2 | x2' role='presentation'>x2x2 |
y_1 | y1' role='presentation'>y1y1 |
2.分式
Markdown | 效果 |
---|---|
1/2 | 1/2' role='presentation'>1/21/2 |
\frac{1}{2} | 12' role='presentation'>1212 |
3.省略号
Markdown | 效果 |
---|---|
\cdots | ⋯' role='presentation'>⋯⋯ |
4.开根号
Markdown | 效果 |
---|---|
\sqrt{2} | 2' role='presentation'>2–√2 |
5.矢量
Markdown | 效果 |
---|---|
\vec{b} | b→' role='presentation'>b⃗ b→ |
6.积分
Markdown | 效果 |
---|---|
\int{x}dx | ∫xdx' role='presentation'>∫xdx∫xdx |
\int_{1}^{2}dx | ∫12dx' role='presentation'>∫21dx∫12dx |
7.极限
Markdown | 效果 |
---|---|
\lim{a+b} | lima+b' role='presentation'>lima+blima+b |
\lim_{n\rightarrow+\infty} | limn→+∞' role='presentation'>limn→+∞limn→+∞ |
8.累加
Markdown | 效果 |
---|---|
\sum{a} | ∑a' role='presentation'>∑a∑a |
\sum_{n=1}^{100}{a_n} | ∑n=1100an' role='presentation'>∑100n=1an∑n=1100an |
9.累乘
Markdown | 效果 |
---|---|
\prod{x} | ∏x' role='presentation'>∏x∏x |
\prod_{n=1}^{99}{x_n} | ∏n=199xn' role='presentation'>∏99n=1xn∏n=199xn |
10.三角函数
Markdown | 效果 |
---|---|
\sin | sin' role='presentation'>sinsin |
\cos | cos' role='presentation'>coscos |
\tan | tan' role='presentation'>tantan |
11.对数函数
Markdown | 效果 |
---|---|
\ln3 | ln3' role='presentation'>ln3ln3 |
\log_27 | log27' role='presentation'>log27log27 |
\lg2 | lg2' role='presentation'>lg2lg2 |
12.关系运算符
Markdown | 效果 |
---|---|
\pm | ±' role='presentation'>±± |
\times | ×' role='presentation'>×× |
\cdot | ⋅' role='presentation'>⋅⋅ |
\div | ÷' role='presentation'>÷÷ |
\neq | ≠' role='presentation'>≠≠ |
\equiv | ≡' role='presentation'>≡≡ |
\leq | ≤' role='presentation'>≤≤ |
\geq | ≥' role='presentation'>≥≥ |
13.花括弧
y(x)={1X,x=02X,x≠0' role='presentation'>y(x)=⎧⎩⎨⎪⎪1X−−√,x=02X−−√,x≠0y(x)={1X,x=02X,x≠0
$y(x)=\begin{cases} \sqrt\frac{1}{X},x=0\ \sqrt\frac{2}{X}, u\neq0\end{cases}$
14.希腊字母
Markdown | 大写 | Markdown | 小写 |
---|---|---|---|
A | A' role='presentation'>AA | \alpha | α' role='presentation'>αα |
B | B' role='presentation'>BB | \beta | β' role='presentation'>ββ |
\Gamma | Γ' role='presentation'>ΓΓ | \gamma | γ' role='presentation'>γγ |
\Delta | Δ' role='presentation'>ΔΔ | \delta | δ' role='presentation'>δδ |
E | E' role='presentation'>EE | \epsilon | ϵ' role='presentation'>ϵϵ |
\varepsilon | ε' role='presentation'>εε | ||
Z | Z' role='presentation'>ZZ | \zeta | ζ' role='presentation'>ζζ |
H | H' role='presentation'>HH | \eta | η' role='presentation'>ηη |
\Theta | Θ' role='presentation'>ΘΘ | \theta | θ' role='presentation'>θθ |
I | I' role='presentation'>II | \iota | ι' role='presentation'>ιι |
K | K' role='presentation'>KK | \kappa | κ' role='presentation'>κκ |
\Lambda | Λ' role='presentation'>ΛΛ | \lambda | λ' role='presentation'>λλ |
M | M' role='presentation'>MM | \mu | μ' role='presentation'>μμ |
N | N' role='presentation'>NN | \nu | ν' role='presentation'>νν |
\Xi | Ξ' role='presentation'>ΞΞ | \xi | ξ' role='presentation'>ξξ |
O | O' role='presentation'>OO | \omicron | ο' role='presentation'>οο |
\Pi | Π' role='presentation'>ΠΠ | \pi | π' role='presentation'>ππ |
P | P' role='presentation'>PP | \rho | ρ' role='presentation'>ρρ |
\Sigma | Σ' role='presentation'>ΣΣ | \sigma | σ' role='presentation'>σσ |
T | T' role='presentation'>TT | \tau | τ' role='presentation'>ττ |
\Upsilon | Υ' role='presentation'>ΥΥ | \upsilon | υ' role='presentation'>υυ |
\Phi | Φ' role='presentation'>ΦΦ | \phi | ϕ' role='presentation'>ϕϕ |
\varphi | φ' role='presentation'>φφ | ||
X | X' role='presentation'>XX | \chi | χ' role='presentation'>χχ |
\Psi | Ψ' role='presentation'>ΨΨ | \psi | ψ' role='presentation'>ψψ |
\Omega | Ω' role='presentation'>ΩΩ | \omega | ω' role='presentation'>ωω |
15.特殊字符
Markdown | 效果 |
---|---|
\forall | ∀' role='presentation'>∀∀ |
\infty | ∞' role='presentation'>∞∞ |
\emptyset | ∅' role='presentation'>∅∅ |
\exists | ∃' role='presentation'>∃∃ |
\nabla | ∇' role='presentation'>∇∇ |
\bot | ⊥' role='presentation'>⊥⊥ |
\angle | ∠' role='presentation'>∠∠ |
\because | ∵' role='presentation'>∵∵ |
\therefore | ∴' role='presentation'>∴∴ |
16.空格
ab' role='presentation'>abab
$a \quad b$
赞 (0)