temml 0.10.14 → 0.10.16
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/dist/Temml-Asana.css +18 -146
- package/dist/Temml-Latin-Modern.css +20 -148
- package/dist/Temml-Libertinus.css +18 -147
- package/dist/Temml-Local.css +19 -147
- package/dist/Temml-STIX2.css +18 -146
- package/dist/Temml.woff2 +0 -0
- package/dist/temml.cjs +221 -55
- package/dist/temml.d.ts +60 -0
- package/dist/temml.js +221 -55
- package/dist/temml.min.js +1 -1
- package/dist/temml.mjs +221 -55
- package/dist/temmlPostProcess.js +1 -1
- package/package.json +4 -2
- package/src/Parser.js +0 -1
- package/src/buildMathML.js +1 -3
- package/src/domTree.js +2 -2
- package/src/environments/array.js +99 -23
- package/src/functions/accent.js +17 -22
- package/src/functions/accentunder.js +1 -1
- package/src/functions/enclose.js +24 -3
- package/src/functions/supsub.js +8 -1
- package/src/functions/symbolsOrd.js +3 -1
- package/src/macros.js +3 -0
- package/src/postProcess.js +1 -1
- package/src/stretchy.js +48 -1
- package/src/symbols.js +13 -1
- package/temml.js +6 -0
package/README.md
CHANGED
package/dist/Temml-Asana.css
CHANGED
@@ -47,6 +47,24 @@ mo.tml-prime {
|
|
47
47
|
font-feature-settings: 'salt';
|
48
48
|
}
|
49
49
|
|
50
|
+
/* Prevent f' from overlapping in Chromium */
|
51
|
+
mo.prime-pad {
|
52
|
+
padding-left: 0.08em;
|
53
|
+
}
|
54
|
+
|
55
|
+
/* Stretch \widetilde in Chromium */
|
56
|
+
@supports (not (-webkit-backdrop-filter: blur(1px))) and (not (-moz-appearance: none)) {
|
57
|
+
.tml-crooked-2 {
|
58
|
+
transform: scale(2.0, 1.1)
|
59
|
+
}
|
60
|
+
.tml-crooked-3 {
|
61
|
+
transform: scale(3.0, 1.1)
|
62
|
+
}
|
63
|
+
.tml-crooked-4 {
|
64
|
+
transform: scale(4.0, 1.1)
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
50
68
|
/* flex-wrap for line-breaking in Chromium */
|
51
69
|
math {
|
52
70
|
display: inline-flex;
|
@@ -72,149 +90,3 @@ math > mrow {
|
|
72
90
|
body {
|
73
91
|
counter-reset: tmlEqnNo;
|
74
92
|
}
|
75
|
-
|
76
|
-
/* Environment arrays */
|
77
|
-
|
78
|
-
/* Environments that addjot to row spacing */
|
79
|
-
mtable.tml-jot > mtr > mtd {
|
80
|
-
padding-top: calc(0.5ex + 0.09em);
|
81
|
-
padding-bottom: calc(0.5ex + 0.09em);
|
82
|
-
}
|
83
|
-
|
84
|
-
/* Zero column gap for {alignat}, {split}, etc */
|
85
|
-
mtable.tml-abut > mtr > mtd,
|
86
|
-
mtable.tml-align > mtr > mtd:nth-child(odd),
|
87
|
-
mtable.tml-align-star > mtr > mtd:nth-child(even) {
|
88
|
-
padding-left: 0em;
|
89
|
-
padding-right: 0em;
|
90
|
-
}
|
91
|
-
|
92
|
-
mtable.tml-align > mtr > mtd:nth-child(even),
|
93
|
-
mtable.tml-align-star > mtr > mtd:nth-child(odd) {
|
94
|
-
padding-left: 1em;
|
95
|
-
padding-right: 0em;
|
96
|
-
}
|
97
|
-
|
98
|
-
mtable.tml-align > mtr > mtd:nth-child(1) {
|
99
|
-
padding-left: 0em;
|
100
|
-
}
|
101
|
-
|
102
|
-
mtable.tml-align > mtr > mtd:nth-child(odd),
|
103
|
-
mtable.tml-alignat > mtr > mtd:nth-child(odd),
|
104
|
-
mtable.tml-aligned > mtr > mtd:nth-child(even) {
|
105
|
-
text-align: -webkit-left;
|
106
|
-
text-align: -moz-left;
|
107
|
-
}
|
108
|
-
|
109
|
-
mtable.tml-align > mtr > mtd:nth-child(even),
|
110
|
-
mtable.tml-alignat > mtr > mtd:nth-child(even),
|
111
|
-
mtable.tml-aligned > mtr > mtd:nth-child(odd) {
|
112
|
-
text-align: -webkit-right;
|
113
|
-
text-align: -moz-right;
|
114
|
-
}
|
115
|
-
|
116
|
-
mtable.tml-cases > mtr > mtd {
|
117
|
-
padding-left: 0em;
|
118
|
-
padding-right: 0em;
|
119
|
-
text-align: -webkit-left;
|
120
|
-
text-align: -moz-left;
|
121
|
-
}
|
122
|
-
|
123
|
-
mtable.tml-cases > mtr > mtd:nth-child(2) {
|
124
|
-
padding-left: 1em;
|
125
|
-
}
|
126
|
-
|
127
|
-
mtable.tml-small > mtr > mtd {
|
128
|
-
padding-top: 0.35ex;
|
129
|
-
padding-bottom: 0.35ex;
|
130
|
-
padding-left: 0.1389em;
|
131
|
-
padding-right: 0.1389em;
|
132
|
-
}
|
133
|
-
|
134
|
-
mtable.tml-subarray > mtr > mtd {
|
135
|
-
padding-top: 0em;
|
136
|
-
padding-left: 0em;
|
137
|
-
}
|
138
|
-
|
139
|
-
mtable.tml-cd > mtr > mtd {
|
140
|
-
padding-left: 0.25em;
|
141
|
-
padding-right: 0.25em;
|
142
|
-
}
|
143
|
-
|
144
|
-
mtable > mtr:first-child > mtr > mtd {
|
145
|
-
padding-top: 0em;
|
146
|
-
}
|
147
|
-
|
148
|
-
mtable > mtr:last-child > mtr > mtd {
|
149
|
-
padding-bottom: 0em;
|
150
|
-
}
|
151
|
-
|
152
|
-
mtable:not(.tml-array) > mtr > mtd:first-child {
|
153
|
-
padding-left: 0em;
|
154
|
-
}
|
155
|
-
|
156
|
-
mtable:not(.tml-array) > mtr > mtd:last-child {
|
157
|
-
padding-right: 0em;
|
158
|
-
}
|
159
|
-
|
160
|
-
mtr.tml-top-solid > mtd {
|
161
|
-
border-top: 0.06em solid;
|
162
|
-
}
|
163
|
-
|
164
|
-
mtr.tml-top-double > mtd {
|
165
|
-
border-top: 0.15em double;
|
166
|
-
}
|
167
|
-
|
168
|
-
mtr.tml-top-dashed > mtd {
|
169
|
-
border-top: 0.06em dashed;
|
170
|
-
}
|
171
|
-
|
172
|
-
mtr.tml-hline-solid > mtd {
|
173
|
-
border-bottom: 0.06em solid;
|
174
|
-
}
|
175
|
-
|
176
|
-
mtr.tml-hline-double > mtd {
|
177
|
-
border-bottom: 0.15em double;
|
178
|
-
}
|
179
|
-
|
180
|
-
mtr.tml-hline-dashed > mtd {
|
181
|
-
border-bottom: 0.06em dashed;
|
182
|
-
}
|
183
|
-
|
184
|
-
/* MathML-Core does not support <menclose> attributes.
|
185
|
-
* So Use background images for \cancel */
|
186
|
-
mrow.cancel {
|
187
|
-
background:
|
188
|
-
linear-gradient(to top left,
|
189
|
-
rgba(0,0,0,0) 0%,
|
190
|
-
rgba(0,0,0,0) calc(50% - 0.06em),
|
191
|
-
rgba(0,0,0,1) 50%,
|
192
|
-
rgba(0,0,0,0) calc(50% + 0.06em),
|
193
|
-
rgba(0,0,0,0) 100%);
|
194
|
-
}
|
195
|
-
|
196
|
-
mrow.bcancel {
|
197
|
-
background:
|
198
|
-
linear-gradient(to top right,
|
199
|
-
rgba(0,0,0,0) 0%,
|
200
|
-
rgba(0,0,0,0) calc(50% - 0.06em),
|
201
|
-
rgba(0,0,0,1) 50%,
|
202
|
-
rgba(0,0,0,0) calc(50% + 0.06em),
|
203
|
-
rgba(0,0,0,0) 100%);
|
204
|
-
}
|
205
|
-
|
206
|
-
mrow.xcancel {
|
207
|
-
background:
|
208
|
-
linear-gradient(to top left,
|
209
|
-
rgba(0,0,0,0) 0%,
|
210
|
-
rgba(0,0,0,0) calc(50% - 0.06em),
|
211
|
-
rgba(0,0,0,1) 50%,
|
212
|
-
rgba(0,0,0,0) calc(50% + 0.06em),
|
213
|
-
rgba(0,0,0,0) 100%),
|
214
|
-
linear-gradient(to top right,
|
215
|
-
rgba(0,0,0,0) 0%,
|
216
|
-
rgba(0,0,0,0) calc(50% - 0.06em),
|
217
|
-
rgba(0,0,0,1) 50%,
|
218
|
-
rgba(0,0,0,0) calc(50% + 0.06em),
|
219
|
-
rgba(0,0,0,0) 100%);
|
220
|
-
}
|
@@ -41,7 +41,7 @@ math * {
|
|
41
41
|
}
|
42
42
|
|
43
43
|
math {
|
44
|
-
font-family: "Latin Modern Math",
|
44
|
+
font-family: "Latin Modern Math", math;
|
45
45
|
}
|
46
46
|
|
47
47
|
/* Next line is active in Firefox and Safari.
|
@@ -52,10 +52,29 @@ math.tml-display { display: block; }
|
|
52
52
|
font-family: "Temml";
|
53
53
|
}
|
54
54
|
|
55
|
+
/* Chromium prime alignment */
|
55
56
|
mo.tml-prime {
|
56
57
|
font-family: Temml;
|
57
58
|
}
|
58
59
|
|
60
|
+
/* Prevent f' from overlapping in Chromium */
|
61
|
+
mo.prime-pad {
|
62
|
+
padding-left: 0.08em;
|
63
|
+
}
|
64
|
+
|
65
|
+
/* Stretch \widetilde in Chromium */
|
66
|
+
@supports (not (-webkit-backdrop-filter: blur(1px))) and (not (-moz-appearance: none)) {
|
67
|
+
.tml-crooked-2 {
|
68
|
+
transform: scale(2.0, 1.1)
|
69
|
+
}
|
70
|
+
.tml-crooked-3 {
|
71
|
+
transform: scale(3.0, 1.3)
|
72
|
+
}
|
73
|
+
.tml-crooked-4 {
|
74
|
+
transform: scale(4.0, 1.4)
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
59
78
|
/* flex-wrap for line-breaking in Chromium */
|
60
79
|
math {
|
61
80
|
display: inline-flex;
|
@@ -81,150 +100,3 @@ math > mrow {
|
|
81
100
|
body {
|
82
101
|
counter-reset: tmlEqnNo;
|
83
102
|
}
|
84
|
-
|
85
|
-
/* Environment arrays */
|
86
|
-
|
87
|
-
/* Environments that addjot to row spacing */
|
88
|
-
mtable.tml-jot > mtr > mtd {
|
89
|
-
padding-top: calc(0.5ex + 0.09em);
|
90
|
-
padding-bottom: calc(0.5ex + 0.09em);
|
91
|
-
}
|
92
|
-
|
93
|
-
/* Zero column gap for {alignat}, {split}, etc */
|
94
|
-
mtable.tml-abut > mtr > mtd,
|
95
|
-
mtable.tml-align > mtr > mtd:nth-child(odd),
|
96
|
-
mtable.tml-align-star > mtr > mtd:nth-child(even) {
|
97
|
-
padding-left: 0em;
|
98
|
-
padding-right: 0em;
|
99
|
-
}
|
100
|
-
|
101
|
-
mtable.tml-align > mtr > mtd:nth-child(even),
|
102
|
-
mtable.tml-align-star > mtr > mtd:nth-child(odd) {
|
103
|
-
padding-left: 1em;
|
104
|
-
padding-right: 0em;
|
105
|
-
}
|
106
|
-
|
107
|
-
mtable.tml-align > mtr > mtd:nth-child(1) {
|
108
|
-
padding-left: 0em;
|
109
|
-
}
|
110
|
-
|
111
|
-
mtable.tml-align > mtr > mtd:nth-child(odd),
|
112
|
-
mtable.tml-alignat > mtr > mtd:nth-child(odd),
|
113
|
-
mtable.tml-aligned > mtr > mtd:nth-child(even) {
|
114
|
-
text-align: -webkit-left;
|
115
|
-
text-align: -moz-left;
|
116
|
-
}
|
117
|
-
|
118
|
-
mtable.tml-align > mtr > mtd:nth-child(even),
|
119
|
-
mtable.tml-alignat > mtr > mtd:nth-child(even),
|
120
|
-
mtable.tml-aligned > mtr > mtd:nth-child(odd),
|
121
|
-
mtable.tml-align-star > mtr > mtd:nth-child(odd) {
|
122
|
-
text-align: -webkit-right;
|
123
|
-
text-align: -moz-right;
|
124
|
-
}
|
125
|
-
|
126
|
-
mtable.tml-cases > mtr > mtd {
|
127
|
-
padding-left: 0em;
|
128
|
-
padding-right: 0em;
|
129
|
-
text-align: -webkit-left;
|
130
|
-
text-align: -moz-left;
|
131
|
-
}
|
132
|
-
|
133
|
-
mtable.tml-cases > mtr > mtd:nth-child(2) {
|
134
|
-
padding-left: 1em;
|
135
|
-
}
|
136
|
-
|
137
|
-
mtable.tml-small > mtr > mtd {
|
138
|
-
padding-top: 0.35ex;
|
139
|
-
padding-bottom: 0.35ex;
|
140
|
-
padding-left: 0.1389em;
|
141
|
-
padding-right: 0.1389em;
|
142
|
-
}
|
143
|
-
|
144
|
-
mtable.tml-subarray > mtr > mtd {
|
145
|
-
padding-top: 0em;
|
146
|
-
padding-left: 0em;
|
147
|
-
}
|
148
|
-
|
149
|
-
mtable.tml-cd > mtr > mtd {
|
150
|
-
padding-left: 0.25em;
|
151
|
-
padding-right: 0.25em;
|
152
|
-
}
|
153
|
-
|
154
|
-
mtable > mtr:first-child > mtr > mtd {
|
155
|
-
padding-top: 0em;
|
156
|
-
}
|
157
|
-
|
158
|
-
mtable > mtr:last-child > mtr > mtd {
|
159
|
-
padding-bottom: 0em;
|
160
|
-
}
|
161
|
-
|
162
|
-
mtable:not(.tml-array) > mtr > mtd:first-child {
|
163
|
-
padding-left: 0em;
|
164
|
-
}
|
165
|
-
|
166
|
-
mtable:not(.tml-array) > mtr > mtd:last-child {
|
167
|
-
padding-right: 0em;
|
168
|
-
}
|
169
|
-
|
170
|
-
mtr.tml-top-solid > mtd {
|
171
|
-
border-top: 0.06em solid;
|
172
|
-
}
|
173
|
-
|
174
|
-
mtr.tml-top-double > mtd {
|
175
|
-
border-top: 0.15em double;
|
176
|
-
}
|
177
|
-
|
178
|
-
mtr.tml-top-dashed > mtd {
|
179
|
-
border-top: 0.06em dashed;
|
180
|
-
}
|
181
|
-
|
182
|
-
mtr.tml-hline-solid > mtd {
|
183
|
-
border-bottom: 0.06em solid;
|
184
|
-
}
|
185
|
-
|
186
|
-
mtr.tml-hline-double > mtd {
|
187
|
-
border-bottom: 0.15em double;
|
188
|
-
}
|
189
|
-
|
190
|
-
mtr.tml-hline-dashed > mtd {
|
191
|
-
border-bottom: 0.06em dashed;
|
192
|
-
}
|
193
|
-
|
194
|
-
/* MathML-Core does not support <menclose> attributes.
|
195
|
-
* So Use background images for \cancel */
|
196
|
-
mrow.cancel {
|
197
|
-
background:
|
198
|
-
linear-gradient(to top left,
|
199
|
-
rgba(0,0,0,0) 0%,
|
200
|
-
rgba(0,0,0,0) calc(50% - 0.06em),
|
201
|
-
rgba(0,0,0,1) 50%,
|
202
|
-
rgba(0,0,0,0) calc(50% + 0.06em),
|
203
|
-
rgba(0,0,0,0) 100%);
|
204
|
-
}
|
205
|
-
|
206
|
-
mrow.bcancel {
|
207
|
-
background:
|
208
|
-
linear-gradient(to top right,
|
209
|
-
rgba(0,0,0,0) 0%,
|
210
|
-
rgba(0,0,0,0) calc(50% - 0.06em),
|
211
|
-
rgba(0,0,0,1) 50%,
|
212
|
-
rgba(0,0,0,0) calc(50% + 0.06em),
|
213
|
-
rgba(0,0,0,0) 100%);
|
214
|
-
}
|
215
|
-
|
216
|
-
mrow.xcancel {
|
217
|
-
background:
|
218
|
-
linear-gradient(to top left,
|
219
|
-
rgba(0,0,0,0) 0%,
|
220
|
-
rgba(0,0,0,0) calc(50% - 0.06em),
|
221
|
-
rgba(0,0,0,1) 50%,
|
222
|
-
rgba(0,0,0,0) calc(50% + 0.06em),
|
223
|
-
rgba(0,0,0,0) 100%),
|
224
|
-
linear-gradient(to top right,
|
225
|
-
rgba(0,0,0,0) 0%,
|
226
|
-
rgba(0,0,0,0) calc(50% - 0.06em),
|
227
|
-
rgba(0,0,0,1) 50%,
|
228
|
-
rgba(0,0,0,0) calc(50% + 0.06em),
|
229
|
-
rgba(0,0,0,0) 100%);
|
230
|
-
}
|
@@ -54,6 +54,24 @@ mo.tml-prime {
|
|
54
54
|
font-feature-settings: 'ssty';
|
55
55
|
}
|
56
56
|
|
57
|
+
/* Prevent f' from overlapping in Chromium */
|
58
|
+
mo.prime-pad {
|
59
|
+
padding-left: 0.08em;
|
60
|
+
}
|
61
|
+
|
62
|
+
/* Stretch \widetilde in Chromium */
|
63
|
+
@supports (not (-webkit-backdrop-filter: blur(1px))) and (not (-moz-appearance: none)) {
|
64
|
+
.tml-crooked-2 {
|
65
|
+
transform: scale(2.0, 1.1)
|
66
|
+
}
|
67
|
+
.tml-crooked-3 {
|
68
|
+
transform: scale(3.0, 1.1)
|
69
|
+
}
|
70
|
+
.tml-crooked-4 {
|
71
|
+
transform: scale(4.0, 1.2)
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
57
75
|
/* flex-wrap for line-breaking in Chromium */
|
58
76
|
math {
|
59
77
|
display: inline-flex;
|
@@ -79,150 +97,3 @@ math > mrow {
|
|
79
97
|
body {
|
80
98
|
counter-reset: tmlEqnNo;
|
81
99
|
}
|
82
|
-
|
83
|
-
/* Environment arrays */
|
84
|
-
|
85
|
-
/* Environments that addjot to row spacing */
|
86
|
-
mtable.tml-jot > mtr > mtd {
|
87
|
-
padding-top: calc(0.5ex + 0.09em);
|
88
|
-
padding-bottom: calc(0.5ex + 0.09em);
|
89
|
-
}
|
90
|
-
|
91
|
-
/* Zero column gap for {alignat}, {split}, etc */
|
92
|
-
mtable.tml-abut > mtr > mtd,
|
93
|
-
mtable.tml-align > mtr > mtd:nth-child(odd),
|
94
|
-
mtable.tml-align-star > mtr > mtd:nth-child(even) {
|
95
|
-
padding-left: 0em;
|
96
|
-
padding-right: 0em;
|
97
|
-
}
|
98
|
-
|
99
|
-
mtable.tml-align > mtr > mtd:nth-child(even),
|
100
|
-
mtable.tml-align-star > mtr > mtd:nth-child(odd) {
|
101
|
-
padding-left: 1em;
|
102
|
-
padding-right: 0em;
|
103
|
-
}
|
104
|
-
|
105
|
-
mtable.tml-align > mtr > mtd:nth-child(1) {
|
106
|
-
padding-left: 0em;
|
107
|
-
}
|
108
|
-
|
109
|
-
mtable.tml-align > mtr > mtd:nth-child(odd),
|
110
|
-
mtable.tml-alignat > mtr > mtd:nth-child(odd),
|
111
|
-
mtable.tml-aligned > mtr > mtd:nth-child(even) {
|
112
|
-
text-align: -webkit-left;
|
113
|
-
text-align: -moz-left;
|
114
|
-
}
|
115
|
-
|
116
|
-
mtable.tml-align > mtr > mtd:nth-child(even),
|
117
|
-
mtable.tml-alignat > mtr > mtd:nth-child(even),
|
118
|
-
mtable.tml-aligned > mtr > mtd:nth-child(odd),
|
119
|
-
mtable.tml-align-star > mtr > mtd:nth-child(odd) {
|
120
|
-
text-align: -webkit-right;
|
121
|
-
text-align: -moz-right;
|
122
|
-
}
|
123
|
-
|
124
|
-
mtable.tml-cases > mtr > mtd {
|
125
|
-
padding-left: 0em;
|
126
|
-
padding-right: 0em;
|
127
|
-
text-align: -webkit-left;
|
128
|
-
text-align: -moz-left;
|
129
|
-
}
|
130
|
-
|
131
|
-
mtable.tml-cases > mtr > mtd:nth-child(2) {
|
132
|
-
padding-left: 1em;
|
133
|
-
}
|
134
|
-
|
135
|
-
mtable.tml-small > mtr > mtd {
|
136
|
-
padding-top: 0.35ex;
|
137
|
-
padding-bottom: 0.35ex;
|
138
|
-
padding-left: 0.1389em;
|
139
|
-
padding-right: 0.1389em;
|
140
|
-
}
|
141
|
-
|
142
|
-
mtable.tml-subarray > mtr > mtd {
|
143
|
-
padding-top: 0em;
|
144
|
-
padding-left: 0em;
|
145
|
-
}
|
146
|
-
|
147
|
-
mtable.tml-cd > mtr > mtd {
|
148
|
-
padding-left: 0.25em;
|
149
|
-
padding-right: 0.25em;
|
150
|
-
}
|
151
|
-
|
152
|
-
mtable > mtr:first-child > mtr > mtd {
|
153
|
-
padding-top: 0em;
|
154
|
-
}
|
155
|
-
|
156
|
-
mtable > mtr:last-child > mtr > mtd {
|
157
|
-
padding-bottom: 0em;
|
158
|
-
}
|
159
|
-
|
160
|
-
mtable:not(.tml-array) > mtr > mtd:first-child {
|
161
|
-
padding-left: 0em;
|
162
|
-
}
|
163
|
-
|
164
|
-
mtable:not(.tml-array) > mtr > mtd:last-child {
|
165
|
-
padding-right: 0em;
|
166
|
-
}
|
167
|
-
|
168
|
-
mtr.tml-top-solid > mtd {
|
169
|
-
border-top: 0.06em solid;
|
170
|
-
}
|
171
|
-
|
172
|
-
mtr.tml-top-double > mtd {
|
173
|
-
border-top: 0.15em double;
|
174
|
-
}
|
175
|
-
|
176
|
-
mtr.tml-top-dashed > mtd {
|
177
|
-
border-top: 0.06em dashed;
|
178
|
-
}
|
179
|
-
|
180
|
-
mtr.tml-hline-solid > mtd {
|
181
|
-
border-bottom: 0.06em solid;
|
182
|
-
}
|
183
|
-
|
184
|
-
mtr.tml-hline-double > mtd {
|
185
|
-
border-bottom: 0.15em double;
|
186
|
-
}
|
187
|
-
|
188
|
-
mtr.tml-hline-dashed > mtd {
|
189
|
-
border-bottom: 0.06em dashed;
|
190
|
-
}
|
191
|
-
|
192
|
-
/* MathML-Core does not support <menclose> attributes.
|
193
|
-
* So Use background images for \cancel */
|
194
|
-
mrow.cancel {
|
195
|
-
background:
|
196
|
-
linear-gradient(to top left,
|
197
|
-
rgba(0,0,0,0) 0%,
|
198
|
-
rgba(0,0,0,0) calc(50% - 0.06em),
|
199
|
-
rgba(0,0,0,1) 50%,
|
200
|
-
rgba(0,0,0,0) calc(50% + 0.06em),
|
201
|
-
rgba(0,0,0,0) 100%);
|
202
|
-
}
|
203
|
-
|
204
|
-
mrow.bcancel {
|
205
|
-
background:
|
206
|
-
linear-gradient(to top right,
|
207
|
-
rgba(0,0,0,0) 0%,
|
208
|
-
rgba(0,0,0,0) calc(50% - 0.06em),
|
209
|
-
rgba(0,0,0,1) 50%,
|
210
|
-
rgba(0,0,0,0) calc(50% + 0.06em),
|
211
|
-
rgba(0,0,0,0) 100%);
|
212
|
-
}
|
213
|
-
|
214
|
-
mrow.xcancel {
|
215
|
-
background:
|
216
|
-
linear-gradient(to top left,
|
217
|
-
rgba(0,0,0,0) 0%,
|
218
|
-
rgba(0,0,0,0) calc(50% - 0.06em),
|
219
|
-
rgba(0,0,0,1) 50%,
|
220
|
-
rgba(0,0,0,0) calc(50% + 0.06em),
|
221
|
-
rgba(0,0,0,0) 100%),
|
222
|
-
linear-gradient(to top right,
|
223
|
-
rgba(0,0,0,0) 0%,
|
224
|
-
rgba(0,0,0,0) calc(50% - 0.06em),
|
225
|
-
rgba(0,0,0,1) 50%,
|
226
|
-
rgba(0,0,0,0) calc(50% + 0.06em),
|
227
|
-
rgba(0,0,0,0) 100%);
|
228
|
-
}
|
package/dist/Temml-Local.css
CHANGED
@@ -12,7 +12,7 @@ Unicode range 1D49C to 1D4B5.
|
|
12
12
|
}
|
13
13
|
|
14
14
|
math {
|
15
|
-
font-family: "Cambria Math", 'STIXTwoMath-Regular',
|
15
|
+
font-family: "Cambria Math", 'STIXTwoMath-Regular', math;
|
16
16
|
font-style: normal;
|
17
17
|
font-weight: normal;
|
18
18
|
line-height: normal;
|
@@ -40,6 +40,24 @@ mo.tml-prime {
|
|
40
40
|
font-family: Temml;
|
41
41
|
}
|
42
42
|
|
43
|
+
/* Prevent f' from overlapping in Chromium */
|
44
|
+
mo.prime-pad {
|
45
|
+
padding-left: 0.08em;
|
46
|
+
}
|
47
|
+
|
48
|
+
/* Stretch \widetilde in Chromium */
|
49
|
+
@supports (not (-webkit-backdrop-filter: blur(1px))) and (not (-moz-appearance: none)) {
|
50
|
+
.tml-crooked-2 {
|
51
|
+
transform: scale(2.0, 1.1)
|
52
|
+
}
|
53
|
+
.tml-crooked-3 {
|
54
|
+
transform: scale(3.0, 1.1)
|
55
|
+
}
|
56
|
+
.tml-crooked-4 {
|
57
|
+
transform: scale(4.0, 1.1)
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
43
61
|
/* flex-wrap for line-breaking in Chromium */
|
44
62
|
math {
|
45
63
|
display: inline-flex;
|
@@ -65,149 +83,3 @@ math > mrow {
|
|
65
83
|
body {
|
66
84
|
counter-reset: tmlEqnNo;
|
67
85
|
}
|
68
|
-
|
69
|
-
/* Environment arrays */
|
70
|
-
|
71
|
-
/* Environments that addjot to row spacing */
|
72
|
-
mtable.tml-jot > mtr > mtd {
|
73
|
-
padding-top: calc(0.5ex + 0.09em);
|
74
|
-
padding-bottom: calc(0.5ex + 0.09em);
|
75
|
-
}
|
76
|
-
|
77
|
-
/* Zero column gap for {alignat}, {split}, etc */
|
78
|
-
mtable.tml-abut > mtr > mtd,
|
79
|
-
mtable.tml-align > mtr > mtd:nth-child(odd),
|
80
|
-
mtable.tml-align-star > mtr > mtd:nth-child(even) {
|
81
|
-
padding-left: 0em;
|
82
|
-
padding-right: 0em;
|
83
|
-
}
|
84
|
-
|
85
|
-
mtable.tml-align > mtr > mtd:nth-child(even),
|
86
|
-
mtable.tml-align-star > mtr > mtd:nth-child(odd) {
|
87
|
-
padding-left: 1em;
|
88
|
-
padding-right: 0em;
|
89
|
-
}
|
90
|
-
|
91
|
-
mtable.tml-align > mtr > mtd:nth-child(1) {
|
92
|
-
padding-left: 0em;
|
93
|
-
}
|
94
|
-
|
95
|
-
mtable.tml-align > mtr > mtd:nth-child(odd),
|
96
|
-
mtable.tml-alignat > mtr > mtd:nth-child(odd),
|
97
|
-
mtable.tml-aligned > mtr > mtd:nth-child(even) {
|
98
|
-
text-align: -webkit-left;
|
99
|
-
text-align: -moz-left;
|
100
|
-
}
|
101
|
-
|
102
|
-
mtable.tml-align > mtr > mtd:nth-child(even),
|
103
|
-
mtable.tml-alignat > mtr > mtd:nth-child(even),
|
104
|
-
mtable.tml-aligned > mtr > mtd:nth-child(odd) {
|
105
|
-
text-align: -webkit-right;
|
106
|
-
text-align: -moz-right;
|
107
|
-
}
|
108
|
-
|
109
|
-
mtable.tml-cases > mtr > mtd {
|
110
|
-
padding-left: 0em;
|
111
|
-
padding-right: 0em;
|
112
|
-
text-align: -webkit-left;
|
113
|
-
text-align: -moz-left;
|
114
|
-
}
|
115
|
-
|
116
|
-
mtable.tml-cases > mtr > mtd:nth-child(2) {
|
117
|
-
padding-left: 1em;
|
118
|
-
}
|
119
|
-
|
120
|
-
mtable.tml-small > mtr > mtd {
|
121
|
-
padding-top: 0.35ex;
|
122
|
-
padding-bottom: 0.35ex;
|
123
|
-
padding-left: 0.1389em;
|
124
|
-
padding-right: 0.1389em;
|
125
|
-
}
|
126
|
-
|
127
|
-
mtable.tml-subarray > mtr > mtd {
|
128
|
-
padding-top: 0em;
|
129
|
-
padding-left: 0em;
|
130
|
-
}
|
131
|
-
|
132
|
-
mtable.tml-cd > mtr > mtd {
|
133
|
-
padding-left: 0.25em;
|
134
|
-
padding-right: 0.25em;
|
135
|
-
}
|
136
|
-
|
137
|
-
mtable > mtr:first-child > mtr > mtd {
|
138
|
-
padding-top: 0em;
|
139
|
-
}
|
140
|
-
|
141
|
-
mtable > mtr:last-child > mtr > mtd {
|
142
|
-
padding-bottom: 0em;
|
143
|
-
}
|
144
|
-
|
145
|
-
mtable:not(.tml-array) > mtr > mtd:first-child {
|
146
|
-
padding-left: 0em;
|
147
|
-
}
|
148
|
-
|
149
|
-
mtable:not(.tml-array) > mtr > mtd:last-child {
|
150
|
-
padding-right: 0em;
|
151
|
-
}
|
152
|
-
|
153
|
-
mtr.tml-top-solid > mtd {
|
154
|
-
border-top: 0.06em solid;
|
155
|
-
}
|
156
|
-
|
157
|
-
mtr.tml-top-double > mtd {
|
158
|
-
border-top: 0.15em double;
|
159
|
-
}
|
160
|
-
|
161
|
-
mtr.tml-top-dashed > mtd {
|
162
|
-
border-top: 0.06em dashed;
|
163
|
-
}
|
164
|
-
|
165
|
-
mtr.tml-hline-solid > mtd {
|
166
|
-
border-bottom: 0.06em solid;
|
167
|
-
}
|
168
|
-
|
169
|
-
mtr.tml-hline-double > mtd {
|
170
|
-
border-bottom: 0.15em double;
|
171
|
-
}
|
172
|
-
|
173
|
-
mtr.tml-hline-dashed > mtd {
|
174
|
-
border-bottom: 0.06em dashed;
|
175
|
-
}
|
176
|
-
|
177
|
-
/* MathML-Core does not support <menclose> attributes.
|
178
|
-
* So Use background images for \cancel */
|
179
|
-
mrow.cancel {
|
180
|
-
background:
|
181
|
-
linear-gradient(to top left,
|
182
|
-
rgba(0,0,0,0) 0%,
|
183
|
-
rgba(0,0,0,0) calc(50% - 0.06em),
|
184
|
-
rgba(0,0,0,1) 50%,
|
185
|
-
rgba(0,0,0,0) calc(50% + 0.06em),
|
186
|
-
rgba(0,0,0,0) 100%);
|
187
|
-
}
|
188
|
-
|
189
|
-
mrow.bcancel {
|
190
|
-
background:
|
191
|
-
linear-gradient(to top right,
|
192
|
-
rgba(0,0,0,0) 0%,
|
193
|
-
rgba(0,0,0,0) calc(50% - 0.06em),
|
194
|
-
rgba(0,0,0,1) 50%,
|
195
|
-
rgba(0,0,0,0) calc(50% + 0.06em),
|
196
|
-
rgba(0,0,0,0) 100%);
|
197
|
-
}
|
198
|
-
|
199
|
-
mrow.xcancel {
|
200
|
-
background:
|
201
|
-
linear-gradient(to top left,
|
202
|
-
rgba(0,0,0,0) 0%,
|
203
|
-
rgba(0,0,0,0) calc(50% - 0.06em),
|
204
|
-
rgba(0,0,0,1) 50%,
|
205
|
-
rgba(0,0,0,0) calc(50% + 0.06em),
|
206
|
-
rgba(0,0,0,0) 100%),
|
207
|
-
linear-gradient(to top right,
|
208
|
-
rgba(0,0,0,0) 0%,
|
209
|
-
rgba(0,0,0,0) calc(50% - 0.06em),
|
210
|
-
rgba(0,0,0,1) 50%,
|
211
|
-
rgba(0,0,0,0) calc(50% + 0.06em),
|
212
|
-
rgba(0,0,0,0) 100%);
|
213
|
-
}
|