-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
235 lines (235 loc) · 7.23 KB
/
package.json
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
{
"name": "typst-math",
"displayName": "Typst Math",
"version": "0.1.7",
"engines": {
"vscode": "^1.85.0"
},
"description": "Provides usefull features for math writing in typst",
"icon": "assets/icon.png",
"publisher": "surv",
"repository": {
"type": "git",
"url": "https://github.com/supersurviveur/typst-math.git"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:typst"
],
"main": "./dist/extension.js",
"contributes": {
"configuration": {
"title": "Typst math",
"properties": {
"typst-math.colors": {
"type": "object",
"default": {
"keyword": "",
"number": "",
"comparison": "",
"letter": "",
"group": "",
"operator": ""
},
"markdownDescription": "The colors used to render math symbols in typst.\nDefault colors are based on the Monokai theme. They can be in `#RRGGBB` or `rgb(r, g, b)` format.",
"properties": {
"keyword": {
"type": "string",
"description": "The color used for keywords in typst."
},
"number": {
"type": "string",
"description": "The color used for numbers in typst."
},
"comparison": {
"type": "string",
"description": "The color used for comparison operators in typst."
},
"letter": {
"type": "string",
"description": "The color used for letters in typst."
},
"group": {
"type": "string",
"description": "The color used for group operators in typst."
},
"operator": {
"type": "string",
"description": "The color used for operators in typst."
}
},
"additionalProperties": false
},
"typst-math.renderSymbolsOutsideMath": {
"type": "boolean",
"default": true,
"markdownDescription": "If true, symbols will be rendered also outside math blocks."
},
"typst-math.renderSpaces": {
"type": "boolean",
"default": false,
"markdownDescription": "If true, space symbols like space, space.quad, wjoin... will be rendered."
},
"typst-math.hideUnnecessaryDelimiters": {
"type": "boolean",
"default": false,
"markdownDescription": "If true, unnecessary delimiters like parentheses in `$x^(2 x y)$` will be hidden."
},
"typst-math.revealOffset": {
"type": "number",
"default": 0,
"markdownDescription": "Reveal n lines before and after your current selection."
},
"typst-math.customSymbols": {
"type": "array",
"markdownDescription": "List of custom symbols that will be rendered.",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the symbol"
},
"symbol": {
"type": "string",
"description": "The symbol to render"
},
"category": {
"type": "string",
"enum": [
"keyword",
"number",
"comparison",
"operator",
"letter",
"bigLetter",
"set",
"space",
"default"
],
"description": "The category of the symbol (keyword, number, comparison, operator, letter, bigLetter, set, space, default)"
}
}
}
},
"typst-math.renderingMode": {
"markdownDescription": "This mode let you select if you want to render complex symbols and combinations, or just simple ones like powers (Experimental)",
"type": "string",
"default": "complex",
"enum": [
"nothing",
"basic",
"medium",
"complex"
],
"enumDescriptions": [
"Do not render any math symbol",
"Render only simple symbols like powers, subscripts...",
"Render more symbols, like integrals, sets...",
"Render a maximum of symbols, including some functions like arrow()..."
]
},
"typst-math.blacklist": {
"type": "array",
"default": [],
"markdownDescription": "A list of symbols that will not be rendered. _(ex: plus, minus, tilde.eq.not)_",
"items": {
"type": "string"
}
}
}
},
"commands": [
{
"command": "typst-math.math",
"title": "Insert math equation",
"category": "Typst math"
},
{
"command": "typst-math.toggle-symbols",
"title": "Toggle symbols rendering",
"category": "Typst math"
},
{
"command": "typst-math.matrix",
"title": "Generate a matrix",
"category": "Typst math"
},
{
"command": "typst-math.square-matrix",
"title": "Generate a square matrix",
"category": "Typst math"
},
{
"command": "typst-math.matrix2",
"title": "Generate a square matrix of size 2",
"category": "Typst math"
},
{
"command": "typst-math.matrix3",
"title": "Generate a square matrix of size 3",
"category": "Typst math"
},
{
"command": "typst-math.install-fonts",
"title": "Install fonts",
"category": "Typst math"
}
],
"snippets": [
{
"language": "typst",
"path": "./snippets/snippets.code-snippets"
}
],
"keybindings": [
{
"command": "typst-math.matrix",
"key": "ctrl+alt+m",
"when": "editorTextFocus && editorLangId == typst"
},
{
"command": "typst-math.math",
"key": "ctrl+m",
"when": "editorTextFocus && editorLangId == typst"
},
{
"command": "typst-math.toggle-symbols",
"key": "ctrl+alt+s",
"when": "editorTextFocus && editorLangId == typst"
}
]
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "vscode-test"
},
"devDependencies": {
"@types/mocha": "^10.0.6",
"@types/node": "18.x",
"@types/vscode": "^1.85.0",
"@typescript-eslint/eslint-plugin": "^6.15.0",
"@typescript-eslint/parser": "^6.15.0",
"@vscode/test-cli": "^0.0.4",
"@vscode/test-electron": "^2.3.8",
"copy-webpack-plugin": "^12.0.0",
"eslint": "^8.56.0",
"ts-loader": "^9.5.1",
"typescript": "^5.3.3",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"installfont": "^0.0.12",
"typst-math-rust": "file:typst-math-rust/pkg"
}
}