I have asked the question below on stackoverflow here, to which @yihui answered that this was a bug of xaringan. He suggested a simple workaround which consists in moving \end{array} to the end of the previous line. This works like a charm. He also suggested that I'd file a bug report. So here I am.
Original question: I am having trouble rendering some Latex code with R Markdown in HTML using the excellent xaringan R package. Specifically I would like to label the rows and columns of a matrix as described here. The thing is that, as far as I understand, some Latex packages cannot be used in R Markdown. Therefore, I am using a <div class="math">My matrix in Latex here</div>. I'm almost there but I keep getting random opening single quotes that I cannot get rid of:
Must be something silly. Any help would be much appreciated.
[x] I have provided the necessary information about my issue.
If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('xaringan'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('yihui/xaringan').
If I have posted the same issue elsewhere, I have also mentioned it in this issue.
[x] I have learned the Github Markdown syntax, and formatted my issue correctly.
I understand that my issue may be closed if I don't fulfill my promises.
Hi there,
I have asked the question below on stackoverflow here, to which @yihui answered that this was a bug of xaringan. He suggested a simple workaround which consists in moving \end{array} to the end of the previous line. This works like a charm. He also suggested that I'd file a bug report. So here I am.
Original question: I am having trouble rendering some Latex code with R Markdown in HTML using the excellent xaringan R package. Specifically I would like to label the rows and columns of a matrix as described here. The thing is that, as far as I understand, some Latex packages cannot be used in R Markdown. Therefore, I am using a
<div class="math">My matrix in Latex here</div>
. I'm almost there but I keep getting random opening single quotes that I cannot get rid of:Must be something silly. Any help would be much appreciated.
The Rmd code is as follows:
By filing an issue to this repo, I promise that
xfun::session_info('xaringan')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('yihui/xaringan')
.I understand that my issue may be closed if I don't fulfill my promises.