以长方程式为中心

以长方程式为中心

我有几个像下面这样的长方程式,它们溢出到文档的右边距,导致方程式编号被放在它们下面。有没有办法可以将它们居中——也许可以将它们稍微移到左边距内?我尝试使用解决方案这里但它不起作用。我不想使用较小的字体来处理这个问题。有没有我可能不知道的方法来处理它们,或者有某种“最佳实践”?

在此处输入图片描述

这是 MWE

\documentclass[12pt,a4paper]{article}
\usepackage[margin=1.9cm]{geometry}
\usepackage{mathtools}
\usepackage{bbm}
\usepackage{amsmath, amsfonts, amsthm, amssymb, epsfig}
\usepackage[scr=boondoxo,scrscaled=1.05]{mathalfa}
\begin{document}
The second part of impatient household's problem includes maximizing their utility, given their choice of loans. This can be written as 
\begin{equation}
\mathscr{L}_{t} = 
\mathbb{E}_{t}
\begin{Bmatrix}
    \sum_{t = 0}^{\infty}\left(\beta^{I}\right)^{t}
    \begin{bmatrix}
    \log\left(C_{m, t}^{I} - \gamma^{I}C_{m, t-1}^{I}\right) - \iota_{t}N_{m, t}^{I} + \varsigma_{t}\log H_{m, t}^{I} \\
    - \lambda_{m, t}^{I}
    \begin{bmatrix}
    C_{m, t}^{I} + \int_{0}^{1}R_{t-1}^{L}l_{mk, t-1}^{I}\mathrm{d}k - W_{t}^{I}N_{m, t}^{I} + Q_{t}^{H}\left(H_{m, t}^{I} - H_{m, t-1}^{I}\right) - x_{m, t}^{I} - \Phi_{t}^{I} - \Psi_{t}^{I}
    \end{bmatrix} \\
    - \mu_{m, t}^{I}
    \begin{bmatrix}
    R_{k, t}^{L}\int_{0}^{1}l_{mk, t}^{I}\mathrm{d}k - \int_{0}^{1}\theta_{k, t}\mathrm{d}k \mathbb{E}_{t}\left(Q_{t+1}^{H}H_{m, t}^{I}\right)
    \end{bmatrix} \\
    - \epsilon_{m, t}^{I}
    \begin{bmatrix}
    x_{m, t}^{I} - \left\{\int_{0}^{1}\left(l_{mk, t}^{I} - \gamma^{L}s_{k, t-1}^{I}\right)^{\frac{\xi - 1}{\xi}}\mathrm{d}k\right\}^{\frac{\xi}{\xi - 1}}
    \end{bmatrix} 
    \end{bmatrix}
\end{Bmatrix}
\end{equation}
\end{document}

答案1

我会蹒跚而行,而不是居中。

\documentclass[12pt,a4paper]{article}
\usepackage[margin=1.9cm]{geometry}
\usepackage{mathtools}
\usepackage{bbm}
\usepackage{amsmath, amsfonts, amsthm, amssymb}
\usepackage[scr=boondoxo,scrscaled=1.05]{mathalfa}

\newcommand{\diff}{\mathop{}\!\mathrm{d}}

\begin{document}

The second part of impatient household's problem includes maximizing their utility, 
given their choice of loans. This can be written as 
\begin{equation}
\begin{gathered}
\mathscr{L}_{t} = 
\mathbb{E}_{t} = \sum_{t = 0}^{\infty}(\beta^{I})^{t} \biggl\{
  \begin{aligned}[t]
    & \log(C_{m, t}^{I} - \gamma^{I}C_{m, t-1}^{I}) 
      - \iota_{t}N_{m, t}^{I} + \varsigma_{t}\log H_{m, t}^{I}
    \\
    & - \lambda_{m, t}^{I} \biggl[
      \begin{aligned}[t]
        & C_{m, t}^{I} + \int_{0}^{1}R_{t-1}^{L}l_{mk, t-1}^{I}\diff k - W_{t}^{I}N_{m, t}^{I}
        \\
        &+ Q_{t}^{H}(H_{m, t}^{I} - H_{m, t-1}^{I}) - x_{m, t}^{I} - \Phi_{t}^{I} - \Psi_{t}^{I}
      \biggr]
      \end{aligned}
    \\
    & - \mu_{m, t}^{I} \biggl[
      R_{k, t}^{L}\int_{0}^{1}l_{mk, t}^{I}\diff k
      - \mathbb{E}_{t}(Q_{t+1}^{H}H_{m, t}^{I}) \int_{0}^{1}\theta_{k, t}\diff k 
      \biggr]
    \\
    & - \epsilon_{m, t}^{I} \biggl[
      x_{m, t}^{I} - \biggl(
        \int_{0}^{1}(l_{mk, t}^{I} - \gamma^{L}s_{k, t-1}^{I})^{\frac{\xi - 1}{\xi}}\diff k
      \biggr)^{\frac{\xi}{\xi - 1}}
  \biggr]\biggr\}
\end{aligned}
\end{gathered}
\end{equation}

\end{document}

封闭部分gathered将方程编号置于垂直中心。

请注意,所有的\left\right都是无用的(除了增加不需要的间距)。

我还添加了一种更好的方式来输入差异。

在此处输入图片描述

epsfig软件包仅仅为了向后兼容而存在,并且不应该在过去 25 年编写的文档中使用。

相关内容