手抄报 安全手抄报 手抄报内容 手抄报图片 英语手抄报 清明节手抄报 节约用水手抄报

LaTex排版技巧:[26]如何调整公式与文字间距

时间:2024-10-13 16:27:19

1、对于控制文字与公式之间的间距,由\abovedisp盟敢势袂layshortskip 和\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]如何调整公式与文字间距

2、另一种方法是:这里我们再提供一个环境来调节公式跤耧锿葡与文字的间距,环境的参数便是我们需要减少的长度值。\newenvironment撑俯擂摔{shrinkeq}[1]{ \bgroup\addtolength\abovedisplayshortskip{#1}\addtolength\abovedisplayskip{#1}\addtolength\belowdisplayshortskip{#1}\addtolength\belowdisplayskip{#1}}{\egroup\ignorespacesafterend}

LaTex排版技巧:[26]如何调整公式与文字间距
© 手抄报圈