Forgot password?
 Create new account
View 169|Reply 2

$\underbrace{\text{影响间距}}$

[Copy link]

81

Threads

170

Posts

1660

Credits

Credits
1660

Show all posts

APPSYZY Posted at 2024-10-4 00:47:46 |Read mode
Last edited by APPSYZY at 2024-10-4 00:54:00
  1. \documentclass{article}
  2. \begin{document}
  3. $(x\in A\land x\in B) \lor
  4.     (x\in A\land x\in C).$
  5. $\underbrace{(x\in A\land x\in B)}_{(1)} \lor
  6.     \underbrace{(x\in A\land x\in C)}_{(2)}.$
  7. \end{document}
Copy the Code


pic.png

加上 \underbrace 之后,出现了两个问题:$\lor$ 两侧的间距变小了,而 $)$ 与 $.$ 的间距变大了。这是为什么呢?如何消除这些副作用?请教大家。

Related threads

701

Threads

110K

Posts

910K

Credits

Credits
94145
QQ

Show all posts

kuing Posted at 2024-10-4 01:40:01
十年前我就发现了这个细节:
kuing.cjhb.site/forum.php?mod=viewthread&tid=2211

当年没解释,解释也容易:
为了让 \underbrace 的下标能放到正下方,它将整块套了一个 \mathop{...}\limits ,
(\overbrace 也是,具体代码可以 source2e.pdf 里找到)
所以整块就是一个巨算符(类似于 `\sum` 那种),
巨算符和运算符之间的间距就是小间距,就像 `\sum+1` 和 `1+1` 的区别。
后面的点也是这个道理。

解决办法就是链接里那样,往外再套一层 { } 即可。

Rate

Number of participants 1威望 +2 Collapse Reason
APPSYZY + 2 很有用!

View Rating Log

701

Threads

110K

Posts

910K

Credits

Credits
94145
QQ

Show all posts

kuing Posted at 2024-10-4 01:52:29
实验一下:
  1. $00+0+0$
  2. vs
  3. $\mathop{00}+0+0$
Copy the Code



  1. $AA.$
  2. vs
  3. $\mathop{AA}.$
Copy the Code



另外,既然整块是 \mathop{...}\limits ,那就算在 $\underbrace{...}$ 后用上标,也会放在正上方,而不是右上角:
$\underbrace{(a+a+a)}^3$



除非加个 \nolimits:
$\underbrace{(a+a+a)}\nolimits^3$



Rate

Number of participants 1威望 +2 Collapse Reason
APPSYZY + 2 精彩!

View Rating Log

手机版Mobile version|Leisure Math Forum

2025-4-20 11:38 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list