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

 时间:2026-04-21 17:10:00

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]如何调整公式与文字间距

2、另一种方法是:

这里我们再提供一个环境来调节公式与文字的间距,环境的参数便是我们需要减少的长度值。

\newenvironment{shrinkeq}[1]

{ \bgroup

\addtolength\abovedisplayshortskip{#1}

\addtolength\abovedisplayskip{#1}

\addtolength\belowdisplayshortskip{#1}

\addtolength\belowdisplayskip{#1}}

{\egroup\ignorespacesafterend}

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

  • Latex如何实现文字居中显示?
  • latex中大括号公式怎么打
  • latex公示编号居中
  • Latex如何调节图片的长和宽?
  • Latex如何对正文的段落进行置顶和缩进操作?
  • 热门搜索
    刷卡机怎么用 羽绒服怎么洗好 河蟹怎么保存 土味情话大全撩妹 儿童诗歌大全100首 笋干怎么吃 宝宝感冒咳嗽流鼻涕怎么办 什么方法可以祛斑 羊肉火锅怎么做好吃 乳腺囊肿最好的治疗方法