Redian新闻
>
请问怎样在多行公式中让公式编号出现在最后一行的右边
avatar
请问怎样在多行公式中让公式编号出现在最后一行的右边# TeX - TeX电子排版系统
s*n
1
现在用
\begin{equation} \label{eq:P_eSTBC}
\begin{split}
...
\\
...
\end{split}
\end{equation}
公式编号是出现在所有行的中间位置
谢谢
avatar
T*r
2
\nonumber\\

【在 s*******n 的大作中提到】
: 现在用
: \begin{equation} \label{eq:P_eSTBC}
: \begin{split}
: ...
: \\
: ...
: \end{split}
: \end{equation}
: 公式编号是出现在所有行的中间位置
: 谢谢

avatar
s*n
3
好像不行啊,如果是两行的公式
\begin{equation} \label{eq:P_eSTBC}
\begin{split}
...
\nonumber\\
...
\end{split}
\end{equation}
的结果是整个公式都没有编号

【在 T*********r 的大作中提到】
: \nonumber\\
avatar
A*e
4
用 equarray

【在 s*******n 的大作中提到】
: 好像不行啊,如果是两行的公式
: \begin{equation} \label{eq:P_eSTBC}
: \begin{split}
: ...
: \nonumber\\
: ...
: \end{split}
: \end{equation}
: 的结果是整个公式都没有编号

avatar
T*n
5
\usepackage[tbtags]{amsmath}
\begin{equation}
\begin{split}
...\\
...
\end{split} \label{...}
\end{equation}
Also try
\begin{gather}
\begin{split}
... \\ ...
\end{split} \label{...} \\
\begin{split}
... \\ ...
\end{split}
\end{gather}

【在 s*******n 的大作中提到】
: 现在用
: \begin{equation} \label{eq:P_eSTBC}
: \begin{split}
: ...
: \\
: ...
: \end{split}
: \end{equation}
: 公式编号是出现在所有行的中间位置
: 谢谢

avatar
T*n
6
Avoid eqnarray as it doesn't calculate spacing correctly. The LaTeX
developers had decided not to fix this--if you want the fix, use the
bettern environments provided by AMS-LaTeX (amsmath.sty).

【在 A**********e 的大作中提到】
: 用 equarray
avatar
A*e
7
wow... did not know it. so far it worked for me ok...

【在 T*******n 的大作中提到】
: Avoid eqnarray as it doesn't calculate spacing correctly. The LaTeX
: developers had decided not to fix this--if you want the fix, use the
: bettern environments provided by AMS-LaTeX (amsmath.sty).

avatar
s*g
8
try \align

【在 s*******n 的大作中提到】
: 现在用
: \begin{equation} \label{eq:P_eSTBC}
: \begin{split}
: ...
: \\
: ...
: \end{split}
: \end{equation}
: 公式编号是出现在所有行的中间位置
: 谢谢

avatar
k*z
9
在所有可能的地方,amsmath建议用align来代替eqnarray。
不过split是用在另外的场合,比如讨论各种条件。
avatar
A*e
10
amsmath 的 align/split 等和 \left \right 冲突,特头大。
比如说,我想打:
\left ( blah = \dfrac{\sum_i^N{blah}}{\sum_i^N{blah}} \right)
但是想在 = 处与下一行对齐。这时候 \left 和 \right 就报错了。根据 manual,
改成:
\left ( blah \right. &=
\left. \dfrac{\sum_i^N{blah}}{\sum_i^N{blah}} \right)
这时,左边的括号和`blah' 一样高,右边的和分式一样高 -_-b
如果不想手动设置括号这类 delimiter 的尺寸,想让 latex 自动处理(这个应当
是 latex 的原则吧),该咋办?amsmath 有没有提供类似的命令?

【在 k****z 的大作中提到】
: 在所有可能的地方,amsmath建议用align来代替eqnarray。
: 不过split是用在另外的场合,比如讨论各种条件。

avatar
T*n
11
split and align have very similar capabilities, but the logical mark-up
meanings: "align" two or more separate equations consistently, and
"split" one equation over two or more lines.
If you have one equation that needs to be broken into several lines and
aligned nicely, use equation+split.
If you have several equations that you want to align with respect to
each other, use align.
If you have several equations that you want to align with respect to
each other, and one of these equations also ha

【在 k****z 的大作中提到】
: 在所有可能的地方,amsmath建议用align来代替eqnarray。
: 不过split是用在另外的场合,比如讨论各种条件。

avatar
T*n
12
See my post August 13 in response to netghost.

【在 A**********e 的大作中提到】
: amsmath 的 align/split 等和 \left \right 冲突,特头大。
: 比如说,我想打:
: \left ( blah = \dfrac{\sum_i^N{blah}}{\sum_i^N{blah}} \right)
: 但是想在 = 处与下一行对齐。这时候 \left 和 \right 就报错了。根据 manual,
: 改成:
: \left ( blah \right. &=
: \left. \dfrac{\sum_i^N{blah}}{\sum_i^N{blah}} \right)
: 这时,左边的括号和`blah' 一样高,右边的和分式一样高 -_-b
: 如果不想手动设置括号这类 delimiter 的尺寸,想让 latex 自动处理(这个应当
: 是 latex 的原则吧),该咋办?amsmath 有没有提供类似的命令?

avatar
A*e
13
thanks a lot, but it's different.
I just hate to manually set the size of delimiters, and want latex to do
that.
\left and \right should be the latex way, but they conflict with & in
amsmath

【在 T*******n 的大作中提到】
: See my post August 13 in response to netghost.
avatar
T*n
14
There is no easy way to get \left and \right to do what you want.
If there were a way, they would have implemented it already.
Even when you dont have & or \\, \left and \right don't always determine
the correct size for the fences/delimiters. See the amsmath manual for
examples.
In most cases, however, if you follow the standard mathematical
typographical rules, you only need the \bigg? macros that I have
defined. The "proper" way of setting complicated mathematical
expressions is explained i

【在 A**********e 的大作中提到】
: thanks a lot, but it's different.
: I just hate to manually set the size of delimiters, and want latex to do
: that.
: \left and \right should be the latex way, but they conflict with & in
: amsmath

avatar
A*e
15
多谢多谢 :)
看来还是先忍着了。。。

【在 T*******n 的大作中提到】
: There is no easy way to get \left and \right to do what you want.
: If there were a way, they would have implemented it already.
: Even when you dont have & or \\, \left and \right don't always determine
: the correct size for the fences/delimiters. See the amsmath manual for
: examples.
: In most cases, however, if you follow the standard mathematical
: typographical rules, you only need the \bigg? macros that I have
: defined. The "proper" way of setting complicated mathematical
: expressions is explained i

avatar
c*h
16
use vphantom to cheat latex

【在 A**********e 的大作中提到】
: amsmath 的 align/split 等和 \left \right 冲突,特头大。
: 比如说,我想打:
: \left ( blah = \dfrac{\sum_i^N{blah}}{\sum_i^N{blah}} \right)
: 但是想在 = 处与下一行对齐。这时候 \left 和 \right 就报错了。根据 manual,
: 改成:
: \left ( blah \right. &=
: \left. \dfrac{\sum_i^N{blah}}{\sum_i^N{blah}} \right)
: 这时,左边的括号和`blah' 一样高,右边的和分式一样高 -_-b
: 如果不想手动设置括号这类 delimiter 的尺寸,想让 latex 自动处理(这个应当
: 是 latex 的原则吧),该咋办?amsmath 有没有提供类似的命令?

avatar
s*n
17
The first one works. Many thanks.

【在 T*******n 的大作中提到】
: \usepackage[tbtags]{amsmath}
: \begin{equation}
: \begin{split}
: ...\\
: ...
: \end{split} \label{...}
: \end{equation}
: Also try
: \begin{gather}
: \begin{split}

avatar
T*n
18
\left and \right are actually TeX primitives, can't be redefined. I guess
not much we can do to change them.

【在 A**********e 的大作中提到】
: 多谢多谢 :)
: 看来还是先忍着了。。。

avatar
A*e
19
咦?我来试试看。多谢。

【在 c*******h 的大作中提到】
: use vphantom to cheat latex
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。