Skip to content

Instantly share code, notes, and snippets.

@kbroman
Last active August 29, 2015 13:59
Show Gist options
  • Save kbroman/10978308 to your computer and use it in GitHub Desktop.
Save kbroman/10978308 to your computer and use it in GitHub Desktop.
markdown package turns double-backslashes into backslashes
$$latex
\begin{bmatrix}
a & z \\
d & e \\
g & h
\end{bmatrix}
$$
all: backslashes.html backslashes2.html
backslashes.html: backslashes.Rmd
R -e 'library(knitr);knit2html("backslashes.Rmd")'
backslashes2.html: backslashes.Rmd
R -e 'library(knitr);knit("backslashes.Rmd", "backslashes2.md");library(markdown);markdownToHTML("backslashes2.md", "backslashes2.html", extensions="latex_math")'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment