temml 0.10.13 → 0.10.15
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 +5 -147
- package/dist/Temml-Latin-Modern.css +5 -148
- package/dist/Temml-Libertinus.css +5 -148
- package/dist/Temml-Local.css +5 -147
- package/dist/Temml-STIX2.css +5 -147
- package/dist/temml.cjs +197 -99
- package/dist/temml.d.ts +60 -0
- package/dist/temml.js +197 -99
- package/dist/temml.min.js +1 -1
- package/dist/temml.mjs +197 -99
- package/dist/temmlPostProcess.js +1 -1
- package/package.json +4 -2
- package/src/buildMathML.js +4 -3
- package/src/environments/array.js +95 -23
- package/src/functions/delimsizing.js +2 -3
- package/src/functions/enclose.js +37 -16
- package/src/functions/raise.js +7 -7
- package/src/linebreaking.js +45 -48
- package/src/macros.js +1 -4
- package/src/postProcess.js +1 -1
- package/src/symbols.js +5 -0
- package/temml.js +6 -0
package/dist/Temml-STIX2.css
CHANGED
@@ -28,6 +28,10 @@ math * {
|
|
28
28
|
border-color: currentColor;
|
29
29
|
}
|
30
30
|
|
31
|
+
/* Next line is active in Firefox and Safari.
|
32
|
+
* Not in Chromium, which recognizes display: "block math" written inline. */
|
33
|
+
math.tml-display { display: block; }
|
34
|
+
|
31
35
|
mtext {
|
32
36
|
font-family: STIX2;
|
33
37
|
}
|
@@ -55,7 +59,7 @@ math > mrow {
|
|
55
59
|
}
|
56
60
|
|
57
61
|
/* Avoid flex-wrap in Firefox */
|
58
|
-
|
62
|
+
@-moz-document url-prefix() {
|
59
63
|
math { display: inline; }
|
60
64
|
math > mrow { padding: 0 }
|
61
65
|
}
|
@@ -69,149 +73,3 @@ math > mrow {
|
|
69
73
|
body {
|
70
74
|
counter-reset: tmlEqnNo;
|
71
75
|
}
|
72
|
-
|
73
|
-
/* Environment arrays */
|
74
|
-
|
75
|
-
/* Environments that addjot to row spacing */
|
76
|
-
mtable.tml-jot > mtr > mtd {
|
77
|
-
padding-top: calc(0.5ex + 0.09em);
|
78
|
-
padding-bottom: calc(0.5ex + 0.09em);
|
79
|
-
}
|
80
|
-
|
81
|
-
/* Zero column gap for {alignat}, {split}, etc */
|
82
|
-
mtable.tml-abut > mtr > mtd,
|
83
|
-
mtable.tml-align > mtr > mtd:nth-child(odd),
|
84
|
-
mtable.tml-align-star > mtr > mtd:nth-child(even) {
|
85
|
-
padding-left: 0em;
|
86
|
-
padding-right: 0em;
|
87
|
-
}
|
88
|
-
|
89
|
-
mtable.tml-align > mtr > mtd:nth-child(even),
|
90
|
-
mtable.tml-align-star > mtr > mtd:nth-child(odd) {
|
91
|
-
padding-left: 1em;
|
92
|
-
padding-right: 0em;
|
93
|
-
}
|
94
|
-
|
95
|
-
mtable.tml-align > mtr > mtd:nth-child(1) {
|
96
|
-
padding-left: 0em;
|
97
|
-
}
|
98
|
-
|
99
|
-
mtable.tml-align > mtr > mtd:nth-child(odd),
|
100
|
-
mtable.tml-alignat > mtr > mtd:nth-child(odd),
|
101
|
-
mtable.tml-aligned > mtr > mtd:nth-child(even) {
|
102
|
-
text-align: -webkit-left;
|
103
|
-
text-align: -moz-left;
|
104
|
-
}
|
105
|
-
|
106
|
-
mtable.tml-align > mtr > mtd:nth-child(even),
|
107
|
-
mtable.tml-alignat > mtr > mtd:nth-child(even),
|
108
|
-
mtable.tml-aligned > mtr > mtd:nth-child(odd) {
|
109
|
-
text-align: -webkit-right;
|
110
|
-
text-align: -moz-right;
|
111
|
-
}
|
112
|
-
|
113
|
-
mtable.tml-cases > mtr > mtd {
|
114
|
-
padding-left: 0em;
|
115
|
-
padding-right: 0em;
|
116
|
-
text-align: -webkit-left;
|
117
|
-
text-align: -moz-left;
|
118
|
-
}
|
119
|
-
|
120
|
-
mtable.tml-cases > mtr > mtd:nth-child(2) {
|
121
|
-
padding-left: 1em;
|
122
|
-
}
|
123
|
-
|
124
|
-
mtable.tml-small > mtr > mtd {
|
125
|
-
padding-top: 0.35ex;
|
126
|
-
padding-bottom: 0.35ex;
|
127
|
-
padding-left: 0.1389em;
|
128
|
-
padding-right: 0.1389em;
|
129
|
-
}
|
130
|
-
|
131
|
-
mtable.tml-subarray > mtr > mtd {
|
132
|
-
padding-top: 0em;
|
133
|
-
padding-left: 0em;
|
134
|
-
}
|
135
|
-
|
136
|
-
mtable.tml-cd > mtr > mtd {
|
137
|
-
padding-left: 0.25em;
|
138
|
-
padding-right: 0.25em;
|
139
|
-
}
|
140
|
-
|
141
|
-
mtable > mtr:first-child > mtr > mtd {
|
142
|
-
padding-top: 0em;
|
143
|
-
}
|
144
|
-
|
145
|
-
mtable > mtr:last-child > mtr > mtd {
|
146
|
-
padding-bottom: 0em;
|
147
|
-
}
|
148
|
-
|
149
|
-
mtable:not(.tml-array) > mtr > mtd:first-child {
|
150
|
-
padding-left: 0em;
|
151
|
-
}
|
152
|
-
|
153
|
-
mtable:not(.tml-array) > mtr > mtd:last-child {
|
154
|
-
padding-right: 0em;
|
155
|
-
}
|
156
|
-
|
157
|
-
mtr.tml-top-solid > mtd {
|
158
|
-
border-top: 0.06em solid;
|
159
|
-
}
|
160
|
-
|
161
|
-
mtr.tml-top-double > mtd {
|
162
|
-
border-top: 0.15em double;
|
163
|
-
}
|
164
|
-
|
165
|
-
mtr.tml-top-dashed > mtd {
|
166
|
-
border-top: 0.06em dashed;
|
167
|
-
}
|
168
|
-
|
169
|
-
mtr.tml-hline-solid > mtd {
|
170
|
-
border-bottom: 0.06em solid;
|
171
|
-
}
|
172
|
-
|
173
|
-
mtr.tml-hline-double > mtd {
|
174
|
-
border-bottom: 0.15em double;
|
175
|
-
}
|
176
|
-
|
177
|
-
mtr.tml-hline-dashed > mtd {
|
178
|
-
border-bottom: 0.06em dashed;
|
179
|
-
}
|
180
|
-
|
181
|
-
/* MathML-Core does not support <menclose> attributes.
|
182
|
-
* So Use background images for \cancel */
|
183
|
-
menclose.cancel {
|
184
|
-
background:
|
185
|
-
linear-gradient(to top left,
|
186
|
-
rgba(0,0,0,0) 0%,
|
187
|
-
rgba(0,0,0,0) calc(50% - 0.06em),
|
188
|
-
rgba(0,0,0,1) 50%,
|
189
|
-
rgba(0,0,0,0) calc(50% + 0.06em),
|
190
|
-
rgba(0,0,0,0) 100%);
|
191
|
-
}
|
192
|
-
|
193
|
-
menclose.bcancel {
|
194
|
-
background:
|
195
|
-
linear-gradient(to top right,
|
196
|
-
rgba(0,0,0,0) 0%,
|
197
|
-
rgba(0,0,0,0) calc(50% - 0.06em),
|
198
|
-
rgba(0,0,0,1) 50%,
|
199
|
-
rgba(0,0,0,0) calc(50% + 0.06em),
|
200
|
-
rgba(0,0,0,0) 100%);
|
201
|
-
}
|
202
|
-
|
203
|
-
menclose.xcancel {
|
204
|
-
background:
|
205
|
-
linear-gradient(to top left,
|
206
|
-
rgba(0,0,0,0) 0%,
|
207
|
-
rgba(0,0,0,0) calc(50% - 0.06em),
|
208
|
-
rgba(0,0,0,1) 50%,
|
209
|
-
rgba(0,0,0,0) calc(50% + 0.06em),
|
210
|
-
rgba(0,0,0,0) 100%),
|
211
|
-
linear-gradient(to top right,
|
212
|
-
rgba(0,0,0,0) 0%,
|
213
|
-
rgba(0,0,0,0) calc(50% - 0.06em),
|
214
|
-
rgba(0,0,0,1) 50%,
|
215
|
-
rgba(0,0,0,0) calc(50% + 0.06em),
|
216
|
-
rgba(0,0,0,0) 100%);
|
217
|
-
}
|