Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kube/gulp-pdflatex
Gulp plugin for LaTeX PDF
https://github.com/kube/gulp-pdflatex
gulp gulp-plugins latex latex-pdf pdf
Last synced: 7 days ago
JSON representation
Gulp plugin for LaTeX PDF
- Host: GitHub
- URL: https://github.com/kube/gulp-pdflatex
- Owner: kube
- Created: 2016-11-30T13:43:24.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-04T19:02:49.000Z (about 8 years ago)
- Last Synced: 2024-11-07T06:30:26.816Z (about 2 months ago)
- Topics: gulp, gulp-plugins, latex, latex-pdf, pdf
- Language: TypeScript
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
gulp-pdflatex
=============
> Gulp plugin for LaTeX PDFInstall
-------```sh
npm install gulp-pdflatex
```Usage
-----### Basic usage
```js
const pdflatex = require('gulp-pdflatex')gulp
.src('document.tex')
.pipe(pdflatex())
.pipe(gulp.dest('./build/'))
```### Options
#### `-shell-escape`
You can pass to `pdflatex` the `-shell-escape` flag :
```js
const pdflatex = require('gulp-pdflatex')gulp
.src('document.tex')
.pipe(pdflatex({ shellEscape: true }))
.pipe(gulp.dest('./build/'))
```#### TeX inputs paths
To add paths where LaTeX will search for resources :
```js
const pdflatex = require('gulp-pdflatex')gulp
.src('document.tex')
.pipe(pdflatex({ texInputs: ['../resources/latex', '../exercises/'] }))
.pipe(gulp.dest('./build/'))
```This will add paths to `TEXINPUTS` env var in pdflatex subprocess.