如何在数学模式下写入多行文本并保持它们居中?

如何在数学模式下写入多行文本并保持它们居中?

我似乎无法弄清楚如何实现以下目标。我尝试使用

\left.\begin{cases} 


\textrm{morphisms from V to W} \\\\

\textrm{k-algebra blablabla}

\end{cases}\right\}

但文本并不像图片中那样居中。谢谢帮助!在此处输入图片描述

答案1

我想到的答案(当克拉拉发布时)与克拉拉的类似,但使用常规表格和@{}来消除表格两侧的额外填充。

\documentclass{article}

\begin{document}


\[
\left\{
\begin{tabular}{@{}c@{}}
morphisms~from~$V$~to~$W$\\
as~algebraic~sets
\end{tabular}
\right\}
\longleftrightarrow
\left\{
\begin{tabular}{@{}c@{}}
$k$-algebra homomorphisms\\
from $k[W]$ to $k[V]$
\end{tabular}
\right\}
\]

\end{document}

方程式中的表格

答案2

\documentclass{article}

\usepackage{tabularray}
\usepackage{amsmath}

\begin{document}

\section{array}

\begin{equation}
\left\{
\begin{array}{@{\hskip2pt}c@{\hskip2pt}}
\text{morphisms from } V \text{ to } W\\
k-\text{algebra blablabla}
\end{array}
\right\}
\longleftrightarrow
\left\{
\begin{array}{@{\hskip2pt}c@{\hskip2pt}}
\text{morphisms from } V \text{ to } W\\
k-\text{algebra blablabla}
\end{array}
\right\}
\end{equation}

\section{tabular}

\begin{equation}
\left\{
\begin{tabular}{@{\hskip2pt}c@{\hskip2pt}}
morphisms from $V$ to $W$\\
$k$-algebra blablabla
\end{tabular}
\right\}
\longleftrightarrow
\left\{
\begin{tabular}{@{\hskip2pt}c@{\hskip2pt}}
morphisms from $V$ to $W$\\
$k$-algebra blablabla
\end{tabular}
\right\}
\end{equation}

\section{tabularray}

\begin{equation}
\left\{
\begin{tblr}{colspec={c},colsep={2pt}}
\text{morphisms from } V \text{ to } W\\
k-\text{algebra blablabla}
\end{tblr}
\right\}
\longleftrightarrow
\left\{
\begin{tblr}{colspec={c},colsep={2pt}}
\text{morphisms from } V \text{ to } W\\
k-\text{algebra blablabla}
\end{tblr}
\right\}
\end{equation}

\end{document}

在此处输入图片描述

相关内容