如何在多行文字中插入大花括號?

如何在多行文字中插入大花括號?

我正在嘗試使用大括號將多行文字分組,該大括號將使文字居中於括號右側:

在此輸入影像描述

我目前的 MWE 不包括支架。

\documentclass{article}

\begin{document}

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

\end{document}

如何插入括號,同時確保可以在括號右側輸入垂直居中的文字?

答案1

請嘗試:

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

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

\end{document}

在此輸入影像描述

答案2

也可以使用簡單數組(方程式之間有垂直空間[.5ex])來建立 MWE。

\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} 
   

這是輸出:

在此輸入影像描述

相關內容