How I got LaTeX working with Hugo and blogdown

Solution 1 of 3 NOTE: This solution for getting LaTeX to work via MathJax requires the blog post to be in .Rmd format. It doesn’t work in .Rmarkdown. And recall, the latter is needed for my syntax highlighting to work. So currently I don’t know how to create a post that has both syntax highlighting for code (requires .Rmarkdown) and LaTeX math expressions (requires .Rmd). (Hey, wait! The syntax highlighting for the GJL_mathjax.
Read more...

Boxes around aligned equations in LaTeX

Example of how to get boxes around equations in the aligned environment in LaTeX: \begin{equation} \boxed{ \begin{aligned} x^2 + 1 &= 2 \\ x^4 + 1 &= 3 \end{aligned} } \end{equation} I’d like to show the result, but at time of writing I realize I don’t have my workflow set up to properly render LaTeX equations in the final Hugo post. Here’s what I get instead: (if this looks right, then I must have fixed it.
Read more...