LaTex排版技巧:[7]如何缩小行间的矩阵

时间:2026-02-15 10:49:22

1、LATEX 处理公式非常漂亮,但是遇到行间的矩阵,往往会扩大我们的行间距来满足矩阵的显示空间,这样整体不是很美观,而且也会出现溢出或者段落调整带来的诸多问题。这里面的行间矩阵是这样处理的,需要用到amsmath包提供的smallmatrix环境即可。

请看下面效果:

LaTex排版技巧:[7]如何缩小行间的矩阵

2、上面的方法也适合于行间公式,即当我们的矩阵过大引起了行溢出,可以用这一环境来进行瘦身。例如

To show the effect of the matrix on surrounding

lines inside a paragraph, we put it here:

\begin{equation}

    \begin{pmatrix}

        \begin{smallmatrix}

            1 & 0 \\

            0 & -1

        \end{smallmatrix}

    \end{pmatrix}

\end{equation}

and follow it with enough text to ensure that

there is at least one full line below the matrix.

其结果如下

LaTex排版技巧:[7]如何缩小行间的矩阵

3、注意这里的smallmatrix环境包含在宏包amsmath中,因此在调用smallmatrix环境时应包含宏包amsmath,即\include{amsmath}.

© 2026 五度知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com