Math & Science ⇒ braces under matrix entry affect matrix braces
-
- Posts: 3
- Joined: Fri Dec 17, 2010 6:26 pm
braces under matrix entry affect matrix braces
I got a "problem" (if you can call it one) with brackets under entries in a matrix:
They affect the brackets of the matrix, so the whole thing looks kind of weird, because the bracket "get's part of the matrix entry" and causes a higher bracket.
Is it possible to arrange the brackets "under" the matrix, not affecting the entry/column they are referring?
I hope I could explain my problem.
Greetings
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
braces under matrix entry affect matrix braces
Code containing a minimal example of what you mean would be better.Wayne_Durden wrote:
I hope I could explain my problem.
Greetings
-
- Posts: 3
- Joined: Fri Dec 17, 2010 6:26 pm
braces under matrix entry affect matrix braces
Here's the code:
Code: Select all
\begin{equation} \left[\begin{array}{c} \begin{array}{c} \dot{s}
\end{array}\\ \dot{v}\end{array}\right]=\left[\begin{array}{cc}
0 & 1\\ 0 & \underbrace{-\frac{d_{m}}{m_{red}}}_{Reibverl.}
\underbrace{-\frac{i_{\textrm{A}}^{2}k_{m}^{2}}
{r^{2}m_{red}R_{\textrm{A}}}}_{elektr.\, Verl.}\end{array}
\right]\cdot\left[\begin{array}{c} s\\ v\end{array}\right]+
\left[\begin{array}{c} 0\\
\underbrace{\frac{i_{\textrm{A}}k_{m}}
{rR_{\textrm{A}}}}_{\text{ß}}\cdot\frac{1}{m_{red}}\end{array}
\right]u_{\textrm{A}}\end{equation}
I hope this helps!
Thanks a log!
braces under matrix entry affect matrix braces
Code: Select all
\documentclass{article}
\newlength{\bracewidth}
\newcommand{\myunderbrace}[2]{\settowidth{\bracewidth}{$#1$}#1\hspace*{-1\bracewidth}\smash{\underbrace{\makebox{\phantom{$#1$}}}_{#2}}}
\usepackage{amsmath}
\begin{document}
\begin{equation} \left[\begin{array}{c} \begin{array}{c} \dot{s}
\end{array}\\ \dot{v}\end{array}\right]=\left[\begin{array}{cc}
0 & 1\\ 0 & \myunderbrace{-\frac{d_{m}}{m_{\textit{red}}}}{\textit{Reibverl.}}
\myunderbrace{-\frac{i_{\textrm{A}}^{2}k_{m}^{2}}
{r^{2}m_{\textit{red}}R_{\textrm{A}}}}{\textit{elektr.\ Verl.}}\end{array}
\right]\cdot\left[\begin{array}{c} s\\ v\end{array}\right]+
\left[\begin{array}{c} 0\\
\myunderbrace{\frac{i_{\textrm{A}}k_{m}}
{rR_{\textrm{A}}}}{\text{\ss}}\cdot\frac{1}{m_{\textit{red}}}\end{array}
\right]u_{\textrm{A}}\end{equation}
\end{document}
-
- Posts: 3
- Joined: Fri Dec 17, 2010 6:26 pm
Re: braces under matrix entry affect matrix braces
You made my day!
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
braces under matrix entry affect matrix braces
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10