All Projects → saadq → node-latex

saadq / node-latex

Licence: MIT License
🧾 A utility for running LaTeX subprocesses in Node.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to node-latex

lazylatex
Because LaTeX shouldn't be boring! 🐠 LaTeX package inspired by sphinx-rtd-theme. Build with tcolorbox, minted, tikz, etc,.
Stars: ✭ 16 (-48.39%)
Mutual labels:  latex, xelatex, pdflatex
xelatex-guide-book
xelatex book template
Stars: ✭ 59 (+90.32%)
Mutual labels:  latex, xelatex
latex-action
GitHub Action to compile LaTeX documents
Stars: ✭ 123 (+296.77%)
Mutual labels:  latex, pdflatex
Sjtuthesis
上海交通大学 XeLaTeX 学位论文及课程论文模板 | Shanghai Jiao Tong University XeLaTeX Thesis Template
Stars: ✭ 2,376 (+7564.52%)
Mutual labels:  latex, xelatex
xdupgthesis
西安电子科技大学研究生学位论文XeLaTeX模板
Stars: ✭ 271 (+774.19%)
Mutual labels:  latex, xelatex
travis-ci-latex-pdf
Overview of different methods to build LaTeX with GitHub Actions or Travis-CI (idea by @jackolney but completely rewritten by @PHPirates and contributors).
Stars: ✭ 113 (+264.52%)
Mutual labels:  xelatex, pdflatex
Resumake.io
📝 A website for automatically generating elegant LaTeX resumes.
Stars: ✭ 2,277 (+7245.16%)
Mutual labels:  latex, pdflatex
TeXTemplates
LaTeX/XeLaTeX templates for academic publications: articles, dissertations, posters, and bachelor’s/master’s theses
Stars: ✭ 94 (+203.23%)
Mutual labels:  latex, xelatex
Learn-to-program-with-C AR
ترجمة لدرس تعلّم البرمجة بلغة السي الخاص بموقع OpenClassrooms
Stars: ✭ 51 (+64.52%)
Mutual labels:  latex, xelatex
elte-ik-pti-bsc-zarovizsga
ELTE IK - Programtervező Informatikus BSc Záróvizsga tételek kidolgozása
Stars: ✭ 26 (-16.13%)
Mutual labels:  latex
hugo-wrapper
The universal way to include Hugo binary to your project.
Stars: ✭ 27 (-12.9%)
Mutual labels:  wrapper
pdfcount
An R Shiny App to Count Words in a PDF Document
Stars: ✭ 26 (-16.13%)
Mutual labels:  latex
oxford dictionary
📙 A Ruby wrapper for the Oxford Dictionary API
Stars: ✭ 23 (-25.81%)
Mutual labels:  wrapper
tapi-yandex-direct
Python библиотека API Яндекс Директ
Stars: ✭ 35 (+12.9%)
Mutual labels:  wrapper
ThinkRubyBuild
Forked from https://github.com/AllenDowney/ThinkPython2
Stars: ✭ 27 (-12.9%)
Mutual labels:  latex
hanami-bootstrap
Bootstrap wrapper for hanami framework.
Stars: ✭ 13 (-58.06%)
Mutual labels:  wrapper
rgdax
Wrapper for Coinbase pro (erstwhile GDAX) Cryptocurrency exchange
Stars: ✭ 34 (+9.68%)
Mutual labels:  wrapper
clyngor
Handy python wrapper around Potassco's Clingo ASP solver.
Stars: ✭ 20 (-35.48%)
Mutual labels:  wrapper
ffmpeg-progressbar-cli
A colored progress bar for FFmpeg.
Stars: ✭ 140 (+351.61%)
Mutual labels:  wrapper
latex2unicode
Convert LaTeX markup to Unicode (in Scala and Java)
Stars: ✭ 28 (-9.68%)
Mutual labels:  latex

node-latex

A small wrapper for generating PDFs with LaTeX in Node.

Requirements

LaTeX must be installed on your machine. You can download it here.

Install

npm install node-latex

Usage

const latex = require('node-latex')
const fs = require('fs')

const input = fs.createReadStream('input.tex')
const output = fs.createWriteStream('output.pdf')
const pdf = latex(input)

pdf.pipe(output)
pdf.on('error', err => console.error(err))
pdf.on('finish', () => console.log('PDF generated!'))

View more examples here.

API

latex(doc[, options])

doc [ReadableStream|String] Required - The (La)TeX document you want to use.

options.inputs [String|Array] - The path (or an array of paths) to the directory which contains the assets necessary for the doc.

options.precompiled [String|Array] - The path (or an array of paths) to the directory which contains the precompiled files necessary for the doc.

options.fonts [String|Array] - The path (or an array of paths) to the directory which contains the fonts necessary for the doc (you will most likely want to use this option if you're working with fontspec).

options.cmd [String] - The command to run for your document (pdflatex, xetex, etc). pdflatex is the default.

options.args [Array] - Arguments passed to cmd. Defaults to ['-halt-on-error'].

options.passes [Number] - The number of times to run options.cmd. Some documents require multiple passes. Only works when doc is a String. Defaults to 1.

options.errorLogs [String] - The path to the file where you want to save the contents of the error log to.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].