Forgot password
 Register account
View 585|Reply 1

\stackrel和\mathop

[Copy link]

3200

Threads

7827

Posts

52

Reputation

Show all posts

hbghlyj posted 2021-7-29 23:34 |Read mode
Last edited by hbghlyj 2021-7-29 23:48\stackrel用于将某些东西堆叠在其他东西之上。
\$111\stackrel{top}{bot}111\$的效果为$111\stackrel{top}{bot}111$
\$\text{H}_2\text{CO}_3 \stackrel{\rm heat}{\longrightarrow} \text{H}_2\text{O} + \text{CO}_2\$的效果为$\text{H}_2\text{CO}_3 \stackrel{\rm heat}{\longrightarrow} \text{H}_2\text{O} + \text{CO}_2$
其中,使用 \rm 是为了将“heat”设置为Roman字体而不是数学斜体。

\mathop用于将某些东西作为一个整体来添加上限/下限,效果类似于大型运算符(如$\int,\sum,\prod,\bigcup,\bigcap,\bigvee,\bigwedge,\bigoplus$).
\$\mathop{\sum \sum}\limits_{i,j=1}^{N} a_i a_j\$的效果为$\mathop{\sum \sum}\limits_{i,j=1}^{N} a_i a_j$
利用\mathop的上述作用可以添加多行的上限/下限
\$\mathop{\sum\limits_{i,j=1}^{N}}\limits_{i>j}\$的效果为$\mathop{\sum\limits_{i,j=1}^{N}}\limits_{i>j}$

673

Threads

110K

Posts

218

Reputation

Show all posts

kuing posted 2021-7-30 00:26
我说两句细节……

前半:中间那里不建议用 \rm(在真 latex 里可能会出问题),可以继续用 \text 或者 \mathrm{...}。

后半:多行上限/下限已经有 \substack 命令可以用,最后那式子只需这样输入:
  1. $\sum\limits_{\substack{i,j=1\\i>j}}^N$
Copy the Code
效果:$\sum\limits_{\substack{i,j=1\\i>j}}^N$

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | Register account

$\LaTeX$ formula tutorial

Mobile version

2025-7-15 14:48 GMT+8

Powered by Discuz!

Processed in 0.014769 seconds, 23 queries