Skip to content

Commit 3a763d4

Browse files
committed
Tweak styling.
1 parent f9d9369 commit 3a763d4

File tree

5 files changed

+25
-25
lines changed

5 files changed

+25
-25
lines changed

_posts/2021-02-03-ks2samp.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,17 +116,21 @@ maximum value of a finite set of numbers.*
116116

117117
<div class="proof" markdown=1>
118118

119-
*Proof.* By definition<span
120-
class="sidenote-wrapper"><label for="sn-1" class="margin-toggle sidenote-number"></label><input type="checkbox" id="sn-1" class="margin-toggle"/><span
121-
class="sidenote">The *indicator function* is defined as
119+
*Proof.* By definition,
120+
<span class="sidenote-wrapper">
121+
<label for="sn-1" class="margin-toggle sidenote-number"></label>
122+
<input type="checkbox" id="sn-1" class="margin-toggle"/>
123+
<span class="sidenote">
124+
The *indicator function* is defined as
122125
$$
123126
\mathbb{1}\!\left\{X \le t\right\} =
124127
\begin{cases}
125128
1 & \text{if } X \le t \\
126129
0 & \text{otherwise}
127130
\end{cases}.
128131
$$
129-
</span></span>, the cdf
132+
</span></span>
133+
the cdf
130134

131135
$$
132136
\begin{align*}
@@ -232,7 +236,8 @@ The following subroutine is an implementation of
232236
It computes an array of values $T_v(i)$ for each value of $X_i$. The test statistic
233237
$T_{n,m}$ is the maximum of these values.
234238

235-
<span class="marginnote-wrapper"><label for="sn-0" class="margin-toggle">&#8862;</label>
239+
<span class="marginnote-wrapper">
240+
<label for="sn-0" class="margin-toggle">&#8862;</label>
236241
<input type="checkbox" id="sn-0" class="margin-toggle"/>
237242
<span class="marginnote">
238243
The entire source code for the figures and algorithms in this post is available

_posts/2025-02-25-householder.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ It turns out that the Davis method follows the trend
333333

334334
$$
335335
\begin{align*}
336-
v &= \begin{bmatrix} 1, -\frac{2}{\epsilon} \end{bmatrix}^T \\
336+
v &= \begin{bmatrix} 1, -\dfrac{2}{\epsilon} \end{bmatrix}^T \\
337337
\beta &= \frac{\epsilon^2}{2}
338338
\end{align*}
339339
$$
@@ -342,7 +342,7 @@ whereas the LAPACK method is more constained:
342342

343343
$$
344344
\begin{align*}
345-
v &= \begin{bmatrix} 1, \frac{\epsilon}{2} \end{bmatrix}^T \\
345+
v &= \begin{bmatrix} 1, \dfrac{\epsilon}{2} \end{bmatrix}^T \\
346346
\beta &= 2,
347347
\end{align*}
348348
$$

_posts/2025-02-25-sparseqr.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,8 @@ The sparsity pattern of the QR decomposition of the reordered matrix
283283

284284
This result is much closer to the MATLAB result (and even has fewer non-zeros)!
285285

286-
<span class="marginnote-wrapper"><label for="sn-0" class="margin-toggle">&#8862;</label>
286+
<span class="marginnote-wrapper">
287+
<label for="sn-0" class="margin-toggle">&#8862;</label>
287288
<input type="checkbox" id="sn-0" class="margin-toggle"/>
288289
<span class="marginnote">
289290
The MATLAB code for the QR function is not open-source, so we cannot get exactly

assets/css/base.css

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,13 @@ body {
3131
html {
3232
/* font-family: "PT Serif", Georgia, "Times New Roman", serif; */
3333
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
34-
font-size: 10px;
34+
/* font-size: 10px; */
35+
font-size: min(1.125rem, max(32vw, 1.25rem)); /* 18px */
3536
line-height: 1.5;
3637
}
3738
@media (min-width: 38em) {
3839
html {
39-
font-size: 18px;
40+
font-size: min(1.125rem, max(32vw, 1.25rem)); /* 18px */
4041
}
4142
}
4243

@@ -307,24 +308,15 @@ tbody tr:nth-child(odd) th {
307308
*/
308309

309310
.container {
310-
max-width: 40rem; /* 640px */
311-
padding-left: 1rem;
312-
padding-right: 1rem;
311+
max-width: 730px;
313312
margin-left: auto;
314313
margin-right: auto;
315314
}
316315

317-
/* Medium Screens */
318-
@media (min-width: 38em) {
319-
.container {
320-
max-width: 32rem;
321-
}
322-
}
323-
324316
/* Large Screens */
325317
@media (min-width: 56em) {
326318
.container {
327-
max-width: 40rem; /* 640px */
319+
max-width: 730px; /* rem * 16 = px */
328320
}
329321
}
330322

assets/css/layout.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -601,20 +601,22 @@ figcaption {
601601
float: right;
602602
clear: right;
603603
text-align: left;
604-
margin-right: -60%;
604+
margin-right: -50%;
605605
padding-right: 3rem;
606+
padding-left: 3rem;
606607
width: 50%;
607608
margin-top: 0.3rem;
608609
margin-bottom: 0;
609610
font-size: 0.8rem;
611+
font-style: italic;
610612
line-height: 1.3;
611613
vertical-align: baseline;
612614
position: relative;
613615
}
614616

615617
.sidenote {
616-
padding-left: 1em; /* hanging indent */
617-
text-indent: -1em;
618+
padding-left: 3em;
619+
text-indent: -1em; /* hanging indent */
618620
}
619621

620622
.sidenote-number {
@@ -632,7 +634,7 @@ figcaption {
632634
content: counter(sidenote-counter);
633635
font-size: 0.8rem;
634636
top: -0.5rem;
635-
left: 0.1rem;
637+
left: -0.3rem;
636638
}
637639

638640
.sidenote:before {

0 commit comments

Comments
 (0)