Typora公式细节
字母风格
Caligraphic | Mathbb | Mathfrak | Math Sans serif | Math bold | Mathscript |
---|---|---|---|---|---|
\mathcal{A} | \mathbb{A} | \mathfrak{A} | \mathsf{A} | \mathbf{A} | \mathscr{A} |
A \mathcal{A} A | A \mathbb{A} A | A \mathfrak{A} A | A \mathsf{A} A | A \mathbf{A} A | A \mathscr{A} A |
实数集、有理数集等集合的字母要使用Mathbb的样式,如
R
\R
R、
Q
\mathbb{Q}
Q,这类被定义过的数集可以直接用\R
来表示;矩阵的字母要使用Math bold的样式,加粗表示,如
A
\bf A
A;傅里叶变换、Z变换的表示要使用手写体或者书法体,如
F
\mathcal{F}
F、
F
\mathscr{F}
F;矩阵的转置要使用罗马体\rm T
,
T
\rm T
T。
尺寸
公式
\displaystyle | \textstyle | Normal | \scriptstyle | \scriptscriptstyle |
---|---|---|---|---|
∫ f − 1 ( x − x a ) d x \displaystyle \int f^{-1}(x-x_a)\,dx ∫f−1(x−xa)dx | ∫ f − 1 ( x − x a ) d x \textstyle \int f^{-1}(x-x_a)\,dx ∫f−1(x−xa)dx | ∫ f − 1 ( x − x a ) d x \int f^{-1}(x-x_a)\,dx ∫f−1(x−xa)dx | ∫ f − 1 ( x − x a ) d x \scriptstyle \int f^{-1}(x-x_a)\,dx ∫f−1(x−xa)dx | ∫ f − 1 ( x − x a ) d x \scriptscriptstyle \int f^{-1}(x-x_a)\,dx ∫f−1(x−xa)dx |
文本
\tiny | 文本 \tiny 文本 文本 | \normalsize | 文本 \normalsize 文本 文本 | \huge | 文本 \huge文本 文本 |
---|---|---|---|---|---|
\scriptsize | 文本 \scriptsize 文本 文本 | \large | 文本 \large 文本 文本 | \Huge | 文本 \Huge 文本 文本 |
\small | 文本 \small 文本 文本 | \LARGE | 文本 \LARGE文本 文本 | \Large | 文本 \Large 文本 文本 |
间隔
, | ; | \’ ’ | \quad | \qquad |
---|---|---|---|---|
A A A\,A AA | A A A\;A AA | A A A\ A A A | A A A\quad A AA | A A A\qquad A AA |
第三列是\ + 空格,有些公式要留有一定的间隙,比如积分中的 d x dx dx要和被积函数 f ( x ) f(x) f(x)留有间隔, ∫ f ( x ) d x \int f(x)\,dx ∫f(x)dx而不是 ∫ f ( x ) d x \int f(x)dx ∫f(x)dx。
颜色
\textcolor{blue} | \textcolor{red} | \textcolor{orange} | \color{blue} | \color{red} | \color{orange} |
---|---|---|---|---|---|
A \textcolor{blue} A A | A \textcolor{red} A A | A \textcolor{orange} A A | B \color{blue} B B | B \color{red} B B | B \color{orange} B B |
矩阵
\begin{matrix}
a&b&c\\
d&e&f\\
e&f&g
\end{matrix}
首先需要使用\begin{matrix}
和\end{matrix}
创造一个矩阵的环境,然后使用’&‘符号来分隔同一行的元素,使用’\\‘来分隔不同行的元素。此外’&'符号有不同行对齐的作用。并且begin
和end
中的关键字不同,可以为bmatrix、pmatrix、vmatrix,分别对应没有括号的矩阵、方括号的矩阵、圆括号的矩阵、行列式。
a
b
c
d
e
f
e
f
g
[
a
b
c
d
e
f
e
f
g
]
(
a
b
c
d
e
f
e
f
g
)
∣
a
b
c
d
e
f
e
f
g
∣
\begin{matrix} a&b&c\\ d&e&f\\ e&f&g \end{matrix} \quad \begin{bmatrix} a&b&c\\ d&e&f\\ e&f&g \end{bmatrix} \quad \begin{pmatrix} a&b&c\\ d&e&f\\ e&f&g \end{pmatrix} \quad \begin{vmatrix} a&b&c\\ d&e&f\\ e&f&g \end{vmatrix}
adebefcfg
adebefcfg
adebefcfg
adebefcfg
方程组
\begin{cases}
32x+85y&=9\\
4x+6y&=11\tag1
\end{cases}
首先使用\begin{cases}
和end{cases}
创造一个环境,然后使用’&‘可以使两个’='号对齐。使用\tag 1
可以给公式编号,如果下文要引用这个编号,可以使用$(1)$
,
(
1
)
(1)
(1)。
{
32
x
+
85
y
=
9
4
x
+
6
y
=
11
(1)
\begin{cases} 32x+85y&=9\\ 4x+6y&=11\tag1 \end{cases}
{32x+85y4x+6y=9=11(1)
Typora数学公式总结
字体大小设置
LaTeX使用color&xcolor宏包的改变字体颜色
LaTeX的color的package中预定义了哪些颜色名称