Skip to content

Commit 8c123e5

Browse files
jeremymanningclaude
andcommitted
feat: Verify compile-time scaling works consistently across lectures
- Tested L1 slides 4, 7, 8, 13, 15, 18 - all pass refresh test - Tested L2 slides 2, 6 (table-in-callout pattern) - all pass - Compared L1 slide 22 vs L2 slide 16 styling - consistent - Added colab_screenshot.png figure for lecture 2 - HTML/PDF now match due to compile-time scale classes 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b08ca77 commit 8c123e5

File tree

7 files changed

+100
-44
lines changed

7 files changed

+100
-44
lines changed

figures/colab_screenshot.png

205 KB
Loading

notes/compile-time-autoscaling-plan.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Compile-Time Autoscaling Redesign Plan
22

3+
## Additional Requirements (User Feedback)
4+
5+
1. **Column wrapping detection** should be handled at compile-time, not dynamically
6+
2. **Rename autoscale.js** to something more appropriate (e.g., `chart-animations.js`) since it will only handle chart animations after refactor
7+
3. **Print warning messages** when content might overflow (at compile-time)
8+
4. **Test slides:**
9+
- Lecture 1: slides 4, 7, 8, 13, 15, 18
10+
- Lecture 2: slides 3, 4 (code + content), 6 (table inside box!), 7 (code only), 10 (multiple boxes), 15
11+
- Compare L1 slide 22 vs L2 slide 15 (should use similar styling)
12+
313
## Executive Summary
414

515
The current slide scaling system uses runtime JavaScript (`autoscale.js`) which cannot affect PDF output. This causes HTML/PDF mismatch. This plan describes how to move all scaling logic to compile-time via `process_markdown.py` and predefined CSS classes in `cdl-theme.css`.

slides/week1/lecture1.html

Lines changed: 28 additions & 25 deletions
Large diffs are not rendered by default.

slides/week1/lecture1.pdf

-25 KB
Binary file not shown.

slides/week1/lecture2.html

Lines changed: 38 additions & 18 deletions
Large diffs are not rendered by default.

slides/week1/lecture2.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Dartmouth College
1414
Winter 2026
1515

1616
---
17-
17+
<!-- transition: flip 0.5s --->
1818
# Recap from Lecture 1
1919

2020
<div class="note-box" data-title="Key ideas">
@@ -37,9 +37,32 @@ Pattern matching can create powerful *illusions* of understanding, even without
3737

3838
</div>
3939

40+
---
41+
<!-- transition: flip 0.5s -->
42+
43+
# Side note: follow along with [Google Colab](https://colab.research.google.com/)!
44+
45+
<div style="display: flex; gap: 2em;">
46+
<div>
47+
48+
![width:700px](../../figures/colab_screenshot.png)
49+
50+
</div>
51+
<div class="tip-box" style="width: 100px !important; margin-top: 50px !important;">
52+
53+
- Go to [colab.research.google.com](https://colab.research.google.com/)
54+
- Click "New notebook"
55+
- Click to start new `text` or `code` cells
56+
- Copy and paste code from slides
57+
- Press `Shift + Enter` to run cells
58+
59+
</div>
60+
</div>
61+
4062

4163

4264
---
65+
<!-- transition: fade 0.25s -->
4366

4467
# Creating the illusion of experience and understanding
4568

slides/week1/lecture2.pdf

170 KB
Binary file not shown.

0 commit comments

Comments
 (0)