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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.20 10:31:23