对齐箭头

对齐箭头

我有个问题。我的代码如下:

\documentclass[12pt,a4paper]{report}
\usepackage[Glenn]{fncychap}
\usepackage[latin1]{inputenc}
\usepackage{mathtools}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}

\begin{document}
\begin{center}
  $\left\{ \begin{array}{cl} 
  \textrm{math stuff} & \\
  \textrm{in}&\\
  \textrm{here} &
  \end{array}\right\}\leftrightarrow 
  \left\{\begin{array}{cl}  
  \textrm{and} & \\
  \textrm{some stuff in here} &\\
  \end{array}\right\}.$
\end{center}
\begin{center}
  $\left\{\begin{array}{cl}  %
  \textrm{other stuff} & \\
  \textrm{in} &\\
  \textrm{right here} &
  \end{array}\right\}\leftrightarrow 
  \left\{\begin{array}{cl}
  \textrm{and} & \\
  \textrm{finally} &\\
  \textrm{here}\\
  \end{array}\right\}.$
\end{center}
\end{document}

我希望箭头对齐。我该怎么做?

答案1

您可以将其放在对齐环境中:

% arara: pdflatex

\documentclass[12pt,a4paper]{report}
\usepackage[latin1]{inputenc}
\usepackage{mathtools}

\begin{document}
\begin{align*}
  \left\{\begin{array}{cl} 
  \textrm{math stuff} & \\
  \textrm{in}&\\
  \textrm{here} &
  \end{array}\right\}&\leftrightarrow 
  \left\{\begin{array}{cl}  
  \textrm{and} & \\
  \textrm{some stuff in here} &\\
  \end{array}\right\}.\\
      \left\{\begin{array}{cl}  %
  \textrm{other stuff} & \\
  \textrm{in} &\\
  \textrm{right here} &
  \end{array}\right\}&\leftrightarrow 
  \left\{\begin{array}{cl}
  \textrm{and} & \\
  \textrm{finally} &\\
  \textrm{here}\\
  \end{array}\right\}.
\end{align*}
\end{document}

在此处输入图片描述

相关内容