Skip to content

Instantly share code, notes, and snippets.

@nlpjoe
Last active September 14, 2023 07:46
Show Gist options
  • Select an option

  • Save nlpjoe/d74bd44fd8d10f37e515f732b2fcbdfb to your computer and use it in GitHub Desktop.

Select an option

Save nlpjoe/d74bd44fd8d10f37e515f732b2fcbdfb to your computer and use it in GitHub Desktop.
[Latex数学公式中的空格]#latex
两个quad空格	a \qquad b	a \qquad b	两个m的宽度
quad空格	a \quad b	a \quad b	一个m的宽度
大空格	a\ b	a\ b	1/3m宽度
中等空格	a\;b	a\;b	2/7m宽度
小空格	a\,b	a\,b	1/6m宽度
没有空格	ab	ab\,	
紧贴	a\!b	a\!b	缩进1/6m宽度

效果实例

\\
d[0][0] = 0 \\
d[i][0] = i \qquad for \ 1\leq i \leq m \\
d[0][j] = j \qquad for \ 1\leq i \leq n  \\

$$ d[i][j]=\left\{
\begin{array}{lcl}
d[i-1][j-1]       &      & {if \ a_i =  b_j}\\
min\left\{
\begin{array}{lcl} 
d[i-1][j]) + w_{del}(a_i) \\
d[i][j-1]) + w_{ins}(b_j)  \\
d[i-1][j-1]) + w_{sub}(a_i,b_j) \\
\end{array} \right. &    & {if \ a_i \neq  b_j  \qquad for \ 1\leq i \leq m, \ 1\leq i \leq n }
\end{array} \right. $$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment