[PR #866] [MERGED] Redesigned part heading and added custom callout blocks (Question & A… #3605

Closed
opened 2026-04-16 01:52:51 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

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

Base: devHead: new_blocks


📝 Commits (2)

  • b1bd1b4 Redesigned part heading and added custom callout blocks (Question & Answer)
  • c261130 Merge branch 'dev' into new_blocks

📊 Changes

12 files changed (+1323 additions, -12 deletions)

View changed files

_extensions/custom-numbered-blocks/_extension.yml (+8 -0)
_extensions/custom-numbered-blocks/custom-numbered-blocks.lua (+879 -0)
_extensions/custom-numbered-blocks/style/foldbox.css (+143 -0)
_extensions/custom-numbered-blocks/style/foldbox.lua (+105 -0)
_extensions/custom-numbered-blocks/style/foldbox.tex (+87 -0)
_extensions/custom-numbered-blocks/style/icons/icon_answer.pdf (+0 -0)
_extensions/custom-numbered-blocks/style/icons/icon_answer.png (+0 -0)
_extensions/custom-numbered-blocks/style/icons/icon_question.pdf (+0 -0)
_extensions/custom-numbered-blocks/style/icons/icon_question.png (+0 -0)
📝 _quarto.yml (+19 -1)
📝 contents/core/introduction/introduction.qmd (+30 -0)
📝 tex/header-includes.tex (+52 -11)

📄 Description

  1. Redesigned the \part heading style for PDF output. (header-includes.tex)
  2. Adjusted TOC entries so that \part headings are centered, unnumbered, and excluded from page numbering.
  3. Added a new custom extension under -extensions/custom-numbered-blocks.
  4. Enabled the extension in the _quarto.yml configuration file.
  5. Defined two new callout block types: Question and Answer.
  6. Created custom icons for these blocks and placed them in the custom-numbered-blocks/icons folder.
  7. Styled the blocks for both PDF (via foldbox.tex) and HTML (via foldbox.css) outputs to ensure consistent appearance.
  8. Tested rendering in both PDF and HTML formats — everything works as expected.

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/866 **Author:** [@hzeljko](https://github.com/hzeljko) **Created:** 6/16/2025 **Status:** ✅ Merged **Merged:** 6/16/2025 **Merged by:** [@profvjreddi](https://github.com/profvjreddi) **Base:** `dev` ← **Head:** `new_blocks` --- ### 📝 Commits (2) - [`b1bd1b4`](https://github.com/harvard-edge/cs249r_book/commit/b1bd1b4cb3636b18ecc99a147c18a479508259ab) Redesigned part heading and added custom callout blocks (Question & Answer) - [`c261130`](https://github.com/harvard-edge/cs249r_book/commit/c261130fcc7967486a7a6a81b9be3612aa2c0f5b) Merge branch 'dev' into new_blocks ### 📊 Changes **12 files changed** (+1323 additions, -12 deletions) <details> <summary>View changed files</summary> ➕ `_extensions/custom-numbered-blocks/_extension.yml` (+8 -0) ➕ `_extensions/custom-numbered-blocks/custom-numbered-blocks.lua` (+879 -0) ➕ `_extensions/custom-numbered-blocks/style/foldbox.css` (+143 -0) ➕ `_extensions/custom-numbered-blocks/style/foldbox.lua` (+105 -0) ➕ `_extensions/custom-numbered-blocks/style/foldbox.tex` (+87 -0) ➕ `_extensions/custom-numbered-blocks/style/icons/icon_answer.pdf` (+0 -0) ➕ `_extensions/custom-numbered-blocks/style/icons/icon_answer.png` (+0 -0) ➕ `_extensions/custom-numbered-blocks/style/icons/icon_question.pdf` (+0 -0) ➕ `_extensions/custom-numbered-blocks/style/icons/icon_question.png` (+0 -0) 📝 `_quarto.yml` (+19 -1) 📝 `contents/core/introduction/introduction.qmd` (+30 -0) 📝 `tex/header-includes.tex` (+52 -11) </details> ### 📄 Description 1. Redesigned the \part heading style for PDF output. (header-includes.tex) 2. Adjusted TOC entries so that \part headings are centered, unnumbered, and excluded from page numbering. 3. Added a new custom extension under -extensions/custom-numbered-blocks. 4. Enabled the extension in the _quarto.yml configuration file. 5. Defined two new callout block types: Question and Answer. 6. Created custom icons for these blocks and placed them in the custom-numbered-blocks/icons folder. 7. Styled the blocks for both PDF (via foldbox.tex) and HTML (via foldbox.css) outputs to ensure consistent appearance. 8. Tested rendering in both PDF and HTML formats — everything works as expected. 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-04-16 01:52:51 -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#3605