Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 565 Bytes

README.md

File metadata and controls

28 lines (23 loc) · 565 Bytes

node-latex-pdf

Convert your latex files to pdf format.

Prerequisite

  • Install MiKTeX 2.9 on your environment
  • nodejs v6.9.4

Usage

  • Install:
npm install node-latex-pdf
  • Import in your code
    • Notice: The path in latex document must using absolutive path!
const selflatex = require('node-latex-pdf');

selflatex(__dirname + '/src/document.tex', __dirname + '/dest/', (err,msg) => {
    if(err)
      console.log(`Error, ${msg}`);
    else
      console.log(`Success! ${msg}`);
});

Author