Skip to content

Add a solutions document to a draft - #71

Merged
peterbjohnson merged 10 commits into
devfrom
wb/t40
Sep 20, 2026
Merged

peterbjohnson merged 10 commits into
devfrom
wb/t40

Conversation

@peterbjohnson

Copy link
Copy Markdown
Member

Many sheets in the corpus come as two files: the questions and, separately, the solutions (the EEE_Mathematics folder is 23 such pairs; in2lambda convert already takes -a for this). A draft freezes one source, so the solutions cannot be quoted by range into it.

Let a draft hold more than one frozen source: in2lambda source add solutions.tex --into DRAFTDIR (or a second positional) freezes it beside the first as source 2, with its own hash and block list, block ids and line ranges qualified by source (the design spec's worked example writes ranges as s1:14, which reads as source 1 line 14; settle a syntax that keeps today's s99:119 meaning source 1 and adds s2:14 or similar for the second, and say so in the docs). source show prints both, numbered. Spec run's after Header text=Solutions selectors and the layouts pair solutions across sources the way convert -a does. Done when a fixture pair of question and solution files produces a draft whose part solutions are layer 1 fields quoted from the second source, and replay reproduces it.


Workbench ticket t40.

@peterbjohnson
peterbjohnson merged commit 6699c53 into dev Sep 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant