Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

multi-line equation in RMarkdown

I am trying to create a multi-line equation in RMarkdown. I have tried the following code, extracted from http://www.rstudio.com/ide/docs/authoring/using_markdown_equations,

$$
\begin{aligned}
  \dot{x} & = \sigma(y-x) \\
  \dot{y} & = \rho x- y - xz 
\end{aligned}
$$

however the knitred HTML document gives a single-line equation:

screen shot of single line equation from html

like image 849
user1420372 Avatar asked Jan 15 '14 00:01

user1420372


1 Answers

This code produced 2 HTML lines, as desired, when cut and paste into RStudio in Windows 7 with knitr. If the second slash at the end of the 3rd line was removed, it produced the result shown in example.

like image 83
Charlie Avatar answered Oct 24 '22 02:10

Charlie