我想列出一些我已經完成的公式,如下所示:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{enumerate}
\item \textbf{Hommes and in 't Veld AR(1) model:}
\begin{align}
x_t = \frac{1}{R^*}(n_{1,t} \phi_1 + n_{2,t}\phi_2)x_{t-1} + \epsilon_t.
\end{align}
\item \textbf{Weak trend following AR(2) model:}
\begin{align}
x_t = \frac{1}{R^*}((n_{1,t} \phi_1 + 1.4n_{2,t})x_{t-1} - 0.4n_{2,t}x_{t-2}) + \epsilon_t.
\end{align}
\item \textbf{Strong trend following AR(2) model:}
\begin{align}
x_t = \frac{1}{R^*}((n_{1,t} \phi_1 + 2.3n_{2,t})x_{t-1} - 1.3n_{2,t}x_{t-2}) + \epsilon_t.
\end{align}
\item \textbf{General trend following AR(2) model:}
\begin{align}
x_t = \frac{1}{R^*}((n_{1,t} \phi_1 + (1+\phi_3)n_{2,t})x_{t-1} - \phi_3n_{2,t}x_{t-2}) + \epsilon_t.
\end{align}
\end{enumerate}
\end{document}
問題是我想讓這些x_t
從同一點開始。有誰知道如何實現這一目標?
答案1
你可以利用amsmath
的\intertext
.預設情況下,這將不允許align
環境中的分頁符,但如果需要,可以使其成為可能。
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{enumerate}
\item \textbf{Hommes and in 't Veld AR(1) model:}
\begin{align}
x_t &= \frac{1}{R^*}(n_{1,t} \phi_1 + n_{2,t}\phi_2)x_{t-1} + \epsilon_t.\\
\intertext{\item \textbf{Weak trend following AR(2) model:}}
x_t &= \frac{1}{R^*}((n_{1,t} \phi_1 + 1.4n_{2,t})x_{t-1} - 0.4n_{2,t}x_{t-2}) + \epsilon_t.\\
\intertext{\item \textbf{Strong trend following AR(2) model:}}
x_t &= \frac{1}{R^*}((n_{1,t} \phi_1 + 2.3n_{2,t})x_{t-1} - 1.3n_{2,t}x_{t-2}) + \epsilon_t.\\
\intertext{\item \textbf{General trend following AR(2) model:}}
x_t &= \frac{1}{R^*}((n_{1,t} \phi_1 + (1+\phi_3)n_{2,t})x_{t-1} - \phi_3n_{2,t}x_{t-2}) + \epsilon_t.
\end{align}
\end{enumerate}
\end{document}
答案2
在此特定範例中,您還可以使用aligned
我定義的\Indent
巨集來控制縮排:
筆記:
- 正如胡伊評論的那樣,用這種方法你不會得到方程式編號。
代碼:
\documentclass{article}
\usepackage{amsmath}
\newcommand*{\Indent}{\par\hspace*{1.0cm}}
\begin{document}
\begin{enumerate}
\item \textbf{Hommes and in 't Veld AR(1) model:}
\Indent$\begin{aligned}
x_t = \frac{1}{R^*}(n_{1,t} \phi_1 + n_{2,t}\phi_2)x_{t-1} + \epsilon_t.
\end{aligned}$
\item \textbf{Weak trend following AR(2) model:}
\Indent$\begin{aligned}
x_t = \frac{1}{R^*}((n_{1,t} \phi_1 + 1.4n_{2,t})x_{t-1} - 0.4n_{2,t}x_{t-2}) + \epsilon_t.
\end{aligned}$
\item \textbf{Strong trend following AR(2) model:}
\Indent$\begin{aligned}
x_t = \frac{1}{R^*}((n_{1,t} \phi_1 + 2.3n_{2,t})x_{t-1} - 1.3n_{2,t}x_{t-2}) + \epsilon_t.
\end{aligned}$
\item \textbf{General trend following AR(2) model:}
\Indent$\begin{aligned}
x_t = \frac{1}{R^*}((n_{1,t} \phi_1 + (1+\phi_3)n_{2,t})x_{t-1} - \phi_3n_{2,t}x_{t-2}) + \epsilon_t.
\end{aligned}$
\end{enumerate}
\end{document}