How do I get (LaTeX math) typeset matrix with borders in HTML output from *.Rmd?
问题 The following rmarkdown works fine when compiling to PDF (via LaTeX), but not when compiling to HTML (via Markdown). PDF (via LaTeX) --- title: "test" author: "Maximilian Held" output: pdf_document documentclass: memoir --- (@matrix-test2) $$ \bordermatrix{ ~ & Petra & Ingrid \cr Petra & 1 & 0 \cr Ingrid & 0 & 1 \cr } $$ HTML (via Markdown) --- title: "test" author: "Maximilian Held" output: html_document documentclass: memoir --- (@matrix-test2) $$ \bordermatrix{ ~ & Petra & Ingrid \cr Petra