前言

昨天發現寫筆記的過程中需要涉及到公式的編輯,以前沒有接觸過,所以找到了一篇博客學習一下Markdown使用LaTeX語法編寫數學公式。

博客的地址如下:CSDN-markdown語法之如何使用LaTeX語法編寫數學公式

值得注意的是wordpress的環境下要加入解析公司的js引擎:

<script type="text/javascript"

src="cdn.mathjax.org/mathjax">

</script>

每篇文章就寫一次就可以

行內公式是:

\(公式\)

行間公式是:

$$ 公式$$


Latex 星號

star

參考文獻:

【1】LaTeX 各種命令,符號

Latex正下標

max limits_{w_1} fleft(w_1
ight)

\(min limits_{w_1} fleft(w_1
ight)\)

max limits_{w_1} fleft(w_1
ight)

min limits_{w_1} fleft(w_1
ight)

operatorname*{argmax}limits_{k in mathcal{Y},k
e {y_0}}

operatorname*{argmax}limits_{k in mathcal{Y},k 
e {y_0}}

mathop {argmax} limits_{k in y,k
e {y_0}}

mathop {argmax} limits_{k in y,k 
e {y_0}}

參考文獻:

【2】LaTeX輸入極限下標,輸入目標函數中的max下標約束條件

【3】latex里字母的正下標怎麼弄?

Latex大括弧及多行公式

egin{equation}

left{ egin{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}

ight.

end{equation}

egin{equation} left{              egin{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} 
ight. end{equation}

E_tleft( s
ight)= left{

egin{array}{lr}gammalambda E_{t-1} & extsf{if} s
e s_t\gammalambda E_{t-1}+1 & extsf{if} s=s_t \end{array}
ight.

E_tleft( s 
ight)= left{              egin{array}{lr}              gammalambda E_{t-1} &  	extsf{if} s
e s_t\              gammalambda E_{t-1}+1 & 	extsf{if} s=s_t \                end{array} 
ight.

參考文獻:

【4】Latex大括弧及多行公式

Latex微分符號

參考文獻:

【5】MathJax 支持的 Latex 符號總結(微積分常用符號)

Latex矩陣

egin{bmatrix} 0 & -1 \ 1 & 0 end{bmatrix}quad

egin{bmatrix} 0 & -1 \ 1 & 0 end{bmatrix} quad

S

=egin{bmatrix}A & B & cdots &C\D & E & cdots & F\ vdots & vdots & ddots & vdots \ G & H & cdots & I\end{bmatrix}

egin{equation} S =egin{bmatrix} A  &  B  & cdots &C\ D  &  E  & cdots & F\  vdots   & vdots & ddots  & vdots  \  G & H  & cdots & I\ end{bmatrix} end{equation}

egin{gathered}

egin{matrix} 0 & 1 \ 1 & 0 end{matrix}

quadegin{pmatrix} 0 & -i \ i & 0 end{pmatrix}quadegin{bmatrix} 0 & -1 \ 1 & 0 end{bmatrix}quadegin{Bmatrix} 1 & 0 \ 0 & -1 end{Bmatrix}quadegin{vmatrix} a & b \ c & d end{vmatrix}quad

egin{Vmatrix} i & 0 \ 0 & -i end{Vmatrix}

end{gathered}

egin{gathered} egin{matrix} 0 & 1 \ 1 & 0 end{matrix} quad egin{pmatrix} 0 & -i \ i & 0 end{pmatrix} quad egin{bmatrix} 0 & -1 \ 1 & 0 end{bmatrix} quad egin{Bmatrix} 1 & 0 \ 0 & -1 end{Bmatrix} quad egin{vmatrix} a & b \ c & d end{vmatrix} quad egin{Vmatrix} i & 0 \ 0 & -i end{Vmatrix} end{gathered}

參考文獻:

【6】Latex輸入矩陣的幾種方式

【7】Latex帶有省略號矩陣的實現

latex字母上面加符號

  • 加^號 hat 或 widehat widehat{a}
  • 加橫線 overline overline a
  • 加波浪線 widetilde widetilde a
  • 加一個點 dot{要加點的字母} dot{a}
  • 加兩個點 ddot{要加點的字母} ddot a
  • 加箭頭 輸入 vec vec a

參考文獻:

【8】latex字母上面加符號

latex添加下劃線

underline{Emphasized}

underline{Emphasized}

參考文獻:

【9】LaTeX技巧004:給文字添加下劃線、波浪線等樣式

latex字體的設置

exttt{}

	exttt{AAAA} 打字機

extsf{}

	extsf{AAAA} 無襯字

extrm{}

	extrm{AAAA} 羅馬

extbf{}

	extbf{AAAA} 加粗命令

  • 字體的大小

Command

iny 	iny  哈哈 scriptsize scriptsize 哈哈 small small 哈哈
ormalsize 
ormalsize哈哈 large large 哈哈

Large Large哈哈

LARGE LARGE哈哈 huge huge哈哈 Huge Huge哈哈

參考文獻:

【10】LaTeX字體設置

latex等號對齊

egin{align*}

vleft( s
ight) &={Bbb E}\ &={Bbb E}end{align*}

egin{align*}  vleft( s 
ight) &={Bbb E}\  &={Bbb E} end{align*}

latex刪除符號

cancel{字元}

cancel{字元}

參考文獻:

【11】有LaTeX的深厚底蘊,Markdown是果然最美的編輯語言!!

latex範數

left|Q
ight|_2

left|Q
ight|_2

參考文獻:

【12】LaTeX輸入範式

導數的長豎線

xig|

xig|

xBig|

xBig|

xigg|

xigg|

xBigg|

xBigg|

參考文獻:

【13】Latex學習——長豎線及長括弧

latex 乘積符號

prod^{T}_{t=0}

prod^{T}_{t=0}

參考文獻:

【14】常用數學符號的 LaTeX 表示方法


推薦閱讀:
相关文章