1

Similar to this question, but the brace should cross multiple columns instead of rows. For example:

      animal               plant
 -------/\--------   -------/\----------
/                 \ /                   \
+--------+---------+---------+-----------+
|chicken | dog     | oak     |   maple   |
+--------+---------+---------+-----------+
0

1 Answer 1

1

Something like this?

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{tikzmark,decorations.pathreplacing}
\tikzstyle{curly} = [decorate,decoration={brace,amplitude=10pt}]
\begin{document}
    \Huge\centering
    \begin{tabular}{cccc}
        \tikzmark{a}chicken & dog\tikzmark{b} & \tikzmark{c}oak & maple\tikzmark{d}
    \end{tabular}
    \begin{tikzpicture}[yshift=.7\baselineskip,overlay,remember picture]
        \draw[curly] (pic cs:a) -- (pic cs:b) node[midway,above=5] {animal};
        \draw[curly] (pic cs:c) -- (pic cs:d) node[midway,above=5] {plant};
    \end{tikzpicture}
\end{document}

Screenshot

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .