### 4 releases

0.1.3 | Apr 4, 2019 |
---|---|

0.1.2 | Apr 4, 2019 |

0.1.1 | Apr 4, 2019 |

0.1.0 | Apr 4, 2019 |

#**15** in #katex

**BSD-2-Clause**

4KB

This crate is an example of using $

$ math with rustdoc.`\LaTeX`

This demo abuses the

attribute to inject
a KaTeX script into the generated documentation.`#``[``doc``(``html_favicon_url = ..`

`)``]`

This way, it works both on docs.rs and with

without extra settings.`cargo`` doc`

# Usage

Look at the source of

of this crate, and copy the doc attribute
containing the `lib.rs`

and `<``link``>`

tags.`<``script``>`

Then, write

for inline math, which renders as $`$``\frac `1` `2` `+` `3```$`

$.`\frac 1 2 + 3`

Or, write

````math
\int_{-\infty}^\infty f(x)\,dx
```
`

for display math, which renders as:

`\`int_`{`-`\`infty`}`^`\`infty f(x)`\`,dx