Forgot password
 Register account
View 171|Reply 7

分式在积分限处或在xlongequal处,怎么弄成显示成随行公式的

[Copy link]

414

Threads

1641

Posts

15

Reputation

Show all posts

abababa posted 2022-11-3 21:21 |Read mode
如题,在行间公式里,我的真latex里显示的是像dfrac那种的,即使我用了tfrac也是这样,怎么能让它显示成随行公式那种的?
\[\int_{B(0,\frac{1}{n})}, \xlongequal{x\in B(0,\frac{1}{n})}\]

在网页里显示的是正确的。

673

Threads

110K

Posts

218

Reputation

Show all posts

kuing posted 2022-11-3 21:56
无法重现你的问题,请提供最小可重现示例。(或许在你写该示例时就自己发现问题并解决了)

764

Threads

4672

Posts

27

Reputation

Show all posts

isee posted 2022-11-3 22:28
多半是你改动过内置本身的命令

Comment

+1  posted 2022-11-4 00:00
isee=freeMaths@知乎

414

Threads

1641

Posts

15

Reputation

Show all posts

original poster abababa posted 2022-11-4 12:29
kuing 发表于 2022-11-3 21:56
无法重现你的问题,请提供最小可重现示例。(或许在你写该示例时就自己发现问题并解决了) ...
是的,已经解决了,把\tfrac换回\frac就好了
而\tfrac在网页里显示的也是大的分数:
\[\int_{B(0,\tfrac{1}{n})}, \xlongequal{x\in B(0,\tfrac{1}{n})}\]

下面是\frac,对照一下:
\[\int_{B(0,\frac{1}{n})}, \xlongequal{x\in B(0,\frac{1}{n})}\]

13

Threads

898

Posts

8

Reputation

Show all posts

色k posted 2022-11-4 13:52
Last edited by 色k 2022-11-4 14:03
abababa 发表于 2022-11-4 12:29
是的,已经解决了,把\tfrac换回\frac就好了
而\tfrac在网页里显示的也是大的分数:
\[\int_{B( ...
latex 的数学公式里有四种 style,分别使用不同的格式及字体大小,由大到小分别为:
  • \displaystyle ——显示模式
  • \textstyle ——行内模式
  • \scriptstyle ——上下标模式
  • \scriptscriptstyle ——二级或以上的上下标模式

\dfrac 和 \tfrac 对应前两种,而 \frac 是自动适应。

xlongequal 的上下说明处于 \scriptstyle ,你用 \tfrac 当然是大了一号了(但也比 \dfrac 小)。

所以如果你在上下标使用 \tfrac 也是大了的,比如:
\$ 2^{\frac1n} + 2^{\tfrac1n} + 2^{\dfrac1n} \$
显示:$ 2^{\frac1n} + 2^{\tfrac1n} + 2^{\dfrac1n} $
讲开又讲,很多人滥用 \dfrac 甚至从没用过 \frac 的,我偶尔就看到 $2^{\dfrac1n}$ 这种。
这名字我喜欢

13

Threads

898

Posts

8

Reputation

Show all posts

色k posted 2022-11-4 14:07
话说,你两次提到有关 xlongequal 的疑问最终原因都与 xlongequal 无关
forum.php?mod=viewthread&tid=4346
这名字我喜欢

414

Threads

1641

Posts

15

Reputation

Show all posts

original poster abababa posted 2022-11-4 14:59
色k 发表于 2022-11-4 13:52
latex 的数学公式里有四种 style,分别使用不同的格式及字体大小,由大到小分别为:

[*]\displaystyle  ...
原来tfrac是这个text-frac的意思,我还以为是thin(瘦)的意思

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-20 05:44 GMT+8

Powered by Discuz!

Processed in 0.011838 seconds, 24 queries