# Converting from math-heavy Markdown to HTML and LaTeX (re: HTML Stan manual)

**URL:** https://discourse.mc-stan.org/t/converting-from-math-heavy-markdown-to-html-and-latex-re-html-stan-manual/3144
**Category:** Developers
**Created:** [January 30, 2018, 10:24pm UTC](https://discourse.mc-stan.org/t/converting-from-math-heavy-markdown-to-html-and-latex-re-html-stan-manual/3144 "2018-01-30T22:24:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ariddell](https://avatars.discourse-cdn.com/v4/letter/a/57b2e6/32.png) [@ariddell](https://discourse.mc-stan.org/u/ariddell)
#### Post date: [January 30, 2018, 10:24pm UTC](https://discourse.mc-stan.org/t/converting-from-math-heavy-markdown-to-html-and-latex-re-html-stan-manual/3144/1 "2018-01-30T22:24:07Z")

</div>

I just came across this very nice webpage which has a lot of very nicely typeset math (for a webpage):

[“The Matrix Calculus You Need For Deep Learning”](http://parrt.cs.usfca.edu/doc/matrix-calculus/index.html)

Turns out they have their own system for moving from math-heavy markdown to HTML or LaTeX: [bookish](https://github.com/parrt/bookish) (“Bookish – math-infested markdown to HTML and latex”)

I know everyone wants an HTML version of the manual. Maybe this tool could help?

---

<div class="post-metadata">

### Author: ![yizhang](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/yizhang/32/15673_2.png) [@yizhang](https://discourse.mc-stan.org/u/yizhang)
#### Post date: [January 30, 2018, 11:48pm UTC](https://discourse.mc-stan.org/t/converting-from-math-heavy-markdown-to-html-and-latex-re-html-stan-manual/3144/2 "2018-01-30T23:48:59Z")

</div>

Somebody please add this to org mode export engine :)

---

<div class="post-metadata">

### Author: ![Bob\_Carpenter](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/bob_carpenter/32/9230_2.png) [@Bob\_Carpenter](https://discourse.mc-stan.org/u/Bob_Carpenter)
#### Post date: [February 7, 2018, 8:28pm UTC](https://discourse.mc-stan.org/t/converting-from-math-heavy-markdown-to-html-and-latex-re-html-stan-manual/3144/3 "2018-02-07T20:28:35Z")

</div>

I’m pretty happy with bookdown—the formats are way better than all the knitr formats other than the Tufte format. I really like the latter, which I used for my latest case study:

[http://mc-stan.org/users/documentation/case-studies/lotka-volterra-predator-prey.html](http://mc-stan.org/users/documentation/case-studies/lotka-volterra-predator-prey.html)

If I were starting from scratch, I’d almost certainly use that. As is, I think it’ll be a bit easier and more natural to move to bookdown.

The basic bookdown tex output is pretty basic, and apparently so is this new tools’:

[http://parrt.cs.usfca.edu/doc/matrix-calculus.pdf](http://parrt.cs.usfca.edu/doc/matrix-calculus.pdf)

The Tufte format LaTeX output is beautiful.
