R Markdown Math Equation Alignment

你说的曾经没有我的故事 提交于 2019-11-29 03:23:57

I'm not quite sure what you're going for here, but line breaks, \\ go at the end of tthe line, not the beginning, and the aligmnent operator is &. So this:

$$
\begin{aligned}
 AR(p): Y_i &= c + \epsilon_i + \phi_i Y_{i-1} \dots \\
 Y_{i} &= c + \phi_i Y_{i-1} \dots
\end{aligned}
$$

produces this:

left align the formula

$\begin{aligned}
AR(p): Y_i &= c + \epsilon_i + \phi_i Y_{i-1} \dots \\
Y_{i} &= c + \phi_i Y_{i-1} \dots
\end{aligned}$

&...& show in the line ; $$...$$ display out;

Wow. That works great! Thank you for the help! This worked perfectly in R Studio Markdown. My code was in an ordered list and is as follows:

$\begin{aligned}
    \lim_{x \to \infty}\frac{2x-5}{4x^4}=0\\
    \end{aligned}$    

$\begin{aligned}
    \frac{d}{dx}\left( \int_{0}^{x}f(u)\,du\right)=f(x)\\
    \end{aligned}$
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!