Created custom-code.theme and included it in YAML to unify syntax highlighting across HTML and PDF outputs.
Removed redundant token color definitions from style.scss and header-includes.tex.
Reviewed chapters 1–20 to fix layout issues and correct formatting of Chapter Connections margin blocks.
Improved several in-text bibliography citations.
Before submitting your Pull Request, please review and complete the items on this checklist.
The text has been proofread for grammar and spelling errors.
All images, figures, and tables render properly without any glitches.
All images have a source or they are properly linked to external sites.
The chapter's formatting is consistent with the rest of the book.
The chapter has been locally built and tested using Quarto.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/harvard-edge/cs249r_book/pull/958
**Author:** [@hzeljko](https://github.com/hzeljko)
**Created:** 9/1/2025
**Status:** ✅ Merged
**Merged:** 9/4/2025
**Merged by:** [@profvjreddi](https://github.com/profvjreddi)
**Base:** `dev` ← **Head:** `line_colors_in_code_listing`
---
### 📝 Commits (1)
- [`2f31432`](https://github.com/harvard-edge/cs249r_book/commit/2f31432e7b16636352b43967f08ccc97652e06be) Add custom-code.theme and clean up code highlighting setup
### 📊 Changes
**39 files changed** (+604 additions, -2456 deletions)
<details>
<summary>View changed files</summary>
📝 `quarto/_extensions/mlsysbook-ext/custom-numbered-blocks/style/foldbox.tex` (+1 -1)
➕ `quarto/assets/styles/custom-code.theme` (+182 -0)
📝 `quarto/assets/styles/style.scss` (+21 -95)
📝 `quarto/config/_quarto-html.yml` (+2 -1)
📝 `quarto/config/_quarto-pdf.yml` (+2 -0)
📝 `quarto/contents/core/ai_for_good/ai_for_good.qmd` (+4 -8)
📝 `quarto/contents/core/benchmarking/benchmarking.bib` (+5 -5)
📝 `quarto/contents/core/benchmarking/benchmarking.qmd` (+5 -3)
📝 `quarto/contents/core/data_engineering/data_engineering.bib` (+1 -0)
📝 `quarto/contents/core/dl_primer/dl_primer.bib` (+1 -1)
📝 `quarto/contents/core/dl_primer/dl_primer.qmd` (+7 -5)
📝 `quarto/contents/core/dnn_architectures/dnn_architectures.qmd` (+18 -251)
📝 `quarto/contents/core/efficient_ai/efficient_ai.bib` (+1 -1)
📝 `quarto/contents/core/efficient_ai/efficient_ai.qmd` (+2 -2)
📝 `quarto/contents/core/frameworks/frameworks.bib` (+2 -2)
📝 `quarto/contents/core/frameworks/frameworks.qmd` (+34 -737)
➕ `quarto/contents/core/frameworks/images/png/ai_training.png` (+0 -0)
📝 `quarto/contents/core/hw_acceleration/hw_acceleration.bib` (+24 -21)
📝 `quarto/contents/core/hw_acceleration/hw_acceleration.qmd` (+11 -534)
📝 `quarto/contents/core/ml_systems/ml_systems.qmd` (+21 -23)
_...and 19 more files_
</details>
### 📄 Description
- Created custom-code.theme and included it in YAML to unify syntax highlighting across HTML and PDF outputs.
- Removed redundant token color definitions from style.scss and header-includes.tex.
- Reviewed chapters 1–20 to fix layout issues and correct formatting of Chapter Connections margin blocks.
- Improved several in-text bibliography citations.
Before submitting your Pull Request, please review and complete the items on this checklist.
- [x] The text has been proofread for grammar and spelling errors.
- [x] All images, figures, and tables render properly without any glitches.
- [x] All images have a source or they are properly linked to external sites.
- [x] The chapter's formatting is consistent with the rest of the book.
- [x] The chapter has been locally built and tested using Quarto.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/harvard-edge/cs249r_book/pull/958
Author: @hzeljko
Created: 9/1/2025
Status: ✅ Merged
Merged: 9/4/2025
Merged by: @profvjreddi
Base:
dev← Head:line_colors_in_code_listing📝 Commits (1)
2f31432Add custom-code.theme and clean up code highlighting setup📊 Changes
39 files changed (+604 additions, -2456 deletions)
View changed files
📝
quarto/_extensions/mlsysbook-ext/custom-numbered-blocks/style/foldbox.tex(+1 -1)➕
quarto/assets/styles/custom-code.theme(+182 -0)📝
quarto/assets/styles/style.scss(+21 -95)📝
quarto/config/_quarto-html.yml(+2 -1)📝
quarto/config/_quarto-pdf.yml(+2 -0)📝
quarto/contents/core/ai_for_good/ai_for_good.qmd(+4 -8)📝
quarto/contents/core/benchmarking/benchmarking.bib(+5 -5)📝
quarto/contents/core/benchmarking/benchmarking.qmd(+5 -3)📝
quarto/contents/core/data_engineering/data_engineering.bib(+1 -0)📝
quarto/contents/core/dl_primer/dl_primer.bib(+1 -1)📝
quarto/contents/core/dl_primer/dl_primer.qmd(+7 -5)📝
quarto/contents/core/dnn_architectures/dnn_architectures.qmd(+18 -251)📝
quarto/contents/core/efficient_ai/efficient_ai.bib(+1 -1)📝
quarto/contents/core/efficient_ai/efficient_ai.qmd(+2 -2)📝
quarto/contents/core/frameworks/frameworks.bib(+2 -2)📝
quarto/contents/core/frameworks/frameworks.qmd(+34 -737)➕
quarto/contents/core/frameworks/images/png/ai_training.png(+0 -0)📝
quarto/contents/core/hw_acceleration/hw_acceleration.bib(+24 -21)📝
quarto/contents/core/hw_acceleration/hw_acceleration.qmd(+11 -534)📝
quarto/contents/core/ml_systems/ml_systems.qmd(+21 -23)...and 19 more files
📄 Description
Before submitting your Pull Request, please review and complete the items on this checklist.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.