3

I want to vertical align the underbrace symbol.

It looks like now: enter image description here

supposed to be like enter image description here

MME:

\documentclass{article}

\usepackage{mathtools}
\usepackage[no-math]{fontspec}
\usepackage{unicode-math}
\setmathfont[StylisticSet=1]{XITS Math}


\begin{document}

\begin{equation*}
\underbrace{\begin{pmatrix}  
    \ b_1 \ \null \\
    \ b_2 \ \null \\
    \ b_3 \ \null  \\
    \ \vdots\ \null \\
    \ b_n \
    \end{pmatrix}}_{\substack{\\[0.2em] \text{\normalsize\strut $\mathbf{b}$}}} =  
\underbrace{\begin{pmatrix}
    \ s_{11} & s_{12} & s_{13} & \dots & s_{1n} \ \null \\
    \ s_{21} & s_{22} & s_{23} & \dots & s_{2n} \ \null \\
    \ s_{31} & s_{32} & s_{33} & \dots & s_{3n} \ \null \\
    \ \vdots & \vdots & \vdots & \ddots& \vdots \ \null \\
    \ s_{n1} & \dots  & \dots  & \dots & s_{nn}\ \\
    \end{pmatrix}}_{\substack{\\[0.2em] \text{\normalsize $\mathbf{S}$}}} \cdot 
\underbrace{\begin{pmatrix}
    \ a_1 \ \null \\
    \ a_2 \  \null \\
    \ a_3 \  \null \\
    \ \vdots\ \null \\
    \ a_n \
    \end{pmatrix}}_{\substack{}{ \\[0.2em] \text{\normalsize\strut $\mathbf{a}$}}}
\end{equation*}

\end{document}

Thank you all in advance

Update:

like @RuixiZhang said, the Problem was caused by the Mathfont

if use \,\,\,\, a_1 \,\,\,\, enter image description here

the matrix is two wide for only one column

  • 1
    I think you meant “vertical alignment” of the bars of the \underbrace, not “horizontal alignment”. Regarding the misalignment, I think it is a problem of poorly designed braces in the XITS Math font family. Try \,\,\,\, b_1 \,\,\,\, and \,\,\,\, a_1 \,\,\,\, for your column vectors. – Ruixi Zhang Oct 2 '18 at 17:34
  • @RuixiZhang Thanks for your answer. It works, but also make the Matrix too wide, please see the update – sun0727 Oct 2 '18 at 18:39
  • I couldn't get it to run with the weird fonts, and without the weird fonts it works fine. – John Kormylo Oct 2 '18 at 19:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.