有没有办法在等式上方显示长等式的数字(如果缺少位置,则通常会出现在其下方)?
也就是说,如果你编译下面的代码,结果将如下所示
...如下列等式所示
长方程输出
[space space below it]
(等式数)
我希望 TeX 显示
...如下列等式所示
[space space above eq.]
(等式数)长方程输出
\documentclass[11pt]{article}
\pagestyle{empty}
\usepackage{amsmath}
\begin{document}
...as the following equation shows
\begin{align}
blahblahblahblahblahblahblahblahblahblahblahblahblahblahblahblahblah
\end{align}
\end{document}
答案1
\raisetag
包中的命令可能amsmath
有助于将标签定位在方程式上方而不是下方。根据align
环境的实际内容,长度可能需要进行相应调整。
\documentclass[11pt]{article}
\pagestyle{empty}
\usepackage{amsmath}
\begin{document}
...as the following equation shows
\begin{align}
blahblahblahblahblahblahblahblahblahblahblahblahblahblahblahblahblah
\raisetag{2\normalbaselineskip}
\end{align}
\end{document}