<proof>
A <proof> is a Sectional
component. It is unnumbered and collapsible. Its rendered appearance is similar to an <aside>.
Attributes and Properties
Attributes for <proof>
Scoring (9)
aggregateScoresboolean. Default value: false. Whether to aggregate scores of scored descendants into a section credit-achieved value.
colorCorrectnessboolean. Default value: false. Whether to color-code answers in this section based on correctness.
displayDigitsForCreditAchievedinteger. Default value: 3. Number of significant digits to display for the section's credit achieved value.
forceIndividualAnswerColoringboolean. Default value: false. Whether to force per-answer color-correctness even when section-wide check work is enabled.
sectionWideCheckWorkboolean. Default value: false. Whether to show a single section-wide check-work button instead of per-answer buttons.
showCorrectnessboolean. Default value: false. Whether to display correctness indicators for answers in this section.
submitLabeltext. Default value: Check Work. Label for the section-wide submit button when correctness is shown.
submitLabelNoCorrectnesstext. Default value: Submit Response. Label for the section-wide submit button when correctness is not shown.
weightnumber. Default value: 1. Relative weight of this section when aggregated by an enclosing scored section.
Other (15)
asListboolean. Default value: false. Whether to render this section's children as a list.
boxedboolean. Default value: false. Whether to render this section with a visible box around it.
collapsibleboolean. Default value: true. Whether the section can be collapsed and expanded.
completedColortext. Default value: var(--lightGreen). Color used to indicate this section has been completed.
includeAutoNameboolean. Default value: false. Whether to include the auto-generated section name (e.g. "Section") in the rendered title.
includeAutoNameIfNoTitleboolean. Default value: true. Whether to include the auto-generated name when no explicit title is provided.
includeAutoNumberboolean. Default value: false. Whether to include the auto-generated section number in the rendered title.
includeAutoNumberIfNoTitleboolean. Default value: false. Whether to include the auto-generated number when no explicit title is provided.
inProgressColortext. Default value: var(--mainGray). Color used to indicate this section is in progress.
levelinteger. The heading level for this section (overrides the default level inferred from nesting).
noAutoTitleboolean. Default value: false. Whether to suppress the auto-generated title entirely.
notStartedColortext. Default value: var(--mainGray). Color used to indicate this section has not been started.
postponeRenderingboolean. Whether to delay rendering this section's contents until expanded.
renameTotext. Override the auto-generated section name (e.g. rename "Section" to a custom label).
boolean. Default value: false. Whether the collapsible section starts in the open state.
Common to all components (9)
copyreference. Create an independent copy of another component by reference. Enter a references a $name.
disabledboolean. Default value: false. Whether this component is disabled and cannot be interacted with.
extendreference. Extend another component by reference, inheriting its children and attributes. Enter a reference as $name.
fixedboolean. Default value: false. Whether this component's value is fixed and cannot be modified.
fixLocationboolean. Default value: false. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).
hideboolean. Default value: false. Whether to hide this component from the rendered output.
isResponseboolean. Default value: false. Whether this component is treated as a response for the purposes of assessment.
nametext. The name used to reference this component from elsewhere in the document.
styleNumberinteger. Default value: 1. The style number used to select this component's visual styling from the available style definitions.
Properties for <proof name="p">
Scoring (6)
$p.aggregateScoresboolean. Whether scores of scored descendants are aggregated into this section's credit value.
$p.displayDigitsForCreditAchievedinteger. Number of significant digits to display for the section's credit achieved value.
$p.sectionWideCheckWorkboolean. Whether to show a single section-wide check-work button instead of per-answer buttons.
$p.submitLabeltext. Label for the section-wide submit button when correctness is shown.
$p.submitLabelNoCorrectnesstext. Label for the section-wide submit button when correctness is not shown.
$p.weightnumber. Relative weight of this section when aggregated by an enclosing scored section.
Other (17)
$p.asListboolean. Whether to render this section's children as a list.
$p.boxedboolean. Whether this section is rendered with a visible box around it.
$p.collapsibleboolean. Whether the section can be collapsed and expanded.
$p.creditAchievednumber. Aggregate credit achieved (between 0 and 1) for scored descendants of this section.
$p.disabledboolean. Whether this component is disabled and cannot be interacted with.
$p.fixedboolean. Whether this component's value is fixed and cannot be modified.
$p.fixLocationboolean. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).
$p.includeAutoNameboolean. Whether to include the auto-generated section name (e.g. "Section") in the rendered title.
$p.includeAutoNameIfNoTitleboolean. Whether to include the auto-generated name when no explicit title is provided.
$p.includeAutoNumberboolean. Whether to include the auto-generated section number in the rendered title.
$p.includeAutoNumberIfNoTitleboolean. Whether to include the auto-generated number when no explicit title is provided.
$p.noAutoTitleboolean. Whether to suppress the auto-generated title entirely.
$p.openboolean. Whether this section is currently open (for collapsible sections).
$p.percentCreditAchievednumber. Aggregate credit achieved as a percentage (between 0 and 100).
$p.sectionNumbertext. The displayed number for this section (always null for unnumbered sections).
$p.titletext. The displayed title text for this section.
Common to all components (4)
$p.doenetMLtext. The DoenetML source code that produced this component.
$p.hideboolean. Whether to hide this component from the rendered output.
$p.isResponseboolean. Whether this component is treated as a response for the purposes of assessment.
$p.styleNumberinteger. The style number used to select this component's visual styling from the available style definitions.
Examples
Example: <proof> with default title
Within a DoenetML document, default titles for sectional components are auto-numbered. Sectional components such as <section> and <problem> are on the same counter, but a <proof> is not part of the document’s default numbering schema.
Example: <proof> with custom title
A custom <proof> title is creating by providing a <title> tag within the <proof>.
Attribute Examples
Attribute Example: startOpen
The startOpen attribute renders the <proof> box as open; it must be clicked once to close.