Forgot password?
 Create new account
View 325|Reply 6

$gf$ 和 $\mathord{\mathit{gf}}$

[Copy link]

81

Threads

170

Posts

1660

Credits

Credits
1660

Show all posts

APPSYZY Posted at 2022-4-16 17:15:51 |Read mode
Last edited by APPSYZY at 2022-4-16 17:24:00$\text{Here we denote }gf\text{ as the composite of }f\text{ and }g.$

$\text{Here we denote }\mathord{\mathit{gf}}\text{ as the composite of }f\text{ and }g.$

感觉$gf$的间距太大,看上去不像是一个乘法整体(但其他字母的组合,比如$\alpha\beta$或者$ab$,就不会有那么大的间距,这是为啥?)而$\mathord{\mathit{gf}}$的间距似乎又太小了……有什么解决这个问题的好办法吗?

$abcdefghijklmnopqrstuvwxyz$
$\mathord{\mathit{abcdefghijklmnopqrstuvwxyz}}$

3146

Threads

8493

Posts

610K

Credits

Credits
66158
QQ

Show all posts

hbghlyj Posted at 2022-4-17 03:14:16

81

Threads

170

Posts

1660

Credits

Credits
1660

Show all posts

 Author| APPSYZY Posted at 2022-4-17 13:14:54
回复 2# hbghlyj
多谢!测试了一下,原始的$gf$相当于 \kern{0pt},而$\mathord{\mathit{gf}}$则相当于 \kern{-1pt}。这样看来的话,\kern{-0.5pt}的$g\kern{-0.5pt}f$看上去是比较好的。

81

Threads

170

Posts

1660

Credits

Credits
1660

Show all posts

 Author| APPSYZY Posted at 2022-4-17 13:16:00
Last edited by APPSYZY at 2022-4-17 14:57:00然而,在
\[abcdefghijklmnopqrstuvwxyz\]
这一串小写字母里,为什么唯独$f$的两侧空了那么多呢?为什么唯独对$f$这样设计呢?求教。

701

Threads

110K

Posts

910K

Credits

Credits
94172
QQ

Show all posts

kuing Posted at 2022-4-17 15:00:20
回复 4# APPSYZY

不妨用方框把数学公式中的所有小写字母框起来(inner sep 设置为 0):
  1. \foreach \i in
  2. {a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}
  3. {\tikz[baseline]{\node[draw,inner sep=0pt,scale=10,anchor=base] {$\i$};}\quad}
Copy the Code
QQ截图20220417144828.png
首先,`f` 这个字母的斜体天然地就会在左上和右下产生较大片空白,因为它很斜,很长。
与之类似的还有 `j`,但它没有 `f` 这么明显,从上图可以看到 `f` 的左右两边还额外多了一点点空间,空白就更大了,而 `j` 的左边就没有。
至于为什么,那只能问字体设计者了。

当这些字母在数学公式中并排写出,它们就是简单地连接起来。

文本模式中的字母是不一样的,它们的边框就不同:
  1. \foreach \i in
  2. {a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}
  3. {\tikz[baseline]{\node[draw,inner sep=0pt,scale=10,anchor=base] {\itshape\i};}\quad}
Copy the Code
(就是前面代码中的$\i$改成了\itshape\i
QQ截图20220417153938.png
除此之外,还会视情况(不同的字母组合)自动作出“字符挤压”,具体怎样也是取决于字体的内部属性。
其实浏览器排版字母时也有字符挤压,比如我常说的 LT

701

Threads

110K

Posts

910K

Credits

Credits
94172
QQ

Show all posts

kuing Posted at 2022-4-17 16:59:48

3146

Threads

8493

Posts

610K

Credits

Credits
66158
QQ

Show all posts

hbghlyj Posted at 2022-4-24 01:16:36
$\Huge\widetilde f$          $\Huge\widetilde g$
  1. $\Huge\widetilde f$
  2. $\Huge\widetilde g$
Copy the Code

手机版Mobile version|Leisure Math Forum

2025-4-20 22:06 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list