0.1.3 • Published 5 years ago

vuepress-plugin-latex v0.1.3

Weekly downloads
29
License
MIT
Repository
github
Last release
5 years ago

vuepress-plugin-latex

npm version KaTeX version

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:

module.exports = {
  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:

MacroTarget
\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{*}