Note This repository is automatically generated from the main parser monorepo. Please submit any issues or pull requests there.
Convert a texast
syntax tree to LaTeX.
This package is ESM only. In Node.js (version 12.20+, 14.14+, 16.0+, 18.0+), install as
pnpm add texast-util-to-latex
# or with yarn
# yarn add texast-util-to-latex
# or with npm
# npm install texast-util-to-latex
default(node: Node, options: Options = {}): string;
Name | Type |
---|---|
node |
Node |
options |
Options |
string
Defined in: lib/texast-util-to-latex.ts:35
toLatex(node: Node | Node[], options: Options = {}): string;
Name | Type |
---|---|
node |
Node |
options |
Options |
string
Defined in: lib/texast-util-to-latex.ts:28
boolean
Defined in: lib/types.ts:30
Defined in: lib/types.ts:23
Defined in: lib/types.ts:27
Defined in: lib/types.ts:28
number
[]
Defined in: lib/types.ts:22
Join
[]
Defined in: lib/types.ts:26
boolean
Defined in: lib/types.ts:29
Defined in: lib/types.ts:24
string
[]
Defined in: lib/types.ts:21
Unsafe
[]
Defined in: lib/types.ts:25
"$$"
|"[]"
Defined in: lib/types.ts:71
"textit"
|"emph"
Defined in: lib/types.ts:69
Options
[]
Defined in: lib/types.ts:73
Defined in: lib/types.ts:72
"$"
|"()"
Defined in: lib/types.ts:70
Join
[]
Defined in: lib/types.ts:74
"par"
|"newline"
Defined in: lib/types.ts:68
Unsafe
[]
Defined in: lib/types.ts:75
boolean
Defined in: lib/types.ts:67
string
Defined in: lib/types.ts:13
string
Defined in: lib/types.ts:12
number
Defined in: lib/types.ts:8
Point
Defined in: lib/types.ts:7
RegExp
Defined in: lib/types.ts:64
string
Defined in: lib/types.ts:61
boolean
Defined in: lib/types.ts:63
string
Defined in: lib/types.ts:62
string
Defined in: lib/types.ts:58
string
|string
[]
Defined in: lib/types.ts:59
string
|string
[]
Defined in: lib/types.ts:60
object
{
align: boolean;
math: boolean;
options: Options;
}
Member | Type |
---|---|
align |
boolean |
math |
boolean |
options |
Options |
Defined in: lib/types.ts:33
Function
(node: any, options?: Options): string;
Name | Type |
---|---|
node |
any |
options? |
Options |
string
Defined in: lib/types.ts:39
Function
(type: string): Exit;
Name | Type |
---|---|
type |
string |
Defined in: lib/types.ts:18
Function
(): void;
void
Defined in: lib/types.ts:19
Function
(
node: any,
parent: Parent | null | undefined,
context: Context,
safeOptions: SafeOptions): string;
Name | Type |
---|---|
node |
any |
parent |
Parent |
context |
Context |
safeOptions |
SafeOptions |
string
Defined in: lib/types.ts:41
Record
<string
,Handle
>
Defined in: lib/types.ts:48
Function
(
left: Node,
right: Node,
parent: Parent,
context: Context): boolean | null | void | number;
Name | Type |
---|---|
left |
Node |
right |
Node |
parent |
Parent |
context |
Context |
boolean
| null
| void
| number
Defined in: lib/types.ts:50
Root
|Content
Defined in: lib/types.ts:3
Extract
<Node
,UnistParent
>
Defined in: lib/types.ts:4
Defined in: lib/types.ts:16
GPL-3.0-or-later © Thomas F. K. Jorna