看来 amsmath\raisetag
宏无法与alignedat
环境结合使用。请参阅下面的 MWE:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\begin{alignedat}{3}
\text{line 1} &\quad&& \text{is long, very long, really very long, unbelievably long, really it is such}\\
\text{line 2} &&& \text{is short}
\end{alignedat}
\raisetag{\baselineskip} % <--- seems to do nothing!
\end{equation}
\end{document}
有可能修复或者解决这个问题吗?
答案1
在我看来,这\raisetag
应该在这里工作。它适用于split
:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\begin{split}
\text{line 1} &\quad \text{is long, very long, really very long, unbelievably long, really it is such}\\
\text{line 2} &\quad \text{is short}
\end{split}
\raisetag{\baselineskip}
\end{equation}
\end{document}
我会提交一个错误报告,但不能保证何时会查看(或修复)它。
答案2
使用常规设置内容align
,添加\nonumber
到等式的第一部分:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
\text{line 1} &\quad \text{is long, very long, really very long, unbelievably long, really it is such} \nonumber \\
\text{line 2} &\quad \text{is short}
\end{align}
\end{document}
amsmath.dtx
有点暗示了这一点,但我不完全确定这是否与你的情况有关:
请注意,根据当前的用法
\raise@tag
,例如\place@tag@gather
,如果标签落入正常位置,则不会发生调整;即,\raisetag
除非标签已经脱机,否则不会产生任何影响。
答案3
如果您希望方程编号相对于线组居中,最好使用包multlined
中的环境mathtools
。下面是一个例子,展示了在这种背景下的差异 split
,以及不同的对齐方式。顺便说一句,使用alignat
,您不必在两组之间重复四边形分隔符:
\documentclass{article}
\usepackage{mathtools}
\begin{document}
\begin{equation}
\begin{alignedat}{2}
& \text{line 1} & \quad & X \begin{multlined}[t]
\text{is long, very long, really }\\\text{very long, unbelievably long, really it is such}
\end{multlined}\\
& \text{line 1A} & & X \,\text{is short}
\end{alignedat}
\end{equation}
\bigskip
\begin{equation}
\begin{alignedat}{2}
\text{line 1} & \quad & X & \begin{multlined}[t]
\text{is long, very long, really }\\\text{very long, unbelievably long, really it is such}
\end{multlined}\\
\text{line 1A} & &X &\, \text{is short}
\end{alignedat}
\end{equation}
\bigskip
\begin{equation}
\begin{alignedat}{2}
\text{line 1} & \quad & X & \begin{split}
\text{is long, very long, really }\\\text{very long, unbelievably long, really it is such}%
\end{split}
\\
\text{line 1A} & \quad & X &\, \text{is short}
\end{alignedat}
\end{equation}
\end{document}