vuepress-plugin-latex
This plugin uses KaTeX to render LaTeX for VuePress pages.
Install
yarn add vuepress-plugin-latex
Note: VuePress supports plugins from v1.0, which is now an alpha version, so you must install vuepress@next
to use this plugin.
Usage
Configure your VuePress site at .vuepress/config.js
:
moduleexports = plugins: 'latex' // or 'vuepress-plugin-latex'
See the documentation of VuePress for more information.
Customized macros
This plugin provides some semantic macros for authors to write LaTeX better:
Macro | Target |
---|---|
\numset |
\mathbb |
\all |
\forall\, |
\exi |
\exists\, |
\me |
\mathrm{e} |
\mi |
\mathrm{i} |
\st |
\,\text{s.t.}\, |
\diff |
\mathop{}\!\mathrm{d} |
\pdiff |
\mathop{}\!\partial |
\trans |
\mathrm{T} |
\ctrans |
\mathrm{*} |