[PR #869] [MERGED] Implement PDF part summaries #8750

Closed
opened 2026-05-03 00:54:25 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/harvard-edge/cs249r_book/pull/869
Author: @hzeljko
Created: 6/21/2025
Status: Merged
Merged: 6/21/2025
Merged by: @profvjreddi

Base: devHead: 868-need-to-fix-parts-in-pdf


📝 Commits (3)

  • d535912 Implement PDF part summaries
  • cb0483e Update .pre-commit-config.yaml
  • c1c2fa3 Merge branch 'dev' into 868-need-to-fix-parts-in-pdf

📊 Changes

10 files changed (+223 additions, -19 deletions)

View changed files

📝 _quarto.yml (+2 -2)
📝 contents/frontmatter/socratiq/socratiq.qmd (+8 -5)
📝 contents/parts/best_practices.qmd (+4 -2)
📝 contents/parts/design_principles.qmd (+5 -2)
📝 contents/parts/foundations.qmd (+4 -1)
📝 contents/parts/impact_outlook.qmd (+3 -1)
📝 index.qmd (+10 -0)
inject-partsummary.lua (+60 -0)
summaries.yml (+28 -0)
📝 tex/header-includes.tex (+99 -6)

📄 Description

  • Introduced inject-partsummary.lua filter to inject part summaries before \part command in PDF output.
  • Created summaries.yml to store per-part summary content, matched case-insensitively by part title.
  • Enabled unnumbered \part pages using LaTeX \part* injected via a PDF-only block at the end of preceding .qmd file.
  • Added visual distinction between numbered and unnumbered part pages.
  • Integrated filter and summary logic without breaking existing book structure or Quarto TOC.

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/869 **Author:** [@hzeljko](https://github.com/hzeljko) **Created:** 6/21/2025 **Status:** ✅ Merged **Merged:** 6/21/2025 **Merged by:** [@profvjreddi](https://github.com/profvjreddi) **Base:** `dev` ← **Head:** `868-need-to-fix-parts-in-pdf` --- ### 📝 Commits (3) - [`d535912`](https://github.com/harvard-edge/cs249r_book/commit/d53591223d0524b84b97e051860cb3598c26eb24) Implement PDF part summaries - [`cb0483e`](https://github.com/harvard-edge/cs249r_book/commit/cb0483ed83bd69afedd9ef7dc152a4897eb939a3) Update .pre-commit-config.yaml - [`c1c2fa3`](https://github.com/harvard-edge/cs249r_book/commit/c1c2fa364319e74c35984ff2bd0ee3c526719dbe) Merge branch 'dev' into 868-need-to-fix-parts-in-pdf ### 📊 Changes **10 files changed** (+223 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `_quarto.yml` (+2 -2) 📝 `contents/frontmatter/socratiq/socratiq.qmd` (+8 -5) 📝 `contents/parts/best_practices.qmd` (+4 -2) 📝 `contents/parts/design_principles.qmd` (+5 -2) 📝 `contents/parts/foundations.qmd` (+4 -1) 📝 `contents/parts/impact_outlook.qmd` (+3 -1) 📝 `index.qmd` (+10 -0) ➕ `inject-partsummary.lua` (+60 -0) ➕ `summaries.yml` (+28 -0) 📝 `tex/header-includes.tex` (+99 -6) </details> ### 📄 Description - Introduced inject-partsummary.lua filter to inject part summaries before \part command in PDF output. - Created summaries.yml to store per-part summary content, matched case-insensitively by part title. - Enabled unnumbered \part pages using LaTeX \part* injected via a PDF-only block at the end of preceding .qmd file. - Added visual distinction between numbered and unnumbered part pages. - Integrated filter and summary logic without breaking existing book structure or Quarto TOC. 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>
GiteaMirror added the pull-request label 2026-05-03 00:54:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/cs249r_book#8750