You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

如何在LaTeX中使underbrace与右大括号同级显示?

解决方法

当然有办法实现!你需要把矩阵的下标注(underbrace)和右侧大括号分开处理,让它们各自独立标注矩阵,而不是嵌套包含。

实现代码

\begin{matrix}
\underbrace{
\begin{bmatrix} 
a_{11} & a_{12} & a_{13} & \cdots & a_{1n} \\ 
a_{21} & a_{22} & a_{23} & \cdots & a_{2n} \\ 
a_{31} & a_{32} & a_{33} & \cdots & a_{3n} \\ 
\vdots & \vdots & \vdots & & \vdots \\ 
a_{m1} & a_{m2} & a_{m3} & \cdots & a_{mn} 
\end{bmatrix}
}_{\text{这里填写underbrace的注释文字}}
& \left. \vphantom{
\begin{bmatrix} 
a_{11} & a_{12} & a_{13} & \cdots & a_{1n} \\ 
a_{21} & a_{22} & a_{23} & \cdots & a_{2n} \\ 
a_{31} & a_{32} & a_{33} & \cdots & a_{3n} \\ 
\vdots & \vdots & \vdots & & \vdots \\ 
a_{m1} & a_{m2} & a_{m3} & \cdots & a_{mn} 
\end{bmatrix}
} \right\} \text{这里填写右大括号的注释文字}
\end{matrix}

思路说明

  • \underbrace单独给矩阵添加下方的标注,这部分仅作用于矩阵主体
  • 借助matrix环境将矩阵和右侧大括号置于同一水平层级
  • 通过\vphantom命令复制矩阵的高度,让右侧大括号的高度严格匹配矩阵,避免包含下方的underbrace,从而实现两者的同级关系

内容的提问来源于stack exchange,提问作者user875234

火山引擎 最新活动