前言
昨天发现写笔记的过程中需要涉及到公式的编辑,以前没有接触过,所以找到了一篇博客学习一下Markdown使用LaTeX语法编写数学公式。
值得注意的是wordpress的环境下要加入解析公司的js引擎:
每篇文章就写一次就可以
行内公式是:\(公式\)
行间公式是:$$ 公式$$
Latex 星号star
参考文献:
Latex正下标max limits_{w_1} fleft(w_1right)
\(min limits_{w_1} fleft(w_1right)\)
operatorname*{argmax}limits_{k in mathcal{Y},k ne {y_0}}
mathop {argmax} limits_{k in y,k ne {y_0}}
参考文献:
Latex大括号及多行公式begin{equation}
left{
begin{array}{lr}
x=dfrac{3pi}{2}(1+2t)cos(dfrac{3pi}{2}(1+2t)), & \
y=s, & 0leq sleq L,|t|leq1.\
z=dfrac{3pi}{2}(1+2t)sin(dfrac{3pi}{2}(1+2t)), &
end{array}
right.
end{equation}
E_tleft( s right)= left{
begin{array}{lr}
gammalambda E_{t-1} & textsf{if} sne s_t\
gammalambda E_{t-1}+1 & textsf{if} s=s_t \
end{array} right.
参考文献:
Latex微分符号
参考文献:
Latex矩阵begin{bmatrix} 0 & -1 \ 1 & 0 end{bmatrix}quad
S
=begin{bmatrix}
A & B & cdots &C\
D & E & cdots & F\
vdots & vdots & ddots & vdots \
G & H & cdots & I\
end{bmatrix}
begin{gathered}
begin{matrix} 0 & 1 \ 1 & 0 end{matrix}
quad
begin{pmatrix} 0 & -i \ i & 0 end{pmatrix}
quad
begin{bmatrix} 0 & -1 \ 1 & 0 end{bmatrix}
quad
begin{Bmatrix} 1 & 0 \ 0 & -1 end{Bmatrix}
quad
begin{vmatrix} a & b \ c & d end{vmatrix}
quad
begin{Vmatrix} i & 0 \ 0 & -i end{Vmatrix}
end{gathered}
参考文献:
latex字母上面加符号加^号 hat 或 widehat
加横线 overline
加波浪线 widetilde
加一个点 dot{要加点的字母}
加两个点 ddot{要加点的字母}
加箭头 输入 vec
参考文献:
latex添加下划线underline{Emphasized}
参考文献:
latex字体的设置texttt{}
打字机textsf{}
无衬字textrm{}
罗马textbf{}
加粗命令字体的大小Command
tiny
scriptsize
small
normalsize
large
Large
LARGE
huge
Huge
参考文献:
latex等号对齐begin{align*}
vleft( s right)
&={Bbb E}\
&={Bbb E}
end{align*}
latex删除符号
cancel{字符}
参考文献:
latex范数left|Qright|_2
参考文献:
导数的长竖线xbig|
xBig|
xbigg|
xBigg|
参考文献:
latex 乘积符号prod^{T}_{t=0}
参考文献: