LaTeX2Vue
installation
using the nuxt template
You can get started very quickly using https://github.com/pyramation/nuxt-latex2vue-template:
vue init pyramation/nuxt-latex2vue-templatecd my-project# install dependencies npm install # Or yarn install
from scratch
- Install the library!
npm install latex2vue
- Require
latex2vue
. If you are using nuxt, you should add a plugin in~plugins/latex2js.js
:
;;Vue;
- Add CSS and plugin in your
nuxt.config.js
:
css: 'latex2js/latex2js.css'...plugins: src: '~plugins/latex2js.js' ssr: false
- Now you have a
latex
component! Just set thecontent
property and have a go!