我正在为课堂论文写附录LaTeX
Article
。那里有十几个方程和推导公式,我想把它们全部排列在一个等号 (=) 周围。看看我现在的格式:
目前它们没有沿着同一个等号对齐。我想对齐它们,这应该不仅对几个方程有效,而且对几页纸上的所有几十个表达式也有效。我知道如果只是几个方程,中间没有太多文字,我可以做到这一点,但是如果你想在几页纸上写一堆方程,并在它们之间添加文字解释,并且你仍然希望所有这些方程围绕一个等号对齐,该怎么办?这是我的 MWE:
\documentclass{article}
\usepackage{amsmath,amssymb}
\begin{document}
Given $K$, gross return on capital, ad wage can be computed as
\begin{align}
R^{K} & = \alpha K^{\alpha - 1} + 1 - \delta\\
W & = (1 - \alpha) Z K^{\alpha}
\end{align}
Using first order conditions for $D_{t+1}^{H}$ and $B_{t+1}^{R}$, steady state interest rates can be determined as
\begin{align}
R^{D} & = \frac{1}{\beta}\\
R^{B} & = \gamma \frac{R^{K}}{1 + f^{R}} + (1 - \gamma) R^{D}
\end{align}
Given $R^{K}$, $K^{H}$ is determined by the Euler equation of the household with respect to $K^{H}$
\begin{align}
R^{K} & = \frac{1}{\beta} \left( 1 + \eta^{H}\frac{K^{H}}{K} \right)\\
\frac{K^{H}}{K} & = \frac{1}{\eta^{H}} (\beta R^{K} - 1)
\end{align}
\end{document}
答案1
您可以简单地使用\intertext
允许在align
环境中插入文本的命令。
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Given $K$, gross return on capital, ad wage can be computed as
\begin{align}
R^{K} & = \alpha K^{\alpha - 1} + 1 - \delta\\
W & = (1 - \alpha) Z K^{\alpha}
%
\intertext{Using first order conditions for $D_{t+1}^{H}$ and $B_{t+1}^{R}$, steady state interest rates can be determined as}
%
R^{D} & = \frac{1}{\beta}\\
R^{B} & = \gamma \frac{R^{K}}{1 + f^{R}} + (1 - \gamma) R^{D}
%
\intertext{Given $R^{K}$, $K^{H}$ is determined by the Euler equation of the household with respect to $K^{H}$}
%
R^{K} & = \frac{1}{\beta} \left( 1 + \eta^{H}\frac{K^{H}}{K} \right)\\
\frac{K^{H}}{K} & = \frac{1}{\eta^{H}} (\beta R^{K} - 1)
\end{align}
\end{document}