Last active
August 29, 2015 13:59
-
-
Save kbroman/10978308 to your computer and use it in GitHub Desktop.
markdown package turns double-backslashes into backslashes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$$latex | |
\begin{bmatrix} | |
a & z \\ | |
d & e \\ | |
g & h | |
\end{bmatrix} | |
$$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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