share-pages 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/README.md +49 -0
  2. package/dist/dist-JyXFh6I5.mjs +5444 -0
  3. package/dist/epub-BXQPqTFk-CGD2NLS1.mjs +4915 -0
  4. package/dist/index.mjs +679 -0
  5. package/dist/latex-CybgCSnr-CvP5kdPz.mjs +33421 -0
  6. package/dist/latex-DMo_3IW8-B6ogeBvw.mjs +20 -0
  7. package/dist/markdown-BWlCFeLJ-OwSvKM8l.mjs +68089 -0
  8. package/dist/node-Lh4CQjZ4.mjs +77 -0
  9. package/dist/papaparse-BJnSo-VR.mjs +1139 -0
  10. package/dist/prepare-C56DezIS-DiqwpdkG.mjs +8563 -0
  11. package/dist/resources/assets/csv-worker-Bilq-sDm.js +17 -0
  12. package/dist/resources/chunks/viewer-Bz6Cwh4W.js +9561 -0
  13. package/dist/resources/csv.js +2444 -0
  14. package/dist/resources/epub.js +16493 -0
  15. package/dist/resources/fonts/KaTeX_AMS-Regular.ttf +0 -0
  16. package/dist/resources/fonts/KaTeX_AMS-Regular.woff +0 -0
  17. package/dist/resources/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  18. package/dist/resources/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
  19. package/dist/resources/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
  20. package/dist/resources/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  21. package/dist/resources/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
  22. package/dist/resources/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
  23. package/dist/resources/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  24. package/dist/resources/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
  25. package/dist/resources/fonts/KaTeX_Fraktur-Bold.woff +0 -0
  26. package/dist/resources/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  27. package/dist/resources/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
  28. package/dist/resources/fonts/KaTeX_Fraktur-Regular.woff +0 -0
  29. package/dist/resources/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  30. package/dist/resources/fonts/KaTeX_Main-Bold.ttf +0 -0
  31. package/dist/resources/fonts/KaTeX_Main-Bold.woff +0 -0
  32. package/dist/resources/fonts/KaTeX_Main-Bold.woff2 +0 -0
  33. package/dist/resources/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
  34. package/dist/resources/fonts/KaTeX_Main-BoldItalic.woff +0 -0
  35. package/dist/resources/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  36. package/dist/resources/fonts/KaTeX_Main-Italic.ttf +0 -0
  37. package/dist/resources/fonts/KaTeX_Main-Italic.woff +0 -0
  38. package/dist/resources/fonts/KaTeX_Main-Italic.woff2 +0 -0
  39. package/dist/resources/fonts/KaTeX_Main-Regular.ttf +0 -0
  40. package/dist/resources/fonts/KaTeX_Main-Regular.woff +0 -0
  41. package/dist/resources/fonts/KaTeX_Main-Regular.woff2 +0 -0
  42. package/dist/resources/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
  43. package/dist/resources/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  44. package/dist/resources/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  45. package/dist/resources/fonts/KaTeX_Math-Italic.ttf +0 -0
  46. package/dist/resources/fonts/KaTeX_Math-Italic.woff +0 -0
  47. package/dist/resources/fonts/KaTeX_Math-Italic.woff2 +0 -0
  48. package/dist/resources/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
  49. package/dist/resources/fonts/KaTeX_SansSerif-Bold.woff +0 -0
  50. package/dist/resources/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  51. package/dist/resources/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
  52. package/dist/resources/fonts/KaTeX_SansSerif-Italic.woff +0 -0
  53. package/dist/resources/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  54. package/dist/resources/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
  55. package/dist/resources/fonts/KaTeX_SansSerif-Regular.woff +0 -0
  56. package/dist/resources/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  57. package/dist/resources/fonts/KaTeX_Script-Regular.ttf +0 -0
  58. package/dist/resources/fonts/KaTeX_Script-Regular.woff +0 -0
  59. package/dist/resources/fonts/KaTeX_Script-Regular.woff2 +0 -0
  60. package/dist/resources/fonts/KaTeX_Size1-Regular.ttf +0 -0
  61. package/dist/resources/fonts/KaTeX_Size1-Regular.woff +0 -0
  62. package/dist/resources/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  63. package/dist/resources/fonts/KaTeX_Size2-Regular.ttf +0 -0
  64. package/dist/resources/fonts/KaTeX_Size2-Regular.woff +0 -0
  65. package/dist/resources/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  66. package/dist/resources/fonts/KaTeX_Size3-Regular.ttf +0 -0
  67. package/dist/resources/fonts/KaTeX_Size3-Regular.woff +0 -0
  68. package/dist/resources/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  69. package/dist/resources/fonts/KaTeX_Size4-Regular.ttf +0 -0
  70. package/dist/resources/fonts/KaTeX_Size4-Regular.woff +0 -0
  71. package/dist/resources/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  72. package/dist/resources/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
  73. package/dist/resources/fonts/KaTeX_Typewriter-Regular.woff +0 -0
  74. package/dist/resources/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  75. package/dist/resources/katex.css +1 -0
  76. package/dist/resources/latex-article.css +33 -0
  77. package/dist/resources/latex-base.css +816 -0
  78. package/dist/resources/latex-book.css +43 -0
  79. package/dist/resources/latex-fonts/KaTeX_AMS-Regular.woff +0 -0
  80. package/dist/resources/latex-fonts/KaTeX_AMS-Regular.woff2 +0 -0
  81. package/dist/resources/latex-fonts/KaTeX_Caligraphic-Bold.woff +0 -0
  82. package/dist/resources/latex-fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  83. package/dist/resources/latex-fonts/KaTeX_Caligraphic-Regular.woff +0 -0
  84. package/dist/resources/latex-fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  85. package/dist/resources/latex-fonts/KaTeX_Fraktur-Bold.woff +0 -0
  86. package/dist/resources/latex-fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  87. package/dist/resources/latex-fonts/KaTeX_Fraktur-Regular.woff +0 -0
  88. package/dist/resources/latex-fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  89. package/dist/resources/latex-fonts/KaTeX_Main-Bold.woff +0 -0
  90. package/dist/resources/latex-fonts/KaTeX_Main-Bold.woff2 +0 -0
  91. package/dist/resources/latex-fonts/KaTeX_Main-BoldItalic.woff +0 -0
  92. package/dist/resources/latex-fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  93. package/dist/resources/latex-fonts/KaTeX_Main-Italic.woff +0 -0
  94. package/dist/resources/latex-fonts/KaTeX_Main-Italic.woff2 +0 -0
  95. package/dist/resources/latex-fonts/KaTeX_Main-Regular.woff +0 -0
  96. package/dist/resources/latex-fonts/KaTeX_Main-Regular.woff2 +0 -0
  97. package/dist/resources/latex-fonts/KaTeX_Math-BoldItalic.woff +0 -0
  98. package/dist/resources/latex-fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  99. package/dist/resources/latex-fonts/KaTeX_Math-Italic.woff +0 -0
  100. package/dist/resources/latex-fonts/KaTeX_Math-Italic.woff2 +0 -0
  101. package/dist/resources/latex-fonts/KaTeX_SansSerif-Bold.woff +0 -0
  102. package/dist/resources/latex-fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  103. package/dist/resources/latex-fonts/KaTeX_SansSerif-Italic.woff +0 -0
  104. package/dist/resources/latex-fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  105. package/dist/resources/latex-fonts/KaTeX_SansSerif-Regular.woff +0 -0
  106. package/dist/resources/latex-fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  107. package/dist/resources/latex-fonts/KaTeX_Script-Regular.woff +0 -0
  108. package/dist/resources/latex-fonts/KaTeX_Script-Regular.woff2 +0 -0
  109. package/dist/resources/latex-fonts/KaTeX_Size1-Regular.woff +0 -0
  110. package/dist/resources/latex-fonts/KaTeX_Size1-Regular.woff2 +0 -0
  111. package/dist/resources/latex-fonts/KaTeX_Size2-Regular.woff +0 -0
  112. package/dist/resources/latex-fonts/KaTeX_Size2-Regular.woff2 +0 -0
  113. package/dist/resources/latex-fonts/KaTeX_Size3-Regular.woff +0 -0
  114. package/dist/resources/latex-fonts/KaTeX_Size3-Regular.woff2 +0 -0
  115. package/dist/resources/latex-fonts/KaTeX_Size4-Regular.woff +0 -0
  116. package/dist/resources/latex-fonts/KaTeX_Size4-Regular.woff2 +0 -0
  117. package/dist/resources/latex-fonts/KaTeX_Typewriter-Regular.woff +0 -0
  118. package/dist/resources/latex-fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  119. package/dist/resources/latex-fonts/OFL.txt +102 -0
  120. package/dist/resources/latex-fonts/Sans/cmun-sans.css +30 -0
  121. package/dist/resources/latex-fonts/Sans/cmunsi.woff +0 -0
  122. package/dist/resources/latex-fonts/Sans/cmunso.woff +0 -0
  123. package/dist/resources/latex-fonts/Sans/cmunss.woff +0 -0
  124. package/dist/resources/latex-fonts/Sans/cmunsx.woff +0 -0
  125. package/dist/resources/latex-fonts/Serif/cmun-serif.css +30 -0
  126. package/dist/resources/latex-fonts/Serif/cmunbi.woff +0 -0
  127. package/dist/resources/latex-fonts/Serif/cmunbx.woff +0 -0
  128. package/dist/resources/latex-fonts/Serif/cmunrm.woff +0 -0
  129. package/dist/resources/latex-fonts/Serif/cmunti.woff +0 -0
  130. package/dist/resources/latex-fonts/Serif Slanted/cmun-serif-slanted.css +14 -0
  131. package/dist/resources/latex-fonts/Serif Slanted/cmunbl.woff +0 -0
  132. package/dist/resources/latex-fonts/Serif Slanted/cmunsl.woff +0 -0
  133. package/dist/resources/latex-fonts/Typewriter/cmun-typewriter.css +30 -0
  134. package/dist/resources/latex-fonts/Typewriter/cmunit.woff +0 -0
  135. package/dist/resources/latex-fonts/Typewriter/cmuntb.woff +0 -0
  136. package/dist/resources/latex-fonts/Typewriter/cmuntt.woff +0 -0
  137. package/dist/resources/latex-fonts/Typewriter/cmuntx.woff +0 -0
  138. package/dist/resources/latex-fonts/Typewriter Slanted/cmun-typewriter-slanted.css +6 -0
  139. package/dist/resources/latex-fonts/Typewriter Slanted/cmunst.woff +0 -0
  140. package/dist/resources/latex-fonts/cmu.css +13 -0
  141. package/dist/resources/latex-katex.css +1079 -0
  142. package/dist/resources/licenses.txt +131 -0
  143. package/dist/resources/reader.css +244 -0
  144. package/dist/resources/viewers.css +3 -0
  145. package/dist/rolldown-runtime-B4iAMlE-.mjs +35 -0
  146. package/package.json +40 -0
@@ -0,0 +1,816 @@
1
+ @import url("latex-fonts/cmu.css");
2
+
3
+ /*******************/
4
+ /* default lengths */
5
+ /*******************/
6
+
7
+ :root, :host {
8
+ --size: 10pt;
9
+ --line-height: 1.2;
10
+
11
+ /* --linewidth makes no sense here; it is the width of the line in the current environment */
12
+
13
+ --paperwidth: 100%; /* paper is the browser window */
14
+
15
+ /* TeX's even/oddsidemargin are not available in CSS, the HtmlGenerator translates the relevant lengths
16
+ * to marginleftwidth, marginrightwidth, and textwidth, as well as marginparwidth - all relative to the paper.
17
+ * So if a fixed width page is desired, simply set --paperwidth to an absolute value.
18
+ */
19
+
20
+ --parindent: 1.5em;
21
+ --parskip: 0px; /* needs to be a length, otherwise calc(2px + var(--parskip)) will return 0 */
22
+
23
+ --smallskipamount: 0.3rem;
24
+ --medskipamount: 0.6rem;
25
+ --bigskipamount: 1.2rem;
26
+
27
+ --listparindent: 0px;
28
+ --itemindent: 0px;
29
+
30
+ --leftmargini: 2.5em;
31
+ --leftmarginii: 2.2em;
32
+ --leftmarginiii: 1.87em;
33
+ --leftmarginiv: 1.7em;
34
+ --leftmarginv: 1em;
35
+ --leftmarginvi: 1em;
36
+
37
+ --leftmargin: var(--leftmargini);
38
+
39
+ --labelsep: 0.5rem;
40
+
41
+ --fboxrule: 0.4pt;
42
+ --fboxsep: 3pt;
43
+
44
+ /* multicols */
45
+ --columnwidth: ;
46
+
47
+ --columnsep: 35pt;
48
+ --columnseprule: 0pt;
49
+ --columnseprulecolor: black;
50
+
51
+ --multicolsep: 12pt;
52
+ }
53
+
54
+
55
+ .twocolumn {
56
+ --parindent: 1em;
57
+
58
+ --marginparsep: 1rem;
59
+
60
+ --leftmargini: 2em;
61
+ --leftmarginv: 0.5em;
62
+ --leftmarginvi: 0.5em;
63
+ }
64
+
65
+
66
+ .list {
67
+ --topsep: 0.8rem;
68
+ --parsep: 0.4rem;
69
+ --itemsep: 0.4rem;
70
+ --leftmargin: var(--leftmargini);
71
+ }
72
+
73
+ .list .list {
74
+ --topsep: 0.4rem;
75
+ --parsep: 0.2rem;
76
+ --itemsep: var(--parsep);
77
+ --leftmargin: var(--leftmarginii);
78
+ }
79
+
80
+ .list .list .list {
81
+ --topsep: 0.2rem;
82
+ --parsep: 0;
83
+ --itemsep: var(--topsep);
84
+ --leftmargin: var(--leftmarginiii);
85
+ }
86
+
87
+ .list .list .list .list {
88
+ --topsep: 0;
89
+ --leftmargin: var(--leftmarginiv);
90
+ }
91
+
92
+ .list .list .list .list .list {
93
+ --leftmargin: var(--leftmarginv);
94
+ }
95
+
96
+ .list .list .list .list .list .list {
97
+ --leftmargin: var(--leftmarginvi);
98
+ }
99
+
100
+
101
+
102
+ /***************/
103
+ /* page layout */
104
+ /***************/
105
+
106
+ /* .page is the element when used as a web component */
107
+ body, .page {
108
+ display: grid;
109
+
110
+ grid-template-columns: [margin-left] var(--marginleftwidth) [body] var(--textwidth) [margin-right] var(--marginrightwidth);
111
+ grid-template-rows: auto;
112
+
113
+ margin: 0;
114
+ padding: 0;
115
+
116
+ max-width: var(--paperwidth); /* elements wider than this overflow, but don't increase bodywidth */
117
+ min-width: var(--paperwidth);
118
+ }
119
+
120
+
121
+ /* LaTeX page body */
122
+ .body {
123
+ grid-column: body;
124
+ grid-row: 1;
125
+ }
126
+
127
+ /* LaTeX page margins */
128
+ .margin-left {
129
+ grid-column: margin-left;
130
+ grid-row: 1;
131
+ justify-self: end;
132
+
133
+ display: flex;
134
+ }
135
+
136
+ .margin-right {
137
+ grid-column: margin-right;
138
+ grid-row: 1;
139
+ justify-self: start;
140
+
141
+ display: flex;
142
+ }
143
+
144
+ .marginpar {
145
+ width: var(--marginparwidth); /* ideally in percent relative to margin */
146
+ min-width: var(--marginparwidth); /* min-width if in grid/flex container, to force this width */
147
+
148
+ margin-left: var(--marginparsep);
149
+ margin-right: var(--marginparsep);
150
+ }
151
+
152
+ .marginpar > * {
153
+ padding-bottom: var(--marginparpush); /* use padding, which is included in offsetHeight, margin is not */
154
+ }
155
+
156
+
157
+ /* columns */
158
+ .onecolumn {
159
+ column-count: 1;
160
+ }
161
+
162
+ .twocolumn {
163
+ column-count: 2;
164
+ }
165
+
166
+ .multicols {
167
+ margin-top: var(--multicolsep);
168
+ margin-bottom: var(--multicolsep);
169
+
170
+ column-gap: var(--columnsep);
171
+ column-rule: var(--columnseprule) solid var(--columnseprulecolor);
172
+ column-fill: balance;
173
+ }
174
+
175
+ .span-cols {
176
+ column-span: all;
177
+ }
178
+
179
+
180
+ /*********/
181
+ /* fonts */
182
+ /*********/
183
+
184
+ html, .page {
185
+ font-family: "Computer Modern Serif", serif;
186
+ font-size: var(--size);
187
+
188
+ text-align: justify;
189
+ line-height: var(--line-height);
190
+ hyphens: manual;
191
+ }
192
+
193
+ .katex {
194
+ font-size: 1em !important;
195
+ }
196
+
197
+ .katex,
198
+ .katex .mainrm,
199
+ .katex .mathit,
200
+ .katex .mathbf {
201
+ font-family: "Computer Modern Serif" !important; /* for KaTeX_Main */
202
+ }
203
+
204
+ .katex .mathdefault,
205
+ .katex .boldsymbol {
206
+ font-family: "Computer Modern Serif" !important; /* for KaTeX_Math */
207
+ }
208
+
209
+ .katex .mathsf,
210
+ .katex .textsf,
211
+ .katex .mathboldsf,
212
+ .katex .textboldsf,
213
+ .katex .mathitsf,
214
+ .katex .textitsf {
215
+ font-family: "Computer Modern Sans" !important; /* for KaTeX_SansSerif */
216
+ }
217
+
218
+
219
+
220
+ /* family */
221
+ .rm {
222
+ font-family: "Computer Modern Serif", serif;
223
+ font-variant-ligatures: normal;
224
+ }
225
+ .sf {
226
+ font-family: "Computer Modern Sans", sans-serif;
227
+ font-variant-ligatures: normal;
228
+ }
229
+ .tt {
230
+ font-family: "Computer Modern Typewriter", monospace;
231
+ font-variant-ligatures: none;
232
+ }
233
+
234
+ /* weight */
235
+ .md {
236
+ font-weight: normal;
237
+ }
238
+
239
+ .bf {
240
+ font-weight: bold;
241
+ }
242
+
243
+ /* shape - LaTeX doesn't support slanted small-caps by default */
244
+ .up {
245
+ font-family: "Computer Modern Serif", serif;
246
+ font-style: normal;
247
+ font-variant-caps: normal;
248
+ }
249
+
250
+ .it {
251
+ font-style: italic;
252
+ font-variant-caps: normal;
253
+ }
254
+
255
+ .sl {
256
+ font-family: "Computer Modern Serif Slanted";
257
+ font-style: oblique;
258
+ font-variant-caps: normal;
259
+ }
260
+
261
+ .sf.sl {
262
+ font-family: "Computer Modern Sans", sans-serif;
263
+ font-style: oblique;
264
+ font-variant-caps: normal;
265
+ }
266
+
267
+ .tt.sl {
268
+ font-family: "Computer Modern Typewriter Slanted", monospace;
269
+ font-style: oblique;
270
+ font-variant-caps: normal;
271
+ }
272
+
273
+ .sc {
274
+ font-family: "Computer Modern Serif", serif;
275
+ font-style: normal;
276
+ font-variant-caps: small-caps;
277
+ }
278
+
279
+
280
+
281
+
282
+ /* size */
283
+
284
+ .tiny {
285
+ font-size: .5rem;
286
+ }
287
+
288
+ .scriptsize {
289
+ font-size: .7rem;
290
+ }
291
+
292
+ .footnotesize {
293
+ font-size: .82rem;
294
+ }
295
+
296
+ .small {
297
+ font-size: .91rem;
298
+ }
299
+
300
+ .normalsize {
301
+ font-size: 1rem;
302
+ }
303
+
304
+ .large {
305
+ font-size: 1.2rem;
306
+ }
307
+
308
+ .Large {
309
+ font-size: 1.4rem;
310
+ }
311
+
312
+ .LARGE {
313
+ font-size: 1.7rem;
314
+ }
315
+
316
+ .huge {
317
+ font-size: 2rem;
318
+ }
319
+
320
+ .Huge {
321
+ font-size: 2.5rem;
322
+ }
323
+
324
+
325
+
326
+
327
+ /**************/
328
+ /* sectioning */
329
+ /**************/
330
+
331
+ h1, h2, h3, h4 {
332
+ /* \normalfont */
333
+ font-family: "Computer Modern Serif", serif;
334
+ font-style: normal;
335
+ font-variant-caps: normal;
336
+
337
+ text-align: left;
338
+ }
339
+
340
+
341
+ .titlepage {
342
+ height: 100vh;
343
+ min-height: 20rem;
344
+ }
345
+
346
+ .title {
347
+ font-size: 1.7rem; /* LARGE */
348
+ }
349
+
350
+ .author, .date {
351
+ font-size: 1.2rem; /* large */
352
+ }
353
+
354
+
355
+
356
+ /*************/
357
+ /* alignment */
358
+ /*************/
359
+
360
+ .centering, .list.center {
361
+ text-indent: 0;
362
+ text-align: center;
363
+ }
364
+
365
+ .raggedright, .list.flushleft {
366
+ text-indent: 0;
367
+ text-align: left;
368
+ }
369
+
370
+ .raggedleft, .list.flushright {
371
+ text-indent: 0;
372
+ text-align: right;
373
+ }
374
+
375
+
376
+ /* alignment environments are lists (trivlist), so margin has to be removed */
377
+
378
+ .list.center, .list.flushleft, .list.flushright {
379
+ margin-left: 0 !important;
380
+ }
381
+
382
+ /* a list on its own justifies */
383
+ .list {
384
+ text-align: justify;
385
+ }
386
+
387
+
388
+
389
+ /*********/
390
+ /* boxes */
391
+ /*********/
392
+
393
+
394
+ .hbox {
395
+ display: inline-block;
396
+ white-space: nowrap;
397
+ text-indent: 0;
398
+ }
399
+
400
+ .phantom {
401
+ visibility: hidden;
402
+ }
403
+
404
+
405
+ .llap {
406
+ display: inline-flex;
407
+ flex-direction: column;
408
+ width: 0;
409
+ align-items: flex-end;
410
+ }
411
+
412
+ .clap {
413
+ display: inline-flex;
414
+ flex-direction: column;
415
+ width: 0;
416
+ align-items: center;
417
+ }
418
+
419
+ .rlap {
420
+ display: inline-block;
421
+ width: 0;
422
+ }
423
+
424
+
425
+ .stretch {
426
+ display: inline-flex;
427
+ flex-direction: row;
428
+
429
+ justify-content: stretch;
430
+ align-items: stretch;
431
+ }
432
+
433
+ .smash {
434
+ display: inline-flex;
435
+ flex-direction: row;
436
+ height: 0px;
437
+ align-items: flex-end;
438
+ }
439
+
440
+
441
+ /* a class to align text to the baseline, and a class to locate the baseline */
442
+
443
+ .align-baseline {
444
+ line-height: 0;
445
+ }
446
+
447
+ .align-baseline::after {
448
+ content: '';
449
+ display: inline-block;
450
+ }
451
+
452
+ .mpbaseline {
453
+ line-height: 0;
454
+ width: 0;
455
+ height: 0;
456
+ display: inline-block;
457
+ }
458
+
459
+ /* parbox/minipage */
460
+
461
+ .parbox {
462
+ display: inline-block;
463
+ text-indent: 0;
464
+ }
465
+
466
+ /* pos: t (top) */
467
+ .p-t {
468
+ display: inline-flex;
469
+ }
470
+
471
+ /* pos: c (center) */
472
+ .p-c {
473
+ vertical-align: middle;
474
+ }
475
+
476
+ /* pos: b (bottom) */
477
+ .p-b {
478
+ /* default */
479
+ vertical-align: baseline; /* TODO: what if llap inside?? */
480
+ }
481
+
482
+
483
+
484
+ /* if we want a fixed height *and* bottom alignment */
485
+ .pbh.p-b {
486
+ vertical-align: text-bottom;
487
+ }
488
+
489
+
490
+ /* the following are only possible if height was given, too */
491
+
492
+ .p-t.p-ct {
493
+ vertical-align: baseline;
494
+ }
495
+
496
+ .p-t.p-cc {
497
+ vertical-align: text-top;
498
+ align-items: center;
499
+ }
500
+
501
+ /* pos: top, inner-pos: bottom */
502
+ .p-t.p-cb {
503
+ vertical-align: text-top;
504
+ display: inline-flex;
505
+ align-items: flex-end;
506
+ }
507
+
508
+ /* pos and inner-pos: center */
509
+ .p-c.p-cc {
510
+ display: inline-flex;
511
+ align-items: center;
512
+ }
513
+
514
+ .p-c.p-cb {
515
+ display: inline-flex;
516
+ align-items: flex-end;
517
+ }
518
+
519
+
520
+ .p-b.p-ct {
521
+ display: inline-flex;
522
+ align-items: flex-start;
523
+ }
524
+
525
+ .p-b.p-cc {
526
+ display: inline-flex;
527
+ align-items: center;
528
+ }
529
+
530
+ /* pos: bottom, inner-pos: bottom */
531
+ .p-b.p-cb {
532
+ vertical-align: baseline;
533
+ display: inline-flex;
534
+ align-items: flex-end;
535
+ }
536
+
537
+ .p-b.p-cb::before {
538
+ /* move the baseline to the bottom of a flex item */
539
+ content: "x";
540
+ display: inline-block;
541
+ width: 0;
542
+ visibility: hidden;
543
+ }
544
+
545
+
546
+
547
+
548
+ .underline {
549
+ border-bottom: 0.4pt solid;
550
+ line-height: 1;
551
+ }
552
+
553
+
554
+ .frame {
555
+ padding: var(--fboxsep);
556
+ border: var(--fboxrule) solid;
557
+ margin-top: 2px;
558
+ margin-bottom: 2px;
559
+ }
560
+
561
+
562
+ /****************/
563
+ /* environments */
564
+ /****************/
565
+
566
+ .pframe {
567
+ border-style: solid;
568
+ }
569
+
570
+ .picture {
571
+ display: inline-block; /* so that it can be given a fixed size */
572
+ position: relative;
573
+ vertical-align: bottom; /* needed for \put */
574
+ text-indent: 0; /* pictures in a paragraph still should not have indentation */
575
+ /* width: 0; */
576
+ }
577
+
578
+ /* the coordinate system of the picture */
579
+ .picture-canvas {
580
+ display: flex;
581
+ align-items: flex-end;
582
+ position: absolute;
583
+ left: 0;
584
+ bottom: 0;
585
+ }
586
+
587
+ /* cannot do this, it pushes the whole picture up by the depth of the font :(
588
+ .picture-canvas > .hbox::after {
589
+ content: "";
590
+ display: inline;
591
+ }
592
+ */
593
+
594
+
595
+ /* objects in a picture */
596
+ .put-obj {
597
+ display: block;
598
+ position: relative;
599
+ line-height: 0;
600
+ /* width: 0; */ /* picture objects only have a height, but we cannot set the
601
+ width to 0 directly because it breaks vertical baseline alignment of text */
602
+ }
603
+
604
+ /* make text align on the baseline in \put - needs line-height: 0 in .put-obj! */
605
+ .put-obj:after {
606
+ content: '';
607
+ display: inline-block;
608
+ }
609
+
610
+
611
+ .strut {
612
+ display: block;
613
+ }
614
+
615
+ .picture-object {
616
+ position: absolute;
617
+ display: flex; /* to align text and boxes at the bottom */
618
+ /* line-height: 0px; works for boxes, but breaks text */
619
+ }
620
+
621
+
622
+ /**********/
623
+ /* macros */
624
+ /**********/
625
+
626
+ code {
627
+ white-space: pre;
628
+ }
629
+
630
+
631
+ /**********/
632
+ /* spaces */
633
+ /**********/
634
+
635
+ /* reset */
636
+ p, ul, ol, dl, div {
637
+ margin: 0;
638
+ padding: 0;
639
+ }
640
+
641
+ p {
642
+ margin-top: var(--parskip);
643
+ text-indent: var(--parindent);
644
+ }
645
+
646
+
647
+ h1 + p, h1 + * p:first-child,
648
+ h2 + p, h2 + * p:first-child,
649
+ h3 + p, h3 + * p:first-child,
650
+ h4 + p, h4 + * p:first-child,
651
+ .noindent,
652
+ .continue {
653
+ text-indent: 0;
654
+ }
655
+
656
+
657
+
658
+
659
+ /* predefined horizontal spaces */
660
+ .negthinspace {
661
+ margin-left: -0.16666667em;
662
+ }
663
+
664
+
665
+ /* vertical space - insert the actual space (negative or positive) with margin-bottom */
666
+ .vspace {
667
+ display: block;
668
+ }
669
+
670
+ /* vertical space that forces a linebreak */
671
+ .breakspace {
672
+ display: table;
673
+ }
674
+
675
+ /* inline vertical space - this cannot be negative */
676
+ .vspace-inline {
677
+ display: inline-block;
678
+ height: calc(1em * var(--line-height)); /* full maximum height, including the leading: line-height * font-size */
679
+ vertical-align: top; /* if bottom is used, space could be inserted above this line of text */
680
+ }
681
+
682
+
683
+ /* predefined vertical spaces */
684
+ .smallskip {
685
+ margin-bottom: var(--smallskipamount);
686
+ }
687
+
688
+ .medskip {
689
+ margin-bottom: var(--medskipamount);
690
+ }
691
+
692
+ .bigskip {
693
+ margin-bottom: var(--bigskipamount);
694
+ }
695
+
696
+
697
+ /****************/
698
+ /* environments */
699
+ /****************/
700
+
701
+
702
+ /* lists */
703
+
704
+ .list {
705
+ margin: calc(var(--topsep) + var(--parskip)) 0;
706
+ margin-left: var(--leftmargin);
707
+ }
708
+
709
+ .list p:first-of-type {
710
+ text-indent: var(--itemindent);
711
+ }
712
+
713
+ .list p + p {
714
+ margin-top: var(--parsep);
715
+ text-indent: var(--listparindent);
716
+ }
717
+
718
+ .list li + li,
719
+ .list dd + dt {
720
+ margin-top: calc(var(--itemsep) + var(--parsep));
721
+ }
722
+
723
+
724
+ /* labels */
725
+
726
+ li {
727
+ list-style: none;
728
+ }
729
+
730
+ /* label should be next to the item, so the first element after the label needs to be inline */
731
+ .itemlabel + * {
732
+ display: inline;
733
+ }
734
+
735
+ .itemlabel > * {
736
+ position: relative;
737
+ right: var(--labelsep);
738
+ }
739
+
740
+
741
+
742
+
743
+ /* description */
744
+
745
+ dd, dd > p:first-child {
746
+ display: inline;
747
+ }
748
+
749
+ /* start a new line after dd and before dt */
750
+ dd::after {
751
+ content: "";
752
+ display: block;
753
+ }
754
+
755
+
756
+ dt {
757
+ display: inline-block;
758
+ font-weight: bold;
759
+ }
760
+
761
+ .list dt {
762
+ margin-left: calc(-1 * var(--leftmargin));
763
+ }
764
+
765
+ dd {
766
+ margin-left: var(--labelsep);
767
+ }
768
+
769
+
770
+
771
+ /* quote, quotation, verse */
772
+
773
+ .quote, .quotation, .verse {
774
+ margin-left: var(--leftmargin);
775
+ margin-right: var(--leftmargin);
776
+ }
777
+
778
+ .quotation {
779
+ --parsep: 0px;
780
+ --itemindent: 1.5em;
781
+ --listparindent: var(--itemindent);
782
+ }
783
+
784
+ .verse {
785
+ text-align: left;
786
+
787
+ margin-left: calc(1.5em + var(--leftmargin));
788
+ --itemindent: -1.5em;
789
+ --listparindent: var(--itemindent);
790
+ }
791
+
792
+
793
+
794
+
795
+
796
+ /* the TeX and LaTeX logos */
797
+
798
+ span.tex,
799
+ span.latex {
800
+ text-transform: uppercase;
801
+ }
802
+
803
+ span.latex > .a {
804
+ font-size: 0.8em;
805
+ vertical-align: 0.2em;
806
+ margin-left: -0.45em;
807
+ margin-right: -0.15em;
808
+ }
809
+
810
+ span.tex > .e,
811
+ span.latex > .e {
812
+ margin-left: -0.2em;
813
+ margin-right: -0.2em;
814
+ position: relative;
815
+ top: 0.45ex;
816
+ }