Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/toolbuddy/node-latex-pdf

Module of docode, markdown to pdf maker.
https://github.com/toolbuddy/node-latex-pdf

convertor latex node pdf

Last synced: about 1 month ago
JSON representation

Module of docode, markdown to pdf maker.

Awesome Lists containing this project

README

        

# 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!
```js
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
- Kevin Cyu, [email protected]