Graphics, Figures & TablesCurly Bracket in a Table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Curly Bracket in a Table

Post by Montag »

Hello,

I'd like to have a curly bracket where it says "curly bracket".
It should be pointed downwards, as shown in the example picture.
Is that possible?
curly-bracket.jpg
curly-bracket.jpg (14.39 KiB) Viewed 5884 times
curly-braket-table-mwe.tex
(302 Bytes) Downloaded 361 times
Last edited by Montag on Thu May 05, 2011 10:32 pm, edited 1 time in total.
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Curly Bracket in a Table

Post by Stefan Kottwitz »

Hi,

you could use \underbrace, for example:

Code: Select all

\multicolumn{2}{p{2cm}}{\raisebox{.5\baselineskip}
{$\underbrace{\hspace{2cm}}$}}
Stefan
LaTeX.org admin
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Curly Bracket in a Table

Post by localghost »

A basic approach could look like shown below.

Code: Select all

\documentclass[%
  fontsize=11pt,
  paper=a4
]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\begin{document}
  \begin{tabular}{l||cc}\hline
    test & 1 & 212344\\
    stuff & \multicolumn{2}{c}{\raisebox{1.5ex}{\smash{$\underbrace{\makebox[5em]{}}_{}$}}}\\
    result & \multicolumn{2}{c}{212345}\\ \hline
  \end{tabular}
\end{document}
The width of the braced box has to be determined manually.


Thorsten
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Re: Curly Bracket in a Table

Post by Montag »

Thank you both!
I took Thorsten's version since I haven't dealt with p-columsn yet.
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
Post Reply