Quoting the real wording
excerpt-of(id, quotes: false, show-page: false, on-empty: none) re-emits the exact content check() anchored to id — one block per occurrence, so an item checked in two places yields two excerpts. It isn’t part of the official grid, which only ever has a page-number column; it’s for a supplementary appendix some journals or protocols additionally want, with the exact wording quoted next to each item, or for an internal compliance review.
#import "../../lib.typ": *
#import "../../../typst-contexture/lib.typ" as contexture
// Demonstrates excerpt-of(): re-emitting the real, verbatim content
// anchored by check(), e.g. for a supplementary "compliance appendix"
// listing exact wording next to each item --- not part of the official
// CONSORT grid (which only has a page-number column), so this lives in
// the manuscript itself, not in checklist.pdf.
#show: contexture.bundle.with(
template: body => {
set page(width: 16.6cm, height: auto, margin: 12pt)
set text(size: 10.5pt)
body
},
documents: (checklist(checklist: checklists.consort),),
)
= Methods
#check("17a")[The allocation sequence was generated by an independent
statistician using a computer-based random-number generator.]
#check("18")[Allocation was concealed using sequentially numbered, opaque,
sealed envelopes.]
= Appendix: verbatim compliance excerpts
*Item 17a* (Sequence generation): #excerpt-of("17a", quotes: true, show-page: true)
*Item 18* (Allocation concealment mechanism): #excerpt-of("18", quotes: true, show-page: true)
*Item 19* (Implementation) --- never checked in this manuscript, default
`on-empty: none` renders nothing between the colon and the period: #excerpt-of("19").
*Item 20a* (Blinding) --- never checked either, but with an explicit
fallback: #excerpt-of("20a", on-empty: [_(not reported)_]).
quotes: true wraps a textual excerpt in real quotation marks, and silently declines on anything that isn’t text — a figure, a table, a block equation. on-empty (nothing, by default) is deliberately not a diagnostic the way an uncovered item is in the grid: this function can be called from inside the manuscript itself, where nothing should ever render a warning box in the real, submitted deliverable — an uncovered item is already flagged exactly once, safely, in checklist.pdf.
| ← Reading the grid | The page-break idiom → |