Tyora使用技巧
1、数学公式开启设置
在使用Typora进行数学公式编辑的过程中,需要将设置中的内联公式进行开启,具体方式如下:
Typora想要插入行间公式,首先需要确认以下,Typora已经勾选 “插入内联公式” 选项。
具体方法:
点击“文件” --> “偏好设置” --> “Markdown” --> “Markdown扩展语法” —> 勾选 “内联公式(例:$ \LaTeX $)”
各类公式分为行内公式和行间公式,其表现形式如下
1.行内公式
正弦函数的公式为:$正弦函数公式$
2.行间公式
详见公式如下:
$$
你要填入的公式
$$
\Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,.
例:
行内公式:
正弦函数的公式为: y = s i n x y=sinx y=sinx
行间公式:
Γ
(
z
)
=
∫
0
∞
t
z
−
1
e
−
t
d
t
.
\Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,.
Γ(z)=∫0∞tz−1e−tdt.
2、文本编辑格式
1、单行代码块
2、三个***或者—+回车就可产生分割线
3、加粗或者__加粗__
4、斜体
5、粗斜体
6、删除线
7、下划线写法
8、目录
[toc]+回车
可生成和大纲一样的目录
9、百度
10、高亮显示
11、横杠+空格+[+空格+]+空格,然后在文本前面就可以自行打勾了
- [ ]
12、常用快捷键
ctrl+shift+K 生成代码块
ctrl+shift+m 生成居中的数学公式块
ctrl+shift+[ 生成有序
ctrl+shift+] 生成无序
ctrl+shift+l 隐藏大纲
ctrl+shift+n 开启新的文本编辑页
ctrl+shift+n 插入图片
3、常用希腊字母
名称 | 大写 | 小写 |
---|---|---|
alpha | A | α \alpha α |
beta | B | β \beta β |
gamma | Γ \Gamma Γ | γ \gamma γ |
delta | Δ \Delta Δ | δ \delta δ |
epsilon | E | ϵ \epsilon ϵ |
zeta | Z | ζ \zeta ζ |
eta | H | η \eta η |
theta | Θ \Theta Θ | θ \theta θ |
iota | I | ι \iota ι |
kappa | K | κ \kappa κ |
lambda | Λ \Lambda Λ | λ \lambda λ |
mu | M | μ \mu μ |
nu | N | ν \nu ν |
xi | Ξ \Xi Ξ | ξ \xi ξ |
omicron | O | ο \omicron ο |
pi | Π \Pi Π | π \pi π |
rho | P | ρ \rho ρ |
sigma | Σ \Sigma Σ | σ \sigma σ |
tau | T | τ \tau τ |
upsilon | Υ \Upsilon Υ | υ \upsilon υ |
phi | Φ \Phi Φ | ϕ \phi ϕ |
chi | X | χ \chi χ |
psi | Ψ \Psi Ψ | ψ \psi ψ |
omega | Ω \Omega Ω | ω \omega ω |
4、上标和下标
上标用^
下标用_
例:
水: H 2 o H_2o H2o
X的二次幂: X 2 X^2 X2
等比数列求和公式:
{
S
n
=
n
a
1
(
q
=
1
)
S
n
=
a
1
(
1
−
q
n
)
1
−
q
(
q
≠
1
)
\begin{cases} S_n = na_1 (q=1) \\\\ S_n = \frac{a_1 (1 - q^n)}{1-q} (q\neq1) \end{cases}
⎩
⎨
⎧Sn=na1(q=1)Sn=1−qa1(1−qn)(q=1)
5、公式大小调整
\tiny
\scriptsize
\small
\normalsize
\large
\Large
\LARGE
\huge
\Huge
例:
x ⃗ = d e f x 1 , … , x n \tiny \vec{x}\stackrel{\mathrm{def}}{=}{x_1,\dots,x_n} x=defx1,…,xn
x ⃗ = d e f x 1 , … , x n \scriptsize \vec{x}\stackrel{\mathrm{def}}{=}{x_1,\dots,x_n} x=defx1,…,xn
x ⃗ = d e f x 1 , … , x n \small\vec{x}\stackrel{\mathrm{def}}{=}{x_1,\dots,x_n} x=defx1,…,xn
x ⃗ = d e f x 1 , … , x n \normalsize \vec{x}\stackrel{\mathrm{def}}{=}{x_1,\dots,x_n} x=defx1,…,xn
x ⃗ = d e f x 1 , … , x n ( 普通大小 ) \vec{x}\stackrel{\mathrm{def}}{=}{x_1,\dots,x_n}(普通大小) x=defx1,…,xn(普通大小)
x ⃗ = d e f x 1 , … , x n \large \vec{x}\stackrel{\mathrm{def}}{=}{x_1,\dots,x_n} x=defx1,…,xn
x ⃗ = d e f x 1 , … , x n \Large \vec{x}\stackrel{\mathrm{def}}{=}{x_1,\dots,x_n} x=defx1,…,xn
x ⃗ = d e f x 1 , … , x n \LARGE \vec{x}\stackrel{\mathrm{def}}{=}{x_1,\dots,x_n} x=defx1,…,xn
x ⃗ = d e f x 1 , … , x n \huge \vec{x}\stackrel{\mathrm{def}}{=}{x_1,\dots,x_n} x=defx1,…,xn
x ⃗ = d e f x 1 , … , x n \Huge \vec{x}\stackrel{\mathrm{def}}{=}{x_1,\dots,x_n} x=defx1,…,xn
6、公式大全
汉字形式
\mbox{}
例:
KaTeX parse error: Undefined control sequence: \mbox at position 4: V_{\̲m̲b̲o̲x̲{升}}
字体大小控制
不加此内容,公式会缩至与文字同高。加此内容,公式会以原大小显示。
\displaystyle
例:
x − y y − z \displaystyle \frac{x-y}{y-z} y−zx−y
x − y y − z \frac{x-y}{y-z} y−zx−y
下划线符号
\underline
例:
x + y ‾ \underline{x+y} x+y
序号标号
\tag{数字}
例:
KaTeX parse error: \tag works only in display equations
上大括号
\overbrace{算式}
例:
a + b + c ⏞ 2.0 \overbrace{a+b+c}^{2.0} a+b+c 2.0
下大括号
\underbrace{算式}
例:
a + b + c ⏟ 1.0 + d a+\underbrace{b+c}_{1.0}+d a+1.0 b+c+d
上位符号
\stackrel{上位符号}{基位符号}
例:
x ⃗ = d e f x 1 , … , x n \large \vec{x}\stackrel{\mathrm{def}}{=}{x_1,\dots,x_n} x=defx1,…,xn
两个符号进行贴紧
\!
例:
x y \huge x \! y xy
叉乘
\times
例:
x × y = z x \times y = z x×y=z
点乘
\cdot
例:
x ⋅ y = z x \cdot y = z x⋅y=z
星乘
\ast
例:
x ∗ y = z x \ast y = z x∗y=z
除
\div
例:
x ÷ y = z x \div y = z x÷y=z
分式
\frac{分子}{分母}
{分子}\over{分母}
例:
x + y y + z \frac{x+y}{y+z} y+zx+y
x + y y + z {x+y}\over{y+z} y+zx+y
平均数
\overline{算式}
例:
x y z ‾ \Large \overline{xyz} xyz
开平方
\sqrt
例:
x \Large \sqrt x x
多次开放
\sqrt[开方数]{被开方数}
例:
x + y 3 \Large \sqrt[3]{x+y} 3x+y
对数
\log
例:
log 5 x \large \log_5{x} log5x
极限
\large \lim
\large \displaystyle \lim
例:
lim y → 0 x → ∞ x y \large \lim^{x \to \infty}_{y \to 0}{\frac{x}{y}} limy→0x→∞yx
lim y → 0 x → ∞ x y \large \displaystyle \lim^{x \to \infty}_{y \to 0}{\frac{x}{y}} y→0limx→∞yx
求和
\large \sum
\large \displaystyle \sum
例:
∑ y → 0 x → − ∞ x y \large \sum^{x \to -\infty}_{y \to 0}{\frac{x}{y}} ∑y→0x→−∞yx
∑ y → 0 x → − ∞ x y \large \displaystyle \sum^{x \to -\infty}_{y \to 0}{\frac{x}{y}} y→0∑x→−∞yx
积分
\int
\displaystyle \int
\iint
\displaystyle \iint
\iiint
\displaystyle \iint
∫ 0 ∞ x d x \int^{\infty}_{0}{xdx} ∫0∞xdx
∫ 0 ∞ x d x \displaystyle \int^{\infty}_{0}{xdx} ∫0∞xdx
∬ 0 ∞ x d x \iint^{\infty}_{0}{xdx} ∬0∞xdx
∬ 0 ∞ x d x \displaystyle \iint^{\infty}_{0}{xdx} ∬0∞xdx
∭ 0 ∞ x d x \iiint^{\infty}_{0}{xdx} ∭0∞xdx
∭ 0 ∞ x d x \displaystyle \iiint^{\infty}_{0}{xdx} ∭0∞xdx
微分
\partial
\displaystyle \partial
例:
∂ x ∂ y \large \frac{\partial x}{\partial y} ∂y∂x
∂ x ∂ y \large \displaystyle \frac{\partial x}{\partial y} ∂y∂x
求导
偏导符号:\partial x
求导符号:\mathrm{d} x
撇形式的求导符号:x^′
点形式的求导符号:\dot x
全微分算子:\nabla f
例:
∂ x \partial x ∂x
d x \mathrm{d} x dx
x ′ x^′ x′
x ˙ \dot x x˙
∇ X \nabla X ∇X
矩阵
\begin{matrix} \end{matrix}
例:
[
1
2
⋯
5
6
⋯
9
10
⋮
⋮
⋯
⋮
⋮
⋯
⋯
⋱
a
b
⋯
e
f
⋯
i
j
]
\left[ \begin{matrix} 1 & 2 & \cdots & 5 & 6 & \cdots & 9 & 10 \\ \vdots & \vdots & \cdots & \vdots & \vdots & \cdots & \cdots & \ddots \\ a & b & \cdots & e & f & \cdots & i & j \end{matrix} \right]
1⋮a2⋮b⋯⋯⋯5⋮e6⋮f⋯⋯⋯9⋯i10⋱j
( 1 a 1 a 1 2 ⋯ a 1 n 1 a 2 a 2 2 ⋯ a 2 n ⋮ ⋮ ⋮ ⋱ ⋮ 1 a m a m 2 ⋯ a m n ) \begin{pmatrix} 1&a_1&a_1^2&\cdots&a_1^n\\ 1&a_2&a_2^2&\cdots&a_2^n\\ \vdots&\vdots&\vdots&\ddots&\vdots\\ 1&a_m&a_m^2&\cdots&a_m^n\\ \end{pmatrix} 11⋮1a1a2⋮ama12a22⋮am2⋯⋯⋱⋯a1na2n⋮amn
运算符
大于等于:\geq
小于等于:\leq
不等于:\neq
约等于:\approx
恒等于:\equiv
属于:\in
不属于:\notin
子集:\subset \supset
非子集:\not\subset \not\supset
并集:\cap
差集:\setminus
艺术字体:\mathbb{字母}
数学符号
无穷:\infty
虚数:\imath \jmath
向量:\vec{字母}
一阶导数:\dot{a}
二阶导数:\ddot{a}
向上箭头:\uparrow
向上双箭头:\Uparrow
向下箭头:\downarrow
向下双箭头:\Downarrow
向左箭头:\leftarrow
向左双箭头:\Leftarrow
向右箭头:\rightarrow
向右双箭头:\Rightarrow
省略号(低端):\ldots
省略号(中间):\cdots
字母上标
a ˉ 、 a ˊ 、 a ˇ 、 a ˋ 、 a ^ 、 a ˘ 、 a ~ 、 a ˚ \Huge \bar{a}、\Huge \acute{a}、\Huge \check{a}、\Huge \grave{a}、\Huge \hat{a}、\Huge \breve{a}、\Huge \tilde{a}、\Huge \mathring{a} aˉ、aˊ、aˇ、aˋ、a^、a˘、a~、a˚
其他数学公式
1 2 \frac{1}{2} 21
1 ≠ 2 1\neq2 1=2
x = a 0 + 1 2 a 1 + 2 2 a 2 + 3 2 a 3 + 4 2 a 4 + . . . x=a_0 + \frac {1^2}{a_1 + \frac {2^2}{a_2 + \frac {3^2}{a_3 + \frac {4^2}{a_4 + ...}}}} x=a0+a1+a2+a3+a4+...42322212
f ( n ) { n 2 , i f n i s e v e n 3 n + 1 , i f n i s o d d f(n) \begin{cases} \cfrac n2, &if\ n\ is\ even\\ 3n + 1, &if\ n\ is\ odd \end{cases} f(n)⎩ ⎨ ⎧2n,3n+1,if n is evenif n is odd
L ( Y , f ( X ) ) = { 0 , Y = f(X) 1 , Y ≠ f(X) L(Y,f(X)) = \begin{cases} 0, & \text{Y = f(X)} \\ 1, & \text{Y $\neq$ f(X)} \end{cases} L(Y,f(X))={0,1,Y = f(X)Y = f(X)
L ( Y , f ( X ) ) = { 0 , Y = f(X) 1 , Y ≠ f(X) L(Y,f(X)) = \begin{cases} 0, & \text{Y = f(X)} \\[5ex] 1, & \text{Y $\neq$ f(X)} \end{cases} L(Y,f(X))=⎩ ⎨ ⎧0,1,Y = f(X)Y = f(X)
a = b + c − d + e − f = g + h = i \begin{aligned} a& =b+c-d \\ & \quad +e-f\\ & =g+h\\ & =i \end{aligned} a=b+c−d+e−f=g+h=i
{ a 1 x + b 1 y + c 1 z = d 1 a 2 x + b 2 y + c 2 z = d 2 a 3 x + b 3 y + c 3 z = d 3 \left \{ \begin{array}{c} a_1x+b_1y+c_1z=d_1 \\ a_2x+b_2y+c_2z=d_2 \\ a_3x+b_3y+c_3z=d_3 \end{array} \right. ⎩ ⎨ ⎧a1x+b1y+c1z=d1a2x+b2y+c2z=d2a3x+b3y+c3z=d3
1 x x 2 1 y y 2 1 z z 2 \begin{matrix} 1 & x & x^2 \\ 1 & y & y^2 \\ 1 & z & z^2 \\ \end{matrix} 111xyzx2y2z2
( 1 a 1 a 1 2 ⋯ a 1 n 1 a 2 a 2 2 ⋯ a 2 n ⋮ ⋮ ⋮ ⋱ ⋮ 1 a m a m 2 ⋯ a m n ) \begin{pmatrix} 1&a_1&a_1^2&\cdots&a_1^n\\ 1&a_2&a_2^2&\cdots&a_2^n\\ \vdots&\vdots&\vdots&\ddots&\vdots\\ 1&a_m&a_m^2&\cdots&a_m^n\\ \end{pmatrix} 11⋮1a1a2⋮ama12a22⋮am2⋯⋯⋱⋯a1na2n⋮amn