增加方程式中的行间距

增加方程式中的行间距

我有一个公式,我想增加行之间的空间以便于阅读。

\begin{equation}
\begin{flalign*}
\epsilon \bm{\Xi}_n & = M_\epsilon(\bm{x}_{\epsilon,n-1} )  - M(\bm{x}_{n-1})  = \\   &=M_\epsilon(\bm{x}_{\epsilon, n-1} )  - M(\bm{x}_{\epsilon, n-1} ) + M(\bm{x}_{\epsilon,n-1})-M^n(\bm{x}) =  \\
&=\epsilon \bm{\xi}_n + M( M(\bm{x}_{\epsilon, n-2} ) +\epsilon \bm{\xi}_{n-1})  - M^n(\bm{x}) = \\
&=\epsilon \bm{\xi}_n + \epsilon DM(\bm{x}_{n-1}) \bm{\xi}_{n-1}+ M^2\left( M(\bm{x}_{\epsilon, n-3} + \epsilon \xibf_{n-2} \right) -M^n(\bm{x})  + O(\epsilon^2) \\
& = \epsilon \bm{\xi}_n + \epsilon DM(\bm{x}_{n-1})\bm{\xi}_{n-1}+\epsilon DM^2( \bm{x}_{n-2}) \bm{\xi}_{n-2} + 
M^3( \bm{x}_{\epsilon, n-3} )-M^n(\bm{x}).
\end{flalign*}
\end{equation}

我读过这篇文章暂时增加行距但有很多不同的方法。有些方法只适用于文本。

我使用以下软件包:

\usepackage{ws-rotating}     
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{mathtools}

答案1

如果您想在多行方程组中均匀增加行距,而不必[vertical spacing]在每个换行符处键入,您可以在此类环境的开头使用\setstretch(来自包)。顺便说一句,如果您加载了,则不必加载。另外,我认为您需要的是环境,而不是,它不适用于。\setspacemathtoolsamsmathalignedflalign*equation

示例中的第二个示例排版如下\setstretch{2}

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fourier}
\usepackage{heuristica}
\usepackage{mathtools}
\usepackage{bm}
\usepackage{setspace}

\begin{document}

\begin{equation}
\begin{aligned}
\epsilon \bm{\Xi}_n & = M_\epsilon(\bm{x}_{\epsilon,n-1} ) - M(\bm{x}_{n-1}) = \\
&=M_\epsilon(\bm{x}_{\epsilon, n-1} ) - M(\bm{x}_{\epsilon, n-1} ) + M(\bm{x}_{\epsilon,n-1})-M^n(\bm{x}) = \\
&=\epsilon \bm{\xi}_n + M( M(\bm{x}_{\epsilon, n-2} ) +\epsilon \bm{\xi}_{n-1}) - M^n(\bm{x}) = \\
&=\epsilon \bm{\xi}_n + \epsilon DM(\bm{x}_{n-1}) \bm{\xi}_{n-1}+ M^2\left( M(\bm{x}_{\epsilon, n-3} + \epsilon \bm{\xi}_{n-2} \right) -M^n(\bm{x}) + O(\epsilon^2) \\
& = \epsilon \bm{\xi}_n + \epsilon DM(\bm{x}_{n-1})\bm{\xi}_{n-1}+\epsilon DM^2( \bm{x}_{n-2}) \bm{\xi}_{n-2} +
M^3( \bm{x}_{\epsilon, n-3} )-M^n(\bm{x}).
\end{aligned}
\end{equation}

\begin{equation}
\setstretch{1.5}
\begin{aligned}
\epsilon \bm{\Xi}_n & = M_\epsilon(\bm{x}_{\epsilon,n-1} ) - M(\bm{x}_{n-1}) = \\
&=M_\epsilon(\bm{x}_{\epsilon, n-1} ) - M(\bm{x}_{\epsilon, n-1} ) + M(\bm{x}_{\epsilon,n-1})-M^n(\bm{x}) = \\
&=\epsilon \bm{\xi}_n + M( M(\bm{x}_{\epsilon, n-2} ) +\epsilon \bm{\xi}_{n-1}) - M^n(\bm{x}) = \\
&=\epsilon \bm{\xi}_n + \epsilon DM(\bm{x}_{n-1}) \bm{\xi}_{n-1}+ M^2\left( M(\bm{x}_{\epsilon, n-3} + \epsilon \bm{\xi}_{n-2} \right) -M^n(\bm{x}) + O(\epsilon^2) \\
& = \epsilon \bm{\xi}_n + \epsilon DM(\bm{x}_{n-1})\bm{\xi}_{n-1}+\epsilon DM^2( \bm{x}_{n-2}) \bm{\xi}_{n-2} +
M^3( \bm{x}_{\epsilon, n-3} )-M^n(\bm{x}).
\end{aligned}
\end{equation}

\end{document}

在此处输入图片描述

答案2

只是为了配合 Ians 的建议,这里是相同的使用spreadlines

\documentclass{article}
\usepackage{mathtools}
\begin{document}
\begin{spreadlines}{1cm}
  \begin{flalign*}
    A &= B \\
    &= C \\
    &= D
  \end{flalign*}
\end{spreadlines}
\end{document}

答案3

使用长度作为的可选参数\\。这里我用1cm它来夸大效果。

\documentclass{article}
\usepackage{mathtools}
\begin{document}
\begin{flalign*}
A &= B \\[1cm]
  &= C \\[1cm]
  &= D
\end{flalign*}
\end{document}

间距

答案4

使用(秘密)内置方法:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fourier}
\usepackage{heuristica}
\usepackage{mathtools}
\usepackage{bm}
\usepackage{setspace}

\begin{document}

\begin{equation}
\begin{aligned}
\epsilon \bm{\Xi}_n & = M_\epsilon(\bm{x}_{\epsilon,n-1} ) - M(\bm{x}_{n-1}) = \\
&=M_\epsilon(\bm{x}_{\epsilon, n-1} ) - M(\bm{x}_{\epsilon, n-1} ) + M(\bm{x}_{\epsilon,n-1})-M^n(\bm{x}) = \\
&=\epsilon \bm{\xi}_n + M( M(\bm{x}_{\epsilon, n-2} ) +\epsilon \bm{\xi}_{n-1}) - M^n(\bm{x}) = \\
&=\epsilon \bm{\xi}_n + \epsilon DM(\bm{x}_{n-1}) \bm{\xi}_{n-1}+ M^2\left( M(\bm{x}_{\epsilon, n-3} + \epsilon \bm{\xi}_{n-2} \right) -M^n(\bm{x}) + O(\epsilon^2) \\
& = \epsilon \bm{\xi}_n + \epsilon DM(\bm{x}_{n-1})\bm{\xi}_{n-1}+\epsilon DM^2( \bm{x}_{n-2}) \bm{\xi}_{n-2} +
M^3( \bm{x}_{\epsilon, n-3} )-M^n(\bm{x}).
\end{aligned}
\end{equation}

\begin{equation}
\setstretch{1.5}
\begin{aligned}
\epsilon \bm{\Xi}_n & = M_\epsilon(\bm{x}_{\epsilon,n-1} ) - M(\bm{x}_{n-1}) = \\
&=M_\epsilon(\bm{x}_{\epsilon, n-1} ) - M(\bm{x}_{\epsilon, n-1} ) + M(\bm{x}_{\epsilon,n-1})-M^n(\bm{x}) = \\
&=\epsilon \bm{\xi}_n + M( M(\bm{x}_{\epsilon, n-2} ) +\epsilon \bm{\xi}_{n-1}) - M^n(\bm{x}) = \\
&=\epsilon \bm{\xi}_n + \epsilon DM(\bm{x}_{n-1}) \bm{\xi}_{n-1}+ M^2\left( M(\bm{x}_{\epsilon, n-3} + \epsilon \bm{\xi}_{n-2} \right) -M^n(\bm{x}) + O(\epsilon^2) \\
& = \epsilon \bm{\xi}_n + \epsilon DM(\bm{x}_{n-1})\bm{\xi}_{n-1}+\epsilon DM^2( \bm{x}_{n-2}) \bm{\xi}_{n-2} +
M^3( \bm{x}_{\epsilon, n-3} )-M^n(\bm{x}).
\end{aligned}
\end{equation}

\end{document}

在此处输入图片描述

请注意,尾随的等号不是必需的;另外,我将\left(and\right)改为\bigl(and\bigr)以获得稍大一些的括号。

相关内容