1

How to get a curly brace of given length? (e.g: 100px)

The following works but it is obviously not the best solution:

\begin{cases}
\\
\\
\\
\\
\\
\\
\\
\end{cases}

3 Answers 3

1

By mirroring how \Big and similar existing LaTeX commands are defined:

\documentclass{article}
\begin{document}

\[
\left\{\vbox to 100pt{}\right.
\]

\end{document}

Output is as you expect.

1
1

Here are two macros that take a length as an argument. Note that these are not "paired" in the sense that you can use \biggglB without a matching \bigggrB.

enter image description here

\documentclass{article}
\usepackage{amsmath}

\newcommand{\biggglB}[1]{\left\{\!\parbox{0pt}{\rule{0pt}{#1}}\right.}
\newcommand{\bigggrB}[1]{\left.\parbox{0pt}{\rule{0pt}{#1}}\!\right\}}

\begin{document}

\[
\biggglB{70pt}ABC\bigggrB{50pt}\Biggl\{ABC\Biggr\}\{ABC\}
\]

\end{document}
0

Maybe something like this??

\documentclass{article}
\usepackage{rotating}
\newcommand\leftbrace[1]{\mathopen  {\raisebox{+2pt}{%
  \,\rotatebox[origin=c]{-90}{\hbox to #1{\upbracefill}}\,}}}
\newcommand\rightbrace[1]{\mathclose{\raisebox{-2pt}{%
  \,\rotatebox[origin=c]{+90}{\hbox to #1{\upbracefill}}\,}}}
\begin{document}
$\leftbrace{100pt}XxxX\rightbrace{10pt}-1$
\end{document}

enter image description here

You must log in to answer this question.

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