Skip to content

Commit f9bd293

Browse files
committed
fix(vol1): two CI-surfaced PDF build errors
1. nn_architectures: remove \renewcommand{\arraystretch}{1.1} from 5 instances inside $$...$$ math blocks (display math). Pandoc was macro-expanding \arraystretch (set to 1.25 by earlier chapter ml_systems' raw-LaTeX \begingroup blocks), producing the broken \renewcommand{1.25}{1.1} in the rendered LaTeX. The 6th \renewcommand in this file (inside a {=latex} block at line 5042) is safe and untouched. 2. header-includes.tex: add \providecommand{\tcbbreak}{} fallback. PR #1789 (callout-audit) introduced \tcbbreak in 3 chapter QMDs to force tcolorbox page-breaks, but the macro isn't defined by the local foldbox extension. The fallback no-ops cleanly when tcolorbox doesn't provide it. Surfaced by CI Linux Vol I PDF build (run 26151749093, job 76922049346). Both errors reproduce locally and are fixed by these two changes. Vol I PDF builds cleanly post-fix.
1 parent af45aee commit f9bd293

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

book/quarto/contents/vol1/nn_architectures/nn_architectures.qmd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,7 +1640,7 @@ The equivariant layers preserve where features occur, enabling the network to le
16401640
::: {#exmp-nn-architectures-equivariance-feature-detection .callout-example title="Equivariance: Feature detection"}
16411641

16421642
Consider a $7{\times}7$ image with a vertical edge at column 3:
1643-
$$\renewcommand{\arraystretch}{1.1}
1643+
$$
16441644
\mathbf{x} = \begin{bmatrix}
16451645
0 & 0 & 1 & 0 & 0 & 0 & 0 \\
16461646
0 & 0 & 1 & 0 & 0 & 0 & 0 \\
@@ -1653,7 +1653,7 @@ $$\renewcommand{\arraystretch}{1.1}
16531653
$$
16541654

16551655
Vertical edge detector filter:
1656-
$$\renewcommand{\arraystretch}{1.1}
1656+
$$
16571657
\mathbf{w} = \begin{bmatrix}
16581658
-1 & 0 & 1 \\
16591659
-1 & 0 & 1 \\
@@ -1664,7 +1664,7 @@ $$
16641664
**Convolving original image**:
16651665

16661666
Output feature map shows positive activation where the filter transitions from dark to bright (left side of edge) and negative activation where it transitions from bright to dark (right side):
1667-
$$\renewcommand{\arraystretch}{1.1}
1667+
$$
16681668
f(\mathbf{x}) = \begin{bmatrix}
16691669
3 & 0 & -3 & 0 & 0 \\
16701670
3 & 0 & -3 & 0 & 0 \\
@@ -1675,7 +1675,7 @@ f(\mathbf{x}) = \begin{bmatrix}
16751675
$$
16761676

16771677
**Shifted input** (edge moved to column 5):
1678-
$$\renewcommand{\arraystretch}{1.1}
1678+
$$
16791679
T_2 \mathbf{x} = \begin{bmatrix}
16801680
0 & 0 & 0 & 0 & 1 & 0 & 0 \\
16811681
0 & 0 & 0 & 0 & 1 & 0 & 0 \\
@@ -1688,7 +1688,7 @@ T_2 \mathbf{x} = \begin{bmatrix}
16881688
$$
16891689

16901690
**Convolving shifted image**:
1691-
$$\renewcommand{\arraystretch}{1.1}
1691+
$$
16921692
f(T_2 \mathbf{x}) = \begin{bmatrix}
16931693
0 & 0 & 3 & 0 & -3 \\
16941694
0 & 0 & 3 & 0 & -3 \\

book/quarto/tex/header-includes.tex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2052,3 +2052,8 @@
20522052

20532053
\makeatother
20542054

2055+
2056+
% Fallback for \tcbbreak (used by callout-audit PR #1789 to force tcolorbox
2057+
% page-breaks). If a runtime tcolorbox version doesn't define it, no-op so
2058+
% the PDF builds cleanly. See dev commit fee17cc2c0 and downstream merges.
2059+
\providecommand{\tcbbreak}{}

0 commit comments

Comments
 (0)