latex array用法

$\begin{array}{*{3}{rlr}}
	-xxxxxx & \text{ifxxx } x < 0, & xxxxxa &ss &ww &ggg\\
	0xxxxxx & \text{ifxxxxx } x = 0, & ddxxxxx&rr&ttt&ttttt\\
	xxxxxx & \text{ifxxx } x > 0.& ddxxxxxd&ttt&rr&t
\end{array} $

*{3}连在一起用,表示前3列
{rlr}表示前三列分别右对齐、左对齐、右对齐
latex array用法
若3改为5,格式还不变

$\begin{array}{*{5}{rlr}}
	-xxxxxx & \text{ifxxx } x < 0, & xxxxxa &ss &ww &ggg\\
	0xxxxxx & \text{ifxxxxx } x = 0, & ddxxxxx&rr&ttt&ttttt\\
	xxxxxx & \text{ifxxx } x > 0.& ddxxxxxd&ttt&rr&t
\end{array} $

latex array用法
若格式也改变

$\begin{array}{*{5}{rlcrr}}
	-xxxxxx & \text{ifxxx } x < 0, & xxxxxa &ss &ww &ggg\\
	0xxxxxx & \text{ifxxxxx } x = 0, & ddxxxxx&rr&ttt&ttttt\\
	xxxxxx & \text{ifxxx } x > 0.& ddxxxxxd&ttt&rr&t
\end{array} $

latex array用法

上一篇:mysql中的外键


下一篇:MySQL创建可读用户和指定数据库用户