Debian Codegraph @

test/functional/input/data/math.css

raw symbols SCIP
1 /*
2 * math2html: convert LaTeX equations to HTML output.
3 *
4 * Copyright (C) 2009,2010 Alex Fernández
5 * 2021 Günter Milde
6 *
7 * Released under the terms of the `2-Clause BSD license'_, in short:
8 * Copying and distribution of this file, with or without modification,
9 * are permitted in any medium without royalty provided the copyright
10 * notice and this notice are preserved.
11 * This file is offered as-is, without any warranty.
12 *
13 * .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause
14 *
15 * Based on eLyXer: convert LyX source files to HTML output.
16 * http://elyxer.nongnu.org/
17 *
18 *
19 * CSS file for LaTeX formulas.
20 *
21 * References: http://www.zipcon.net/~swhite/docs/math/math.html
22 * http://www.cs.tut.fi/~jkorpela/math/
23 */
24
25 /* Formulas */
26 .formula {
27 text-align: center;
28 margin: 1.2em 0;
29 line-height: 1.4;
30 }
31 span.formula {
32 white-space: nowrap;
33 }
34 div.formula {
35 padding: 0.5ex;
36 margin-left: auto;
37 margin-right: auto;
38 }
39
40 /* Basic features */
41 a.eqnumber {
42 display: inline-block;
43 float: right;
44 clear: right;
45 font-weight: bold;
46 }
47 span.unknown {
48 color: #800000;
49 }
50 span.ignored, span.arraydef {
51 display: none;
52 }
53 .phantom {
54 visibility: hidden;
55 }
56 .formula i {
57 letter-spacing: 0.1ex;
58 }
59
60 /* Alignment */
61 .align-l {
62 text-align: left;
63 }
64 .align-r {
65 text-align: right;
66 }
67 .align-c {
68 text-align: center;
69 }
70
71 /* Structures */
72 span.hspace {
73 display: inline-block;
74 }
75 span.overline, span.bar {
76 text-decoration: overline;
77 }
78 .fraction, .fullfraction, .textfraction {
79 display: inline-block;
80 vertical-align: middle;
81 text-align: center;
82 }
83 span.formula .fraction,
84 .textfraction,
85 span.smallmatrix {
86 font-size: 80%;
87 line-height: 1;
88 }
89 span.numerator {
90 display: block;
91 line-height: 1;
92 }
93 span.denominator {
94 display: block;
95 line-height: 1;
96 padding: 0ex;
97 border-top: thin solid;
98 }
99 .formula sub, .formula sup {
100 font-size: 80%;
101 }
102 sup.numerator, sup.unit {
103 vertical-align: 80%;
104 }
105 sub.denominator, sub.unit {
106 vertical-align: -20%;
107 }
108 span.smallsymbol {
109 font-size: 75%;
110 line-height: 75%;
111 }
112 span.boldsymbol {
113 font-weight: bold;
114 }
115 span.sqrt {
116 display: inline-block;
117 vertical-align: middle;
118 padding: 0.1ex;
119 }
120 sup.root {
121 position: relative;
122 left: 1.4ex;
123 }
124 span.radical {
125 display: inline-block;
126 padding: 0ex;
127 /* font-size: 160%; for DejaVu, not required with STIX */
128 line-height: 100%;
129 vertical-align: top;
130 vertical-align: middle;
131 }
132
133 span.root {
134 display: inline-block;
135 border-top: thin solid;
136 padding: 0ex;
137 vertical-align: middle;
138 }
139 div.formula .bigoperator,
140 .displaystyle .bigoperator,
141 .displaystyle .bigoperator {
142 line-height: 120%;
143 font-size: 140%;
144 padding-right: 0.2ex;
145 }
146 span.fraction .bigoperator,
147 span.scriptstyle .bigoperator {
148 line-height: inherit;
149 font-size: inherit;
150 padding-right: 0;
151 }
152 span.bigdelimiter {
153 display: inline-block;
154 }
155 span.bigdelimiter.size1 {
156 transform: scale(1, 1.2);
157 line-height: 1.2;
158 }
159 span.bigdelimiter.size2 {
160 transform: scale(1, 1.62);
161 line-height: 1.62%;
162
163 }
164 span.bigdelimiter.size3 {
165 transform: scale(1, 2.05);
166 line-height: 2.05%;
167 }
168 span.bigdelimiter.size4 {
169 transform: scale(1, 2.47);
170 line-height: 2.47%;
171 }
172 /* vertically stacked sub and superscript */
173 span.scripts {
174 display: inline-table;
175 vertical-align: middle;
176 padding-right: 0.2ex;
177 }
178 .script {
179 display: table-row;
180 text-align: left;
181 line-height: 150%;
182 }
183 span.limits {
184 display: inline-table;
185 vertical-align: middle;
186 }
187 .limit {
188 display: table-row;
189 line-height: 99%;
190 }
191 sup.limit, sub.limit {
192 line-height: 100%;
193 }
194 span.embellished,
195 span.embellished > .base {
196 display: inline-block;
197 }
198 span.embellished > sup,
199 span.embellished > sub {
200 display: inline-block;
201 font-size: 100%;
202 position: relative;
203 bottom: 0.3em;
204 width: 0px;
205 }
206 span.embellished > sub {
207 top: 0.4em;
208 }
209
210 /* Environments */
211 span.array, span.bracketcases, span.binomial, span.environment {
212 display: inline-table;
213 text-align: center;
214 vertical-align: middle;
215 }
216 span.arrayrow, span.binomrow {
217 display: table-row;
218 padding: 0;
219 border: 0;
220 }
221 span.arraycell, span.bracket, span.case, span.binomcell, span.environmentcell {
222 display: table-cell;
223 padding: 0ex 0.2ex;
224 line-height: 1; /* 99%; */
225 border: 0ex;
226 }
227 .environment.align > .arrayrow > .arraycell.align-l {
228 padding-right: 2em;
229 }
230
231 /* Inline binomials */
232 span.binom {
233 display: inline-block;
234 vertical-align: middle;
235 text-align: center;
236 font-size: 80%;
237 }
238 span.binomstack {
239 display: block;
240 padding: 0em;
241 }
242
243 /* Over- and underbraces */
244 span.overbrace {
245 border-top: 2pt solid;
246 }
247 span.underbrace {
248 border-bottom: 2pt solid;
249 }
250
251 /* Stackrel */
252 span.stackrel {
253 display: inline-block;
254 text-align: center;
255 }
256 span.upstackrel {
257 display: block;
258 padding: 0em;
259 font-size: 80%;
260 line-height: 64%;
261 position: relative;
262 top: 0.15em;
263
264 }
265 span.downstackrel {
266 display: block;
267 vertical-align: bottom;
268 padding: 0em;
269 }
270
271 /* Fonts */
272 .formula {
273 font-family: STIX, "DejaVu Serif", "DejaVu Math TeX Gyre", serif;
274 }
275 span.radical, /* ensure correct size of square-root sign */
276 span.integral { /* upright integral signs for better alignment of indices */
277 font-family: "STIXIntegralsUp", STIX;
278 /* font-size: 115%; match apparent size with DejaVu */
279 }
280 span.bracket {
281 /* some "STIX" and "DejaVu Math TeX Gyre" bracket pieces don't fit */
282 font-family: "DejaVu Serif", serif;
283 }
284 span.mathsf, span.textsf {
285 font-family: sans-serif;
286 }
287 span.mathrm, span.textrm {
288 font-family: STIX, "DejaVu Serif", "DejaVu Math TeX Gyre", serif;
289 }
290 span.mathtt, span.texttt {
291 font-family: monospace;
292 }
293 span.text, span.textnormal,
294 span.mathsf, span.mathtt, span.mathrm {
295 font-style: normal;
296 }
297 span.fraktur {
298 font-family: "Lucida Blackletter", eufm10, blackletter;
299 }
300 span.blackboard {
301 font-family: Blackboard, msbm10, serif;
302 }
303 span.scriptfont {
304 font-family: "Monotype Corsiva", "Apple Chancery", "URW Chancery L", cursive;
305 font-style: italic;
306 }
307 span.mathscr {
308 font-family: MathJax_Script, rsfs10, cursive;
309 font-style: italic;
310 }
311 span.textsc {
312 font-variant: small-caps;
313 }
314 span.textsl {
315 font-style: oblique;
316 }
317
318 /* Colors */
319 span.colorbox {
320 display: inline-block;
321 padding: 5px;
322 }
323 span.fbox {
324 display: inline-block;
325 border: thin solid black;
326 padding: 2px;
327 }
328 span.boxed, span.framebox {
329 display: inline-block;
330 border: thin solid black;
331 padding: 5px;
332 }