Kód je převzat a rozšířen z reference (fórum, uživatel Peter Grill).
(před \\begin{document}):
% begin svorky %pouziti: % \tikzmark{Start} 1 & 2 & \tikzmark{End} % oznacime zacatek a konec % ... % \InsertUnderBrace{Start}{End}{Explanation} % vlozime svorku \usepackage{amsmath}\usepackage{tikz}\usetikzlibrary{calc}\usetikzlibrary{decorations.pathreplacing} \newcommand{\tikzmark}[1]{\tikz[overlay,remember picture] \node (#1) {};} \newcommand*{\BraceAmplitude}{0.5em} \newcommand*{\VerticalOffset}{1.2ex} \newcommand*{\HorizontalOffset}{0.3em} \newcommand*{\InsertUnderBrace}[4][]{ \begin{tikzpicture}[overlay,remember picture] \draw [decoration={brace,amplitude=\BraceAmplitude},decorate, thick,draw=black,text=black,#1] ($(#3)+(\HorizontalOffset,-\VerticalOffset)$) -- ($(#2)+(-\HorizontalOffset,-\VerticalOffset)$) node [below=\VerticalOffset, midway] {#4}; \end{tikzpicture} } % end svorky
Použití:
\begin{equation} \begin{split} % pro pripadne zalomeni rovnice \overline{\mathcal{C}}= \left[ \begin{array}{cccc} 0 & 0 & 1 & 0 \\ 1 & 0 & -3 & 1 \\ 0 & 1 & 4 & 0 \\ 0 & 0 & -1 & 1 \\ \hline \tikzmark{1} b_1 & A \, b_1 & A^{2} \, b_1 \tikzmark{2} & \tikzmark{3} b_2 \tikzmark{4} \end{array} \right] \InsertUnderBrace{1}{2}{$\mu_1$} \InsertUnderBrace{3}{4}{$\mu_2$} \end{split} \label{eq:label} \end{equation} \vspace{1cm} % aby svorka nepretekala do dalsiho textu
Reference arrays - Using \underbrace with table columns - TeX - LaTeX.
Tento web jsem zakládal na střední, v roce 2008. Je zde hlavně archiv mé tvorby.
Aktuální věci publikuji kvůli úspoře času na Twitter.
Honza
"Člověk má tři cesty, jak moudře jednat. Nejprve přemýšlením, to je ta nejušlechtilejší cesta. Druhá cesta vede napodobováním, ta je cestou nejlehčí, a třetí cesta, zkušenosti, je tou nejtvrdší."