![对齐箭头](https://linux22.com/image/294046/%E5%AF%B9%E9%BD%90%E7%AE%AD%E5%A4%B4.png)
我有个问题。我的代码如下:
\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}