mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-07 18:18:42 -05:00
[PR #1550] [CLOSED] fix(book): give AlexNet figure full float placement options for PDF #8258
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/harvard-edge/cs249r_book/pull/1550
Author: @profvjreddi
Created: 4/26/2026
Status: ❌ Closed
Base:
dev← Head:fix/issue-1423-alexnet-pdf📝 Commits (1)
8b10583fix(book): give AlexNet figure full float placement options for PDF📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
book/quarto/contents/vol1/introduction/introduction.qmd(+1 -1)📄 Description
Closes #1423.
Summary
Reporter (#1423) observed the AlexNet architecture figure (@fig-alexnet, page 8 / Bitter Lesson section) renders cropped in the Vol1 PDF — only the bottom edge of the figure appears at the top of the page, with the rest cut off. Issue persists across PDF readers, so it is a real LaTeX placement issue.
Root cause
The TikZ figure is wide (~26.7 cm clip box) and ~7.45 cm tall. With
fig-pos="htb", LaTeX is restricted to here/top/bottom of the current page. When preceding text exhausts those positions, the figure gets pushed but has no acceptable landing slot, producing the truncated render.Fix
Change
fig-pos="htb"→fig-pos="!htbp":p— float to own page (figures-only page) where the figure has the full text-block height to render.!— override strict placement parameters (totalnumber, topfraction) so the figure can land wherever it physically fits.Other figures in the book that use the same pattern have not reported this issue, so the targeted change is appropriate without a global sweep.
Test plan
out-width="100%"to the div, or applyscale=0.85at the\begin{tikzpicture}level.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.