-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathindex.d.ts
58 lines (50 loc) · 1.26 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import { Readable, Transform } from 'stream'
/**
* node-latex options
*/
export interface LatexOptions {
/**
* The absolute path (or an array of absolute paths) to the directory which
* contains the assets necessary for the doc.
*/
inputs?: string | string[]
/**
* The absolute path (or an array of absolute 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).
*/
fonts?: string | string[]
/**
* The command to run for your document (pdflatex, xetex, etc). pdflatex is the
* default.
*/
cmd?: string
/**
* Arguments passed to cmd. Defaults to ['-halt-on-error'].
*/
args?: string[]
/**
* The number of times to run options.cmd. Some documents require multiple
* passes. Only works when doc is a String. Defaults to 1.
*/
passes?: number
/**
* The path to the file where you want to save the contents of the error log
* to.
*/
errorLogs?: string
}
/**
* Compiles latex to pdf document
*
* @param doc
* The (La)TeX document you want to use.
*
* @param options
* The compiler options
*/
declare function latex(
doc: Readable | string,
options?: LatexOptions
): Transform
export default latex