【在CSDN的Markdown编辑器中编辑多行花括号公式】
f
(
x
)
=
{
0
x=0
−
1
x<0
1
x>0
f(x)= \begin{cases} 0& \text{x=0}\\[3ex] -1& \text{x<0}\\[3ex] 1& \text{x>0} \end{cases}
f(x)=⎩⎪⎪⎪⎪⎪⎨⎪⎪⎪⎪⎪⎧0−11x=0x<0x>0
【上面公式的对应的代码】
$$f(x)=
\begin{cases}
0& \text{x=0}\\[3ex]
-1& \text{x<0}\\[3ex]
1& \text{x>0}
\end{cases}$$
【注意事项】
可在多行花括号公式的每一行后加上
\
\
\backslash\backslash
\\[3ex] 来调节行间距为 3ex。默认的多行花括号公式的行间距为 1ex。
【参考文献】
https://blog.csdn.net/hhy_csdn/article/details/83722106
https://www.it610.com/article/1279136766724423680.htm