Repository navigation
Exam booklet layout and surname print order - #36
Merged
Merged
Conversation
The single-layout combined PDF and register.csv were sorted by the full
display name, first name first, so the stack matched no class list. Sort
both by surname, then given names. Take the surname from the roster's
lms_name column ("Last,First Middle") when present, which keeps
multi-word surnames whole; otherwise fall back to the last word of the
name. gradescope_roster.csv uses the same split for its Last Name.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019vCMgevpwqjvXysvDivXBs
reference_exam.tex now opens with a cover page that holds no exam material: the name/ID block, exam information with the note-card and device rules, the directions, and an honor pledge that must be signed for the exam to be graded. The last page is always a blank back cover on an even page, with a scratch page first when needed. The header prints the student ID (never the name) on every page of a pre-filled copy, and the footer reads "Page N of X". 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
Two exam changes from the CECS 378 Fa26 Exam 1 print run.
Booklet layout (
references/reference_exam.tex). Exams print double-sided, so the scaffold now produces a closed booklet:Surname print order (
lectern/exam_pack.py). The combined PDF andregister.csvwere sorted by display name, first name first. They now sort by surname, then given names. The surname comes from the roster'slms_namecolumn (Last,First Middle) when present, which keeps multi-word surnames whole; otherwise it is the last word of the name.gradescope_roster.csvuses the same split.Template-only for the layout: existing exam
.texfiles are not backfilled, and the\item ... \textit{(N pts)}pattern is unchanged, soexam_packparsing is unaffected.Test plan
pytest: 608 passed, 1 skipped (new tests for surname order with and withoutlms_name, and for the Gradescope roster split; fixtures use fictional names)reference_exam.texbuilds as a 4-page booklet (student and key), no unresolved page referencesreg-exam-verify✓ 36 ✗ 0, print order matches the register for all 36🤖 Generated with Claude Code
https://claude.ai/code/session_019vCMgevpwqjvXysvDivXBs