Open shamindras opened 5 years ago
Sorry for the delay on this one. I understand this is now a duplicate of #433
I have put an answer in https://github.com/rstudio/distill/issues/433#issuecomment-1004812002 based on new syntax offered by bookdown for theorem env. It should work for distill but it is surely not the best. It should be more built-in the distill article format.
I also tried adding the following (on MacOS) to the distill yaml header:
You can use LaTeX command for a HTML document. \usepackage
won't have any effect when you are rendering to HTML.
You can't use directly LaTeX code inside HTML unless there is a specific support (like with equation environment because we support MathJax JS library which parse and transform this). \begin{theorem}
is not something that will work for a generic HTML.
I've just started using the
distill
package for personal blogging. Great experience so far.I wanted to understand if
rmarkdown
LaTex support is offered similar to bookdown here.I tried to write a theorem in a
distill
article by using:This gave the warning (error):
And no theorem was displayed. Could anyone please explain if/how to get this working for math-based distill blogposts?
UPDATE: I also tried adding the following (on MacOS) to the
distill yaml
header:And also then did the following:
This did not display any equation though. If you omit
begin{theorem}
tags thenalign
does work as per rmarkdown.