I can do it for all entries in an array, simply
Code: Select all
\begin{displaymath}
\overbrace{
\begin{array}{cc}
2 & 3
\end{array}}
\end{displaymath}
Many thanks guys!...
Code: Select all
\begin{displaymath}
\overbrace{
\begin{array}{cc}
2 & 3
\end{array}}
\end{displaymath}
NEW: TikZ book now 40% off at Amazon.com for a short time.
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{tabular}{cccc}
& \multicolumn{2}{c}{$\overbrace{\rule{.8cm}{0pt}}$} &\\[-3pt]
\multicolumn{2}{c}{$\overbrace{\rule{.8cm}{0pt}}$} &
\multicolumn{2}{c}{$\overbrace{\rule{.8cm}{0pt}}$}\\[-3pt]
1 & 2 & 3 & 4\\
\end{tabular}
\end{document}
Code: Select all
\begin{equation}
G =
\begin{pmatrix}
\multicolumn{3}{c}{\overbrace{\rule{1.5cm}{0pt}}^{N(k,d)-d}} & \multicolumn{3}{c}{\overbrace{\rule{1.5cm}{0pt}}^{d}}\\[-4pt]
0 & \ldots & 0 & 1 & \ldots & 1\\[9pt]
& G_1 & & & G_2 &
\end{pmatrix}
\end{equation}
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\begin{array}{r@{\,}l}
&
\begin{matrix}
\mspace{15mu}\overbrace{\rule{1.5cm}{0pt}}^{N(k,d)-d} &
\overbrace{\rule{1.5cm}{0pt}}^{d}
\end{matrix}
\\
G = &
\begin{pmatrix}
0 & \ldots & 0 & 1 & \ldots & 1\\[9pt]
& G_1 & & & G_2 &
\end{pmatrix}
\end{array}
\end{equation}
\end{document}
claudia.degroote wrote:Is it possible in this example to set the braces and the $N(k,d)-d$ and $d$ out of the matrix?
Thanks!
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\def\Width{0\kern2\tabcolsep\ldots\kern1\tabcolsep0}
\begin{document}
\begin{equation}
\begin{array}{rl}
& ~\array{cc}\overbrace{\phantom{\Width}}^{N(k,d)-d} &
\overbrace{\phantom{\Width}}^{d} \endarray\\[-10pt]
G = & \begin{pmatrix}
0 & \ldots & 0 & 1 & \ldots & 1\\[9pt]
& G_1 & & & G_2 &
\end{pmatrix}
\end{array}
\end{equation}
\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.