| 1 |
/* asmeconf-style.css |
| 2 |
|
| 3 |
v1.01, 2026-01-10 |
| 4 |
Author: John H. Lienhard |
| 5 |
License: MIT License, https://ctan.org/license/mit |
| 6 |
This css code styles the HTML rendering of asmeconf class |
| 7 |
*/ |
| 8 |
|
| 9 |
|
| 10 |
/* --- Resilience & typography --- */ |
| 11 |
|
| 12 |
*, *::before, *::after { box-sizing: border-box; } |
| 13 |
|
| 14 |
html |
| 15 |
{ |
| 16 |
-webkit-text-size-adjust: 100%; |
| 17 |
text-size-adjust: 100%; |
| 18 |
} |
| 19 |
:root |
| 20 |
{ |
| 21 |
--ui-sans: "Noto Sans", "DejaVu Sans", "Arial Unicode MS", Arial, "Helvetica Neue", Helvetica, sans-serif; |
| 22 |
--math-fallback: "Noto Sans Math", "LeteSansMath-Bold", "STIX Two Math", "XITS Math", "Cambria Math", serif; |
| 23 |
} |
| 24 |
|
| 25 |
/* These settings partially mimic the default printed page size and width. Aims for sans serif font. */ |
| 26 |
body { |
| 27 |
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; |
| 28 |
font-size: 12pt; |
| 29 |
line-height: 1.2; /* ~14pt leading */ |
| 30 |
margin: 36pt auto; /* ~half-inch margins left/right, centered */ |
| 31 |
max-width: min(75ch, 46rem); /* ~75 characters per line; 46rem ≈ ~92pt*6.1, steadier across fonts */ |
| 32 |
hyphens: auto; |
| 33 |
overflow-wrap: anywhere; /* protect narrow columns */ |
| 34 |
hanging-punctuation: first allow-end; /* improve ragged-right when present */ |
| 35 |
} |
| 36 |
|
| 37 |
|
| 38 |
/* Adjust fonts of title, prevent hyphenation */ |
| 39 |
|
| 40 |
div[data-pdf-se-type="Title"] |
| 41 |
{ |
| 42 |
font-size: 20pt; |
| 43 |
font-weight: 700; /* bold */ |
| 44 |
hyphens: none; |
| 45 |
overflow-wrap: normal; |
| 46 |
word-break: keep-all; |
| 47 |
margin-top: 2em; |
| 48 |
} |
| 49 |
|
| 50 |
|
| 51 |
/* Reduce paragraph spacing inside Conference_information only */ |
| 52 |
|
| 53 |
div[data-pdf-se-type-original="Conference_information"] p |
| 54 |
{ |
| 55 |
margin-top: 0.2em; |
| 56 |
margin-bottom: 0.2em; |
| 57 |
} |
| 58 |
|
| 59 |
div[data-pdf-se-type-original="Paper_number"] p |
| 60 |
{ |
| 61 |
font-weight: 600; |
| 62 |
font-size: 14pt; |
| 63 |
} |
| 64 |
|
| 65 |
/* Affiliation block with 3em horizontal padding */ |
| 66 |
|
| 67 |
div[data-pdf-se-type-original="Affiliation"] |
| 68 |
{ |
| 69 |
padding-left: 3em; |
| 70 |
padding-right: 3em; |
| 71 |
} |
| 72 |
|
| 73 |
/* Author_affiliation block with reduced par sep (for grid layout) */ |
| 74 |
|
| 75 |
div[data-pdf-se-type-original="Author_affiliation"] p |
| 76 |
{ |
| 77 |
margin-top: 0.2em; |
| 78 |
margin-bottom: 0.2em; |
| 79 |
} |
| 80 |
|
| 81 |
/* Period and breakable space before 2nd+ footnotemark spans in Affiliation block */ |
| 82 |
|
| 83 |
div[data-pdf-se-type-original="Affiliation"] |
| 84 |
span[data-pdf-se-type-original="footnotemark"][data-pdf-se-type="Lbl"]:nth-of-type(n+2)::before |
| 85 |
{ |
| 86 |
content: ". "; |
| 87 |
position: relative; |
| 88 |
top: 0.4em; |
| 89 |
margin-right: 0.4em; |
| 90 |
} |
| 91 |
|
| 92 |
/* Heading font weights */ |
| 93 |
|
| 94 |
h1[data-pdf-se-type="H1"], |
| 95 |
h1[data-pdf-se-type-original="chapter"], |
| 96 |
h2[data-pdf-se-type="H2"], |
| 97 |
h3[data-pdf-se-type="H3"], |
| 98 |
h4[data-pdf-se-type="H4"] |
| 99 |
{ |
| 100 |
font-weight: 700; |
| 101 |
} |
| 102 |
|
| 103 |
/* Heading sizes */ |
| 104 |
|
| 105 |
h1[data-pdf-se-type="H1"], |
| 106 |
h1[data-pdf-se-type-original="chapter"] { font-size: 18pt; } |
| 107 |
h2[data-pdf-se-type="H2"] { font-size: 16pt; } |
| 108 |
h3[data-pdf-se-type="H3"] { font-size: 14pt; } |
| 109 |
h4[data-pdf-se-type="H4"] { font-size: 12pt; } |
| 110 |
|
| 111 |
/* Increase vertical space above H1 headings */ |
| 112 |
|
| 113 |
h1[data-pdf-se-type="H1"], |
| 114 |
h1[data-pdf-se-type-original="chapter"] |
| 115 |
{ |
| 116 |
margin-top: 2em; |
| 117 |
} |
| 118 |
|
| 119 |
|
| 120 |
/* Numbered chapter and section titles are composed of two spans. The margin creates space between them. */ |
| 121 |
|
| 122 |
h1[data-pdf-se-type="H1"] > span:first-of-type { margin-inline-end: 0.75em; } |
| 123 |
h2[data-pdf-se-type="H2"] > span:first-of-type, |
| 124 |
h3[data-pdf-se-type="H3"] > span:first-of-type, |
| 125 |
h4[data-pdf-se-type="H4"] > span:first-of-type { margin-inline-end: 0.5em; } |
| 126 |
|
| 127 |
|
| 128 |
/* Tables */ |
| 129 |
|
| 130 |
/* Increase the default separation of all table columns */ |
| 131 |
|
| 132 |
table[data-pdf-se-type="Table"] |
| 133 |
{ |
| 134 |
border-collapse: separate; |
| 135 |
border-spacing: 0; |
| 136 |
} |
| 137 |
|
| 138 |
/* Center data tables only (leave ARIA presentation tables alone) */ |
| 139 |
table[data-pdf-se-type="Table"]:not(.ARIA-role-presentation) |
| 140 |
{ |
| 141 |
margin-left: auto; |
| 142 |
margin-right: auto; |
| 143 |
margin-top: 0.75em; |
| 144 |
margin-bottom: 0.75em; |
| 145 |
} |
| 146 |
|
| 147 |
/* Center captions for non-ARIA data tables only */ |
| 148 |
table[data-pdf-se-type="Table"]:not(.ARIA-role-presentation) + div[data-pdf-se-type="Caption"], |
| 149 |
div[data-pdf-se-type="Caption"] + table[data-pdf-se-type="Table"]:not(.ARIA-role-presentation) |
| 150 |
{ |
| 151 |
text-align: center; |
| 152 |
margin-left: auto; |
| 153 |
margin-right: auto; |
| 154 |
} |
| 155 |
|
| 156 |
/* Figure captions */ |
| 157 |
aside[data-pdf-se-type="Aside"] > div[data-pdf-se-type="Caption"] |
| 158 |
{ |
| 159 |
max-width: 80%; |
| 160 |
margin: 0.5em auto 0; |
| 161 |
text-align: center; |
| 162 |
} |
| 163 |
|
| 164 |
table[data-pdf-se-type="Table"] th + th, |
| 165 |
table[data-pdf-se-type="Table"] td + td |
| 166 |
{ |
| 167 |
padding-left: 1em; |
| 168 |
} |
| 169 |
|
| 170 |
/* Make all table header cells center-aligned */ |
| 171 |
|
| 172 |
table[data-pdf-se-type="Table"] th |
| 173 |
{ |
| 174 |
text-align: center; |
| 175 |
} |
| 176 |
|
| 177 |
/* Bold math in table header cells */ |
| 178 |
th math, th math * |
| 179 |
{ |
| 180 |
font-weight: 700 !important; |
| 181 |
font-style: normal !important; /* prevents italics on symbols */ |
| 182 |
font-size: 14pt; /* seems to match bold text better than 12pt */ |
| 183 |
} |
| 184 |
|
| 185 |
/* Keep presentation tables (not data tables) at left margin */ |
| 186 |
.ARIA-role-presentation[data-pdf-se-type="Table"] |
| 187 |
{ |
| 188 |
padding-left: 0; |
| 189 |
border-collapse: collapse; |
| 190 |
} |
| 191 |
|
| 192 |
.ARIA-role-presentation[data-pdf-se-type="Table"] td + td, |
| 193 |
.ARIA-role-presentation[data-pdf-se-type="Table"] th + th |
| 194 |
{ |
| 195 |
padding-left: 0.5em; |
| 196 |
padding-right: 0.5em; |
| 197 |
} |
| 198 |
|
| 199 |
|
| 200 |
/* Caption rules for div[data-pdf-se-type="Caption"] only */ |
| 201 |
|
| 202 |
/* 1) Base caption container styling (UI sans, fall back to math; bold; preserve layout) */ |
| 203 |
div[data-pdf-se-type="Caption"] |
| 204 |
{ |
| 205 |
font-family: var(--ui-sans), var(--math-fallback) !important; |
| 206 |
font-weight: 700 !important; /* caption text is bold */ |
| 207 |
font-style: normal !important; |
| 208 |
line-height: inherit; |
| 209 |
text-align: inherit; /* preserve existing alignment rules */ |
| 210 |
} |
| 211 |
|
| 212 |
/* 2) Force math fallback + bold for math/formula-like children and SVG text */ |
| 213 |
div[data-pdf-se-type="Caption"] |
| 214 |
:is( |
| 215 |
math, |
| 216 |
math *, |
| 217 |
.inline, |
| 218 |
span[data-pdf-se-type="Formula"], |
| 219 |
.formula, |
| 220 |
.math, |
| 221 |
.eq, |
| 222 |
svg text |
| 223 |
) |
| 224 |
{ |
| 225 |
font-family: var(--math-fallback) !important; |
| 226 |
font-weight: 700 !important; |
| 227 |
font-style: normal !important; |
| 228 |
line-height: 1 !important; |
| 229 |
} |
| 230 |
|
| 231 |
/* Keep caption label and text on same line, with a gap between them */ |
| 232 |
div[data-pdf-se-type="Caption"] |
| 233 |
{ |
| 234 |
display: inline-flex; |
| 235 |
flex-wrap: wrap; |
| 236 |
gap: 0.5em; |
| 237 |
align-items: baseline; |
| 238 |
} |
| 239 |
|
| 240 |
/* Keep the label unwrapped and give a small gap to the following paragraph */ |
| 241 |
div[data-pdf-se-type="Caption"] > [data-pdf-se-type="Lbl"] |
| 242 |
{ |
| 243 |
white-space: nowrap; /* prevent label from breaking to next line */ |
| 244 |
flex: 0 0 auto; /* don't let label grow or shrink */ |
| 245 |
margin-right: 0.5em; /* spacing between label and text */ |
| 246 |
} |
| 247 |
|
| 248 |
/* Make the caption paragraph a flexible item that can wrap. |
| 249 |
Use min-width:0 so it may shrink in a flex container. Remove default p margin. */ |
| 250 |
div[data-pdf-se-type="Caption"] > p[data-pdf-se-type="P"], |
| 251 |
div[data-pdf-se-type="Caption"] > .caption-text |
| 252 |
{ |
| 253 |
flex: 1 1 0%; |
| 254 |
min-width: 0; |
| 255 |
margin: 0; |
| 256 |
} |
| 257 |
|
| 258 |
/* Reduce space below figure captions */ |
| 259 |
div [data-pdf-se-type="Caption"] p |
| 260 |
{ |
| 261 |
margin-bottom: 0em; |
| 262 |
} |
| 263 |
|
| 264 |
/* Make doc-pagebreak vanish from layout but keep semantics (HTML5+) */ |
| 265 |
|
| 266 |
h1 [role="doc-pagebreak"], |
| 267 |
h2 [role="doc-pagebreak"], |
| 268 |
h3 [role="doc-pagebreak"], |
| 269 |
h4 [role="doc-pagebreak"], |
| 270 |
h5 [role="doc-pagebreak"], |
| 271 |
h6 [role="doc-pagebreak"] |
| 272 |
{ |
| 273 |
display: contents !important; |
| 274 |
margin: 0 !important; |
| 275 |
padding: 0 !important; |
| 276 |
} |
| 277 |
|
| 278 |
|
| 279 |
/* Math in section headings */ |
| 280 |
|
| 281 |
/* Style MathML identifiers, numbers, and text elements in section headings as bold sans-serif */ |
| 282 |
|
| 283 |
/* ---------- Consolidated heading rules (preserve heading font, supply math fallback) ---------- */ |
| 284 |
|
| 285 |
/* Math, inline formula wrappers and SVG text inside headings: |
| 286 |
- force math fallback font |
| 287 |
- request bold math face and normal style |
| 288 |
- inherit heading font-size and tighten line-height for math material */ |
| 289 |
:is(h1,h2,h3,h4,h5,h6,[data-pdf-se-type="Heading"]) |
| 290 |
:is( |
| 291 |
math, |
| 292 |
math *, |
| 293 |
.inline, |
| 294 |
span[data-pdf-se-type="Formula"], |
| 295 |
.formula, |
| 296 |
.math, |
| 297 |
.eq, |
| 298 |
svg text |
| 299 |
) |
| 300 |
{ |
| 301 |
font-family: var(--math-fallback) !important; |
| 302 |
font-weight: 700 !important; |
| 303 |
font-style: normal !important; |
| 304 |
line-height: 1 !important; |
| 305 |
font-size: inherit !important; |
| 306 |
} |
| 307 |
|
| 308 |
/* Global Math sizing: increase math size by default, overridden by the header rule above */ |
| 309 |
math |
| 310 |
{ |
| 311 |
font-size: 14pt; |
| 312 |
} |
| 313 |
|
| 314 |
@supports (font-size: clamp(1em, 2vw, 2em)) |
| 315 |
{ |
| 316 |
math { |
| 317 |
font-size: clamp(1.1em, 1em + 0.25vw, 1.17em); |
| 318 |
} |
| 319 |
} |
| 320 |
|
| 321 |
/* don't upscale math in captions */ |
| 322 |
:is(caption, figcaption, div[data-pdf-se-type="Caption"]) math |
| 323 |
{ |
| 324 |
font-size: inherit; |
| 325 |
} |
| 326 |
|
| 327 |
|
| 328 |
/* Footnotes */ |
| 329 |
|
| 330 |
/* inline footnotes with raised superscript */ |
| 331 |
|
| 332 |
div[data-pdf-se-type-original="footnote"] > span[data-pdf-se-type-original="footnotelabel"] |
| 333 |
{ |
| 334 |
font-weight: normal; |
| 335 |
vertical-align: super; |
| 336 |
font-size: 10pt; |
| 337 |
color: #1f4e79; |
| 338 |
} |
| 339 |
|
| 340 |
div[data-pdf-se-type-original="footnote"] [data-pdf-se-type="Part"] |
| 341 |
{ |
| 342 |
display: contents; |
| 343 |
} |
| 344 |
|
| 345 |
div[data-pdf-se-type-original="footnote"] { |
| 346 |
margin-bottom: 1em; |
| 347 |
line-height: 14pt; |
| 348 |
} |
| 349 |
|
| 350 |
div[data-pdf-se-type-original="footnote"] [data-pdf-se-type="Part"] > p[data-pdf-se-type="P"] |
| 351 |
{ |
| 352 |
display: inline; |
| 353 |
font-size: 10pt; |
| 354 |
font-weight: normal; |
| 355 |
color: #1f4e79; |
| 356 |
} |
| 357 |
|
| 358 |
span[data-pdf-se-type-original="footnotemark"] |
| 359 |
{ |
| 360 |
vertical-align: super; |
| 361 |
font-size: smaller; |
| 362 |
} |
| 363 |
|
| 364 |
/* If another footnote follows immediately, remove the extra gap (target: author footnotes) */ |
| 365 |
|
| 366 |
div[data-pdf-se-type-original="footnote"] |
| 367 |
+ div[data-pdf-se-type-original="footnote"] |
| 368 |
{ |
| 369 |
margin-top: -1em; |
| 370 |
} |
| 371 |
|
| 372 |
|
| 373 |
/* Description lists */ |
| 374 |
|
| 375 |
/* Description lists */ |
| 376 |
dl.description |
| 377 |
{ |
| 378 |
--hang: 3em; /* hanging width for dd paragraphs */ |
| 379 |
--gap: 0.5em; /* space between label and body */ |
| 380 |
margin: 0; |
| 381 |
padding: 0; |
| 382 |
} |
| 383 |
|
| 384 |
/* Each LI wrapper: contain float + add spacing between items */ |
| 385 |
dl.description > div |
| 386 |
{ |
| 387 |
display: flow-root; |
| 388 |
margin-bottom: 1em; /* 1em gap between list items */ |
| 389 |
} |
| 390 |
dl.description > div:last-child |
| 391 |
{ |
| 392 |
margin-bottom: 0; /* no extra space after final item */ |
| 393 |
} |
| 394 |
|
| 395 |
/* Label floats left; reserve hanging width + gap */ |
| 396 |
dl.description dt |
| 397 |
{ |
| 398 |
float: left; |
| 399 |
font-weight: 700; |
| 400 |
margin: 0 calc(var(--hang) + var(--gap)) 0 0; |
| 401 |
/* optional: prevent wrapping of label text */ |
| 402 |
/* white-space: nowrap; */ |
| 403 |
} |
| 404 |
|
| 405 |
/* Definition follows the float */ |
| 406 |
dl.description dd { margin: 0; } |
| 407 |
|
| 408 |
/* Ignore PDF wrapper divs */ |
| 409 |
dl.description dd > div { display: contents; } |
| 410 |
|
| 411 |
/* 3em hanging indent for body paragraphs */ |
| 412 |
dl.description dd p |
| 413 |
{ |
| 414 |
margin: 0; |
| 415 |
padding-left: var(--hang); |
| 416 |
text-indent: calc(var(--hang) * -1); |
| 417 |
} |
| 418 |
|
| 419 |
/* Additional paragraphs: same hanging + 1em vertical gap */ |
| 420 |
dl.description dd p + p { margin-top: 1em; } |
| 421 |
|
| 422 |
|
| 423 |
|
| 424 |
/* Reference list adjustments (may affect other lists) */ |
| 425 |
|
| 426 |
/* Flatten wrappers so label and reference text stay on the same line */ |
| 427 |
ul[data-pdf-se-type-original="list"] li[data-pdf-se-type="LI"] > [data-pdf-se-type="LBody"], |
| 428 |
ul[data-pdf-se-type-original="list"] li[data-pdf-se-type="LI"] > [data-pdf-se-type="LBody"] > [data-pdf-se-type="Part"] |
| 429 |
{ |
| 430 |
display: contents !important; |
| 431 |
} |
| 432 |
|
| 433 |
/* Keep first paragraph inline; later paragraphs break normally */ |
| 434 |
ul[data-pdf-se-type-original="list"] li[data-pdf-se-type="LI"] p[data-pdf-se-type="P"] |
| 435 |
{ |
| 436 |
display: inline; |
| 437 |
margin: 0; |
| 438 |
} |
| 439 |
ul[data-pdf-se-type-original="list"] li[data-pdf-se-type="LI"] p[data-pdf-se-type="P"] + p |
| 440 |
{ |
| 441 |
display: block; |
| 442 |
margin-top: 0.5em; |
| 443 |
} |
| 444 |
|
| 445 |
/* Add a space after each reference label */ |
| 446 |
ul[data-pdf-se-type-original="list"] li[data-pdf-se-type="LI"] > span[data-pdf-se-type="Lbl"]::after |
| 447 |
{ |
| 448 |
content: " "; |
| 449 |
} |
| 450 |
|
| 451 |
/* Reference block spacing — 1 em total, no hanging indent */ |
| 452 |
ul[data-pdf-se-type-original="list"] li[data-pdf-se-type="LI"] |
| 453 |
{ |
| 454 |
list-style: none; |
| 455 |
margin: 0 0 1em 0; /* increase bottom gap */ |
| 456 |
padding: 0; /* remove hanging indent */ |
| 457 |
text-indent: 0; /* ensure flush left */ |
| 458 |
} |
| 459 |
|
| 460 |
|
| 461 |
/* Nomenclature list — reduce item spacing (may affect other lists) */ |
| 462 |
|
| 463 |
ul.list[data-pdf-se-type-original="list"] li[data-pdf-se-type="LI"] |
| 464 |
{ |
| 465 |
margin-bottom: 0.25em; /* tighter vertical spacing */ |
| 466 |
} |
| 467 |
|
| 468 |
/* Flatten converter wrappers (already done in References css above) */ |
| 469 |
|
| 470 |
/* Keep labels inline with their text — fixed 0.5em space */ |
| 471 |
ul.list[data-pdf-se-type-original="list"] |
| 472 |
li[data-pdf-se-type="LI"] > span[data-pdf-se-type="Lbl"]::after |
| 473 |
{ |
| 474 |
content: ""; |
| 475 |
display: inline-block; |
| 476 |
width: 0.5em; |
| 477 |
} |
| 478 |
|
| 479 |
|
| 480 |
/* Other enumerated and itemized lists */ |
| 481 |
|
| 482 |
/* Label inline with first line, paragraphs preserved */ |
| 483 |
:where(ol[data-pdf-se-type-original="enumerate"], |
| 484 |
ul[data-pdf-se-type-original="itemize"]) |
| 485 |
li[data-pdf-se-type="LI"] |
| 486 |
{ |
| 487 |
display: flex; /* put label and body on the same row */ |
| 488 |
align-items: flex-start; /* align label with top of body */ |
| 489 |
column-gap: 0.5em; /* space between label and text */ |
| 490 |
margin-bottom: 0.25em; /* vertical separation between items */ |
| 491 |
} |
| 492 |
|
| 493 |
/* Label stays in the left column */ |
| 494 |
:where(ol[data-pdf-se-type-original="enumerate"], |
| 495 |
ul[data-pdf-se-type-original="itemize"]) |
| 496 |
li[data-pdf-se-type="LI"] > span[data-pdf-se-type="Lbl"] |
| 497 |
{ |
| 498 |
flex: 0 0 auto; /* no grow/shrink */ |
| 499 |
} |
| 500 |
|
| 501 |
/* Body flows in the right column; override inline-block from generator */ |
| 502 |
:where(ol[data-pdf-se-type-original="enumerate"], |
| 503 |
ul[data-pdf-se-type-original="itemize"]) |
| 504 |
li[data-pdf-se-type="LI"] > [data-pdf-se-type="LBody"] |
| 505 |
{ |
| 506 |
flex: 1 1 auto; |
| 507 |
display: block !important; /* ensures normal block flow */ |
| 508 |
min-width: 0; /* allow wrapping in flex item */ |
| 509 |
} |
| 510 |
|
| 511 |
/* Inner wrappers transparent to layout */ |
| 512 |
:where(ol[data-pdf-se-type-original="enumerate"], |
| 513 |
ul[data-pdf-se-type-original="itemize"]) |
| 514 |
li[data-pdf-se-type="LI"] > [data-pdf-se-type="LBody"] > [data-pdf-se-type="Part"] |
| 515 |
{ |
| 516 |
display: contents; |
| 517 |
} |
| 518 |
|
| 519 |
/* Keep paragraphs as blocks so breaks are preserved */ |
| 520 |
:where(ol[data-pdf-se-type-original="enumerate"], |
| 521 |
ul[data-pdf-se-type-original="itemize"]) |
| 522 |
li[data-pdf-se-type="LI"] p[data-pdf-se-type="P"] |
| 523 |
{ |
| 524 |
display: block; |
| 525 |
margin: 0 0 0.25em 0; /* paragraph spacing inside the body */ |
| 526 |
} |
| 527 |
|
| 528 |
/* remove any previously added pseudo-space */ |
| 529 |
:where(ol[data-pdf-se-type-original="enumerate"], |
| 530 |
ul[data-pdf-se-type-original="itemize"]) |
| 531 |
li[data-pdf-se-type="LI"] > span[data-pdf-se-type="Lbl"]::after |
| 532 |
{ |
| 533 |
content: none; |
| 534 |
} |
| 535 |
|
| 536 |
/* when doing superscripts in a lazy way as $^{-1}$, an empty mrow is created. Fix spacing */ |
| 537 |
|
| 538 |
span[data-pdf-se-type="Formula"].inline:has(math msup > mrow:empty) |
| 539 |
{ |
| 540 |
letter-spacing: -0.1em; |
| 541 |
} |
| 542 |
|
| 543 |
|
| 544 |
/* --- Double figure width, but don't exceed 80% of page width --- */ |
| 545 |
|
| 546 |
aside[data-pdf-se-type="Aside"] |
| 547 |
{ |
| 548 |
text-align: center; |
| 549 |
} |
| 550 |
|
| 551 |
aside[data-pdf-se-type="Aside"] img |
| 552 |
{ |
| 553 |
display: block !important; |
| 554 |
margin: 1em auto !important; |
| 555 |
width: min(calc(2 * 257px), 80%) !important; /* 257px = original width */ |
| 556 |
height: auto !important; |
| 557 |
} |
| 558 |
|
| 559 |
|
| 560 |
/* for generality, double whatever width attribute is present */ |
| 561 |
@supports (width: attr(width length)) { |
| 562 |
aside[data-pdf-se-type="Aside"] img[width] |
| 563 |
{ |
| 564 |
width: min(calc(2 * attr(width length)), 80%) !important; |
| 565 |
} |
| 566 |
} |
| 567 |
|
| 568 |
/* caption alignment */ |
| 569 |
aside[data-pdf-se-type="Aside"] > div[data-pdf-se-type="Caption"] |
| 570 |
{ |
| 571 |
max-width: 80%; |
| 572 |
margin: 0.5em auto 0; |
| 573 |
text-align: center; |
| 574 |
} |
| 575 |
|
| 576 |
|
| 577 |
/* --- Dark mode adjustments --- */ |
| 578 |
|
| 579 |
@media (prefers-color-scheme: dark) { |
| 580 |
body { |
| 581 |
color: #e8eaed; |
| 582 |
background: #121212; |
| 583 |
} |
| 584 |
|
| 585 |
/* Headings and captions remain bright */ |
| 586 |
h1, h2, h3, h4, |
| 587 |
div[data-pdf-se-type="Caption"] |
| 588 |
{ |
| 589 |
color: #e8eaed; |
| 590 |
} |
| 591 |
|
| 592 |
hr { border-color: #2b2b2b; } |
| 593 |
|
| 594 |
/* Hyperlinks and cross-references */ |
| 595 |
a[href] { |
| 596 |
color: #82b1ff; /* light blue, accessible on #121212 */ |
| 597 |
text-decoration: underline; |
| 598 |
} |
| 599 |
a[href]:visited { |
| 600 |
color: #b388ff; /* distinct violet for visited links */ |
| 601 |
} |
| 602 |
a[href]:hover, |
| 603 |
a[href]:focus |
| 604 |
{ |
| 605 |
color: #bbdefb; /* even lighter on hover/focus */ |
| 606 |
} |
| 607 |
|
| 608 |
/* Cross-reference links (internal anchors, e.g., [1], Eq. (2)) */ |
| 609 |
a[href^="#"] { |
| 610 |
color: #8ab4f8; /* medium-light blue with strong contrast */ |
| 611 |
} |
| 612 |
|
| 613 |
/* Within captions, tone down slightly for balance */ |
| 614 |
div[data-pdf-se-type="Caption"] a[href] { |
| 615 |
color: #9ec3ff; |
| 616 |
} |
| 617 |
|
| 618 |
/* Keep footnotes legible and distinct */ |
| 619 |
div[data-pdf-se-type-original="footnote"] |
| 620 |
> span[data-pdf-se-type-original="footnotelabel"], |
| 621 |
div[data-pdf-se-type-original="footnote"] |
| 622 |
[data-pdf-se-type="Part"] > p[data-pdf-se-type="P"] |
| 623 |
{ |
| 624 |
color: #9ec3ff; |
| 625 |
} |
| 626 |
|
| 627 |
/* Table borders or lines that might exist */ |
| 628 |
table, th, td { |
| 629 |
border-color: #444; |
| 630 |
} |
| 631 |
} |
| 632 |
|
| 633 |
/* --- Print: layout, breaks, widows/orphans --- */ |
| 634 |
|
| 635 |
@media print { |
| 636 |
@page { |
| 637 |
size: Letter; /* or A4 */ |
| 638 |
margin: 0.5in; /* matches ~36pt intent */ |
| 639 |
} |
| 640 |
body { |
| 641 |
margin: 0; /* @page controls it on print */ |
| 642 |
max-width: none; |
| 643 |
} |
| 644 |
|
| 645 |
/* Avoid splitting key elements across pages */ |
| 646 |
h1, h2, h3, h4, |
| 647 |
[data-pdf-se-type="Figure"], |
| 648 |
table[data-pdf-se-type="Table"], |
| 649 |
figcaption, |
| 650 |
div[data-pdf-se-type="Caption"] |
| 651 |
{ |
| 652 |
break-inside: avoid-page; |
| 653 |
} |
| 654 |
|
| 655 |
/* Widow & orphan control */ |
| 656 |
p, li, dd, blockquote |
| 657 |
{ |
| 658 |
orphans: 2; |
| 659 |
widows: 2; |
| 660 |
} |
| 661 |
} |