![增加内联数学周围的行间距(与 smash/strut 相反)/在内联数学周围添加填充](https://linux22.com/image/443767/%E5%A2%9E%E5%8A%A0%E5%86%85%E8%81%94%E6%95%B0%E5%AD%A6%E5%91%A8%E5%9B%B4%E7%9A%84%E8%A1%8C%E9%97%B4%E8%B7%9D%EF%BC%88%E4%B8%8E%20smash%2Fstrut%20%E7%9B%B8%E5%8F%8D%EF%BC%89%2F%E5%9C%A8%E5%86%85%E8%81%94%E6%95%B0%E5%AD%A6%E5%91%A8%E5%9B%B4%E6%B7%BB%E5%8A%A0%E5%A1%AB%E5%85%85.png)
很简单,内联数学(特别是显示样式)不会在行之间提供太多填充。我知道有很多评论说使用诸如和之类的命令\smash
来做\strut
相反的事情(删除间距),但如何才能做到这一点增加内联数学元素周围的间距。
例如上面
Whole numbers can also be written as a fraction to make their multiplication easier. Any whole number, for example `3' can be written as $\dfrac{3}{1}$. That is, we simply put the whole number we want as the numerator, and the denominator just becomes 1.
(1)理想情况下,最好能用一个命令来普遍修复这个问题;但如果做不到这一点
(2)是否可以简单地在这些数学元素(甚至是幻影框)周围提供填充以实现所需的结果?