avatar
environement nesting problem# TeX - TeX电子排版系统
p*o
1
in latex, it is conceptually natural to embed environments inside
others, but it always gives me a lot of troubles in doing so. for
example, "eqnarray*" can not be embeded in a tabular. my questions
are
1. is there any rule-of-thumb which determines which environment
can be nested in another one and which can't?
2. is there any trick to by-pass these constraints? for example, i
might really wish to nest some equations inside a tabular.
thanks!
avatar
T*n
2
Don't use LaTeX eqnarray. It's does not do a good job calculating spaces
and is not flexible. Learn to use the various alignment environments
provided by amsmath.sty instead.
The following should do what you want, except that the equation numbers
are automatically numbered in the order that the table is constructed.
If you want the equation number to go down the column automatically, it
will take more work.
The command \mitcmd and the environment "mitenv" are basically the same.
You can use wh

【在 p****o 的大作中提到】
: in latex, it is conceptually natural to embed environments inside
: others, but it always gives me a lot of troubles in doing so. for
: example, "eqnarray*" can not be embeded in a tabular. my questions
: are
: 1. is there any rule-of-thumb which determines which environment
: can be nested in another one and which can't?
: 2. is there any trick to by-pass these constraints? for example, i
: might really wish to nest some equations inside a tabular.
: thanks!

avatar
T*n
3
To answer your questions: There is no general rule of thumb about
the compatibility of environments when it comes to nesting them.
It all depends on the internal LaTeX code. If the environments
don't use tricks that involve the manipulation of character codes,
the horizontal/vertical/math modes, inserts (marginpar, footnote),
alignments, etc., then there is a better chance of compatibility.
In the case of putting aligned equations inside tabular, the &
character causes headache because LaTeX c

【在 p****o 的大作中提到】
: in latex, it is conceptually natural to embed environments inside
: others, but it always gives me a lot of troubles in doing so. for
: example, "eqnarray*" can not be embeded in a tabular. my questions
: are
: 1. is there any rule-of-thumb which determines which environment
: can be nested in another one and which can't?
: 2. is there any trick to by-pass these constraints? for example, i
: might really wish to nest some equations inside a tabular.
: thanks!

avatar
p*o
4
thanks for the long reply, :).
personally, i think it would be great that all environments (or some
basic ones) can be nested without constraints. it is convenient and
conceptually good. maybe it hurts the performance and it's also hard
to implement.

【在 T*******n 的大作中提到】
: Don't use LaTeX eqnarray. It's does not do a good job calculating spaces
: and is not flexible. Learn to use the various alignment environments
: provided by amsmath.sty instead.
: The following should do what you want, except that the equation numbers
: are automatically numbered in the order that the table is constructed.
: If you want the equation number to go down the column automatically, it
: will take more work.
: The command \mitcmd and the environment "mitenv" are basically the same.
: You can use wh

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