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)
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:101
阅读量:142
阅读量:100
阅读量:142
阅读量:158