2.2.2 • Published 4 years ago

latex2vue v2.2.2

Weekly downloads
46
License
SEE LICENSE IN LI...
Repository
github
Last release
4 years ago

LaTeX2Vue

installation

using the nuxt template

You can get started very quickly using https://github.com/pyramation/nuxt-latex2vue-template(our nuxt starter template):

vue init pyramation/nuxt-latex2vue-template
cd my-project
# install dependencies
npm install # Or yarn install

from scratch

  1. Install the library!
npm install latex2vue
  1. Require latex2vue. If you are using nuxt, you should add a plugin in ~plugins/latex2js.js:
import Vue from 'vue';
import VueLaTeX2JS from 'latex2vue';
Vue.use(VueLaTeX2JS);
  1. Add CSS and plugin in your nuxt.config.js:
css: [
  'latex2js/latex2js.css',
],
...
plugins: [
  { src: '~plugins/latex2js.js', ssr: false },
],
  1. Now you have a latex component! Just set the content property and have a go!
<latex :content="someVariable" />