0

I am attempting to group multiple lines of text with a curly bracket that will have text centered on the right side of the bracket:

enter image description here

My current MWE does not include the bracket.

\documentclass{article}

\begin{document}

\noindent a\\
b $\quad\longrightarrow$ d\\
c\\

\end{document}

How can I insert the bracket whilst ensuring that I can enter vertically centered text on the right of the bracket?

8
  • This would be much more common in math than in text. Are you certain this is truly text and not math? Regardless, the best approach might be to typeset it as if it were math, but just use \text{...} everywhere. – Teepeemm Nov 13 '20 at 1:51
  • \documentclass{article} \begin{document} \noindent $\left.\begin{tabular}{@{}l@{}} a\\ b\\ c \end{tabular}\right\} \quad\longrightarrow$ d \end{document}? – user228539 Nov 13 '20 at 2:01
  • 2
    i do believe comment section is not meant for inputting answers code – js bibra Nov 13 '20 at 2:14
  • There is nothing wrong with asking in a comment if some suggestion goes in the right direction. Answers should be reserved for sufficiently original codes that answer the question. – user228539 Nov 13 '20 at 3:12
  • @Teepeemm there would be a combination of math and text, but as it won't be too long I won't object using \text within a math environment. – George Tian Nov 13 '20 at 4:37
5

Please try with:

\documentclass{book}
\usepackage{mathtools}
\begin{document}

\[
\begin{rcases}
\mathrm{a}\\
\mathrm{b}\\
\mathrm{c}
\end{rcases}\longrightarrow \mathrm{d}
\]

\end{document}

enter image description here

2
  • \mathrm shouldn't be used for text; it should be \text. Although an actual example from the OP would have been nice. – Teepeemm Nov 13 '20 at 13:53
  • And \textnormal unless you want the text italicized within an italicized theorem statement. – Davislor Nov 17 '20 at 0:45
1

It is possible to create a MWE also using a simple array (with the vertical spaces between the equations [.5ex]).

\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\begin{document}
\[ 
\left.\begin{array}{r} 
\textnormal{a}\\[.5ex]
\textnormal{b}\\[.5ex]
\textnormal{c}
\end{array} \right\} 
\longrightarrow \textnormal{d}
\]
\end{document} 
   

Here there is the output:

enter image description here

2
  • Note that, if you use this figure within a theorem statement where the text is italicized, \text will be italicized too. Maybe that’s what you want. To get the effect of \mathrm, which always gives you regular-weight, upright text, use \textnormal. – Davislor Nov 17 '20 at 0:52
  • @Davislor Very kind, thank you very much for your advice. In this period I am very busy with the school, discouraged and I am connecting very little. Thanks again and I will make the change. – Sebastiano Nov 21 '20 at 21:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.