LaTex排版技巧:[26]如何调整公式与文字间距
1、对于控制文字与公式之间的间距,由\abovedisplayshortskip 和\belowdisplayshortskip 两个来控制。将其进行对比The text above, the equation\begin{equation}(2n)!/\bigl(n!\,(n+1)!\bigr).\end{equation}The text below.The text above, the equation{\setlength\abovedisplayskip{1pt}\setlength\belowdisplayskip{1pt}\begin{equation}(2n)!/\bigl(n!\,(n+1)!\bigr).\end{equation}}The text below.
![LaTex排版技巧:[26]如何调整公式与文字间距](https://exp-picture.cdn.bcebos.com/a1780d1fceecd3d97d9d8a70679959430501087c.jpg)
2、另一种方法是:这里我们再提供一个环境来调节公式跤耧锿葡与文字的间距,环境的参数便是我们需要减少的长度值。\newenvironment撑俯擂摔{shrinkeq}[1]{ \bgroup\addtolength\abovedisplayshortskip{#1}\addtolength\abovedisplayskip{#1}\addtolength\belowdisplayshortskip{#1}\addtolength\belowdisplayskip{#1}}{\egroup\ignorespacesafterend}
![LaTex排版技巧:[26]如何调整公式与文字间距](https://exp-picture.cdn.bcebos.com/5c2a1ad149299a8826fb905167eeadbcbf2f7f7c.jpg)