作者:时间证明一2602891163 | 来源:互联网 | 2023-06-06 18:52
Typora使用数学公式 Typora是一款支持Markdown的编辑器,在Typora上完成博客编辑,可以直接导入到CSDN,非常好用!那么如何在Typora里面添加数学公式呢?在此总结了常用的公式编辑方法。
文章目录 Typora使用数学公式 1.打开Typora选择数学模块 2.添加数学公式 3.常用的公式格式代码练习 4.更多字符
1.打开Typora选择数学模块 三种打开方式:
点击“段落” --> “公式块” 快捷键ctrl + shift +m
“$$” + 回车 2.添加数学公式 输出美观的数学公式,需要知道他们的格式和代码! ps:Typora有时出现公式块无法删除,可能是软件bug,Ctrl + /
打开源代码模式,在这里面可以进行删除
$$ e^{i\pi + 1} = 2 $$
eiπ+1=2e^{i\pi + 1} = 2 e i π + 1 = 2
3.常用的公式格式代码练习 \\ 公式块内换行
常用基本函数:
$$ 1、x^2 //上下标 2、1/2 //分式1 3、\frac{1}{2} //分式2 4、\cdots //省略号 5、\sqrt{4} //开根号 6、\vec{a} //矢量 7、\int{x}dx //积分1 8、\int_{1}^{2}dx //积分2 9、\lim{a + b} //极限1 10、\lim_{n\rightarrow + \infty} //极限2 11、\sum_{n=1}^{100}{a_n} //累加 12、\prod_{n=1}^{199}{x_n} //累乘 13、\sin{(x + y)} //三角函数 14、\ln2 //对数函数1 15、\log_28 //对数函数2 $$
1、x22、1/23、124、⋯5、46、a⃗7、∫xdx8、∫12dx9、lima+b10、limn→+∞a+b11、∑n=1100an12、∏n=1199xn13、sin(x+y)14、ln215、log28\begin{aligned} &1、x^2 \\ &2、1/2 \\ &3、\frac{1}{2} \\ &4、\cdots \\ &5、\sqrt{4} \\ &6、\vec{a} \\ &7、\int{x}dx \\ &8、\int_{1}^{2}dx \\ &9、\lim{a + b}\\ &10、\lim_{n\rightarrow + \infty}{a + b} \\ &11、\sum_{n=1}^{100}{a_n} \\ &12、\prod_{n=1}^{199}{x_n} \\ &13、\sin(x + y) \\ &14、\ln2 \\ &15、\log_28 \\ \end{aligned} 1 、 x 2 2 、 1 / 2 3 、 2 1 4 、 ⋯ 5 、 4
6 、 a
7 、 ∫ x d x 8 、 ∫ 1 2 d x 9 、 lim a + b 1 0 、 n → + ∞ lim a + b 1 1 、 n = 1 ∑ 1 0 0 a n 1 2 、 n = 1 ∏ 1 9 9 x n 1 3 、 sin ( x + y ) 1 4 、 ln 2 1 5 、 log 2 8 公式块内左对齐:
$$ \begin{aligned} // &1、y = \sin(x) \\&为对齐格式符 &2、 $$ \end{aligned}
1、y=sin(x)2、\begin{aligned} &1、y = \sin(x) \\ &2、 \end{aligned} 1 、 y = sin ( x ) 2 、 下标为多个英文字母时,使用{}包起来:
$$ v_{体积} $$
v体积v_{体积} v 体 积 关系运算符:
\pm // ± \div // ÷ \equiv // &#61;&#61; \leq // <&#61; \geq // >&#61;
±÷≡≤≥\pm \\ \div \\ \equiv \\ \leq \\ \geq ± ÷ ≡ ≤ ≥ 花括号公式组合&#xff1a;
$$ c(u) &#61; \begin{cases} \sqrt\frac{1}{N}, u &#61; 0 \\ \sum_{n&#61;1}^{100}{a_n}, n \neq0 \end{cases} $$
c(u)&#61;{1N,u&#61;0∑n&#61;199an,n≠0c(u) &#61; \begin{cases} \sqrt\frac{1}{N}, u &#61; 0 \\ \sum_{n &#61; 1}^{99}{a_n}, n \neq0 \end{cases} \\ c ( u ) &#61; { N 1
, u &#61; 0 ∑ n &#61; 1 9 9 a n , n &#61; 0 空格&#xff1a;
$$ a \quad b $$
aba \quad b a b 矩阵&#xff1a;
$$ \begin{matrix} 0&1&1\\ 1&1&0\\ 1&0&1\\ \end{matrix} $$
011110101\begin{matrix} 0&1&1\\ 1&1&0\\ 1&0&1\\ \end{matrix} 0 1 1 1 1 0 1 0 1 在起始、结束标记用下列词替换 matrix
&#xff1a;
pmatrix
&#xff1a;小括号边框bmatrix
&#xff1a;中括号边框 &#96;Bmatrix
&#xff1a;大括号边框vmatrix
&#xff1a;单竖线边框Vmatrix
&#xff1a;双竖线边框 $$ \begin{pmatrix} 0&1&1\\ 1&1&0\\ 1&0&1\\ \end{pmatrix} $$
(011110101)\begin{pmatrix} 0&1&1\\ 1&1&0\\ 1&0&1\\ \end{pmatrix} ⎝ ⎛ 0 1 1 1 1 0 1 0 1 ⎠ ⎞ 特殊字符及希腊字母表&#xff1a;
\infty //无穷 \emptyset //伊普西龙
∅1\emptyset_1 ∅ 1
4.更多字符 更多特殊字符及希腊字母代码见wps中LaTex公式符号