1

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?

  • 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 01:51
  • `\documentclass{article}

    \begin{document}

    \noindent $\left.\begin{tabular}{@{}l@{}} a\ b\ c \end{tabular}\right} \quad\longrightarrow$ d

    \end{document}`?

    –  Nov 13 '20 at 02:01
  • 2
    i do believe comment section is not meant for inputting answers code – js bibra Nov 13 '20 at 02: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. –  Nov 13 '20 at 03: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 04:37
  • @abcdefg works perfectly, thank you. Post as an answer if you wish. – George Tian Nov 13 '20 at 04:38
  • Do the answers at https://tex.stackexchange.com/q/1559/86 help you? – Andrew Stacey Nov 13 '20 at 07:12
  • @AndrewStacey yes they do, thank you – George Tian Nov 13 '20 at 09:03

2 Answers2

6

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

MadyYuvi
  • 13,693
  • \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 00: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

Sebastiano
  • 54,118
  • 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 00: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