0
votes

I'm working in a R Markdown file that I output as a PDF and as an HTML. The equations are typed with Latex syntax.

In the past, I used \vspace{xymm} which is perfectly fine for the PDF version but is not supported by Mathjax.

What are my options regarding achieving the same spacing in PDF and HTML?

$$\begin{array}{ll}
\text{bla bla }\\
\vspace{2mm}
\text{bla bla} & \text{bla bla}\\
\text{bla bla} & \text{bla bla}\\
\end{array}$$

If I knit this to a PDF the 2mm space will be included after the first "\text{bla bla} & \text{bla bla}\" line. If I knit it to a HTML the "\vspace{xymm}" will be written as a text and no space will be displayed.

1

1 Answers

1
votes

Try

$$\begin{array}{ll}
\text{bla bla }\\[2mm]
\text{bla bla} & \text{bla bla}\\
\text{bla bla} & \text{bla bla}\\
\end{array}$$

which should do the same thing.