Latex缩短公式之间的距离

来源:互联网 发布:mysql 联表查询 count 编辑:程序博客网 时间:2024/06/13 06:26

用Latex写幻灯片的时候,有时公式太长,一页写不下,可以考虑缩短公式之间的距离。

在某一页\begin{frame}之前贴上如下代码:

\newenvironment{shrinkeq}[1]%缩短公式之间的距离{ \bgroup  \addtolength\abovedisplayshortskip{#1}  \addtolength\abovedisplayskip{#1}  \addtolength\belowdisplayshortskip{#1}  \addtolength\belowdisplayskip{#1}}{\egroup\ignorespacesafterend}

编辑公式的时候,在

\begin{equation}

\begin{aligned}

%编辑公式

\end{aligned}

\end{equation}

外部加上

\begin{shrinkeq}{-2ex}%2ex表示缩短的距离

\end{shrinkeq}

0 0
原创粉丝点击