Repository navigation
Keep exam section headings with their first question - #37
Merged
Merged
Conversation
\examsection now reserves the heading's height plus \qreserve before it prints. The question-level \needspace kept each question whole but not the heading above it, so a heading that fit at the foot of a page was left there alone while its first question moved to the next page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019vCMgevpwqjvXysvDivXBs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
\examsectioninreferences/reference_exam.texnow reserves the heading's height plus\qreservebefore it prints. The question-level\needspacefrom issue #29 kept each question whole, but not the heading above it. A heading that fit at the foot of a page was left there alone while its first question moved to the next page.Found on CECS 326 Fa26 Exam 1, where Code Interpretation sat alone at the foot of page 4. Template-only: existing exam
.texfiles are not backfilled.Test plan
reference_exam.texstill builds as a 4-page booklet with no errorspytest: 608 passed, 1 skipped🤖 Generated with Claude Code
https://claude.ai/code/session_019vCMgevpwqjvXysvDivXBs