latex2vue

2.2.2 • Public • Published

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-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" />

Package Sidebar

Install

npm i latex2vue

Weekly Downloads

3

Version

2.2.2

License

SEE LICENSE IN LICENSE

Unpacked Size

17.3 kB

Total Files

22

Last publish

Collaborators

  • pyramation