我有以下内容:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
&\pi(x) & \parbox{8cm}{Lorem ipsum dolor sit amet, harum electram vim ut. Recusabo expetenda sententiae an nam. Ut has laudem graeco invenire. } \\
&\psi(y) & \parbox{8cm}{Lorem ipsum dolor sit amet, harum electram vim ut. Recusabo expetenda sententiae an nam. Ut has laudem graeco invenire. } \\
&\tau(z) & \parbox{8cm}{Lorem ipsum dolor sit amet, harum electram vim ut. Recusabo expetenda sententiae an nam. Ut has laudem graeco invenire. } \\
\end{align*}
\end{document}
我正在尝试解释左侧表达式的一些内容。如何垂直对齐表达式及其相应的解释?
如果混合 amsmath aligned 和 parbox 不是正确的方法?你有什么建议?
答案1
align
这里的环境是错误的,您最好使用表格或列表,列表的优势在于您可以在自然点进行分页,即使那是在项目描述的一半。可以使用enumitem
我已加载的包轻松控制列表格式,但这里只使用默认布局。
\documentclass{article}
\usepackage{amsmath,array,enumitem}
\begin{document}
\begin{tabular}{>$l<$p{8cm}}
\pi(x) & Lorem ipsum dolor sit amet, harum electram vim ut. Recusabo expetenda sententiae an nam. Ut has laudem graeco invenire. \\
\psi(y) & Lorem ipsum dolor sit amet, harum electram vim ut. Recusabo expetenda sententiae an nam. Ut has laudem graeco invenire. \\
\tau(z) & Lorem ipsum dolor sit amet, harum electram vim ut. Recusabo expetenda sententiae an nam. Ut has laudem graeco invenire. \\
\end{tabular}
\begin{description}
\item[$\pi(x)$] Lorem ipsum dolor sit amet, harum electram vim ut. Recusabo expetenda sententiae an nam. Ut has laudem graeco invenire.
\item[$\psi(y)$] Lorem ipsum dolor sit amet, harum electram vim ut. Recusabo expetenda sententiae an nam. Ut has laudem graeco invenire.
\item[$\tau(z)$] Lorem ipsum dolor sit amet, harum electram vim ut. Recusabo expetenda sententiae an nam. Ut has laudem graeco invenire.
\end{description}
\end{document}