Skip to main content
Logo image

Section 8 Grouping Samples

View Source for section
<section xml:id="block-samples">
  <title>Grouping Samples</title>
  <introduction>
    <p>
      While building or testing a rendering of PreTeXt, especially in HTML, it can be useful to see all the various elements that potentially create visual blocks in one place.
      So they are collected here.
    </p>
    <p>
      We will omit content specific blocks like figures, images, tables,
      <etc /> as those elements have significant stress testing of their own elsewhere.
    </p>
    <p>
      Please add any similar elements that are created or that you discover are missing from this page.
    </p>
    <aside>
      <title>A title</title>
      <p>
        There are more <tag>aside</tag>es below, but here is a solor one.
      </p>
    </aside>
  </introduction>
  <objectives>
    <title>Our goals</title>
    <p>
      A minimal <tag>objective</tag>.
    </p>
    <ul>
      <li>Stress test HTML themes</li>
      <li>Locally, test objectives</li>
    </ul>
  </objectives>
  <subsection xml:id="block-samples-remark-like">
    <title>Remark-like Blocks</title>
    <remark>
      <title>A title</title>
      <p>
        A minimal <tag>remark</tag>.
      </p>
    </remark>
    <convention>
    <title>A title</title>
    <p>
      A minimal <tag>convention</tag>.
    </p>
    </convention>
    <note>
      <title>A title</title>
      <p>
        A minimal <tag>note</tag>.
      </p>
    </note>
    <observation>
    <title>A title</title>
    <p>
      A minimal <tag>observation</tag>.
    </p>
    </observation>
    <warning>
      <title>A title</title>
      <p>
        A minimal <tag>warning</tag>.
      </p>
    </warning>
    <insight>
      <title>A title</title>
      <p>
        A minimal <tag>insight</tag>.
      </p>
    </insight>
  </subsection>
  <subsection xml:id="block-samples-example-like">
    <title>Example-like Blocks</title>
    <example>
      <title>A title</title>
      <p>
        A minimal <tag>example</tag>.
      </p>
    </example>
    <example>
      <title>A title</title>
      <introduction>
        <p>
          A structured <tag>example</tag>.
        </p>
      </introduction>
      <task>
        <statement>
          <p>
            A structured <tag>example</tag>.
          </p>
        </statement>
        <hint>
          <p>
            A <tag>hint</tag>
          </p>
        </hint>
        <answer>
          <p>
            An <tag>answer</tag>
          </p>
        </answer>
        <solution>
          <p>
            A <tag>solution</tag>
          </p>
        </solution>
      </task>
      <conclusion>
        <p>
          The <tag>conclusion</tag>.
        </p>
      </conclusion>
    </example>
    <question>
      <title>A title</title>
      <p>
        A minimal <tag>question</tag>.
      </p>
    </question>
    <problem>
      <title>A title</title>
      <p>
        A minimal <tag>problem</tag>.
      </p>
    </problem>
    <observation>
    <title>A title</title>
    <p>
      A minimal <tag>observation</tag>.
    </p>
    </observation>
    <warning>
      <title>A title</title>
      <p>
        A minimal <tag>warning</tag>.
      </p>
    </warning>
    <insight>
      <title>A title</title>
      <p>
        A minimal <tag>insight</tag>.
      </p>
    </insight>
  </subsection>
  <subsection xml:id="block-samples-theorem-like">
    <title>Theorem-like Blocks</title>
    <theorem>
      <title>A title</title>
      <p>
        A minimal <tag>theorem</tag>.
      </p>
    </theorem>
    <theorem>
      <title>A title</title>
      <p>
        A theorem with a proof.
      </p>
      <proof>
        <p>
          The proof of the theorem.
        </p>
      </proof>
    </theorem>
    <corollary>
      <title>A title</title>
      <p>
        A minimal <tag>corollary</tag>.
      </p>
    </corollary>
    <lemma>
      <title>A title</title>
      <p>
        A minimal <tag>lemma</tag>.
      </p>
    </lemma>
    <algorithm>
      <title>A title</title>
      <p>
        A minimal <tag>algorithm</tag>.
      </p>
    </algorithm>
    <proposition>
      <title>A title</title>
      <p>
        A minimal <tag>proposition</tag>.
      </p>
    </proposition>
    <claim>
      <title>A title</title>
      <p>
        A minimal <tag>claim</tag>.
      </p>
    </claim>
    <fact>
      <title>A title</title>
      <p>
        A minimal <tag>fact</tag>.
      </p>
    </fact>
    <identity>
    <title>A title</title>
    <p>
      A minimal <tag>identity</tag>.
    </p>
    </identity>
    <proof>
      <title>A title</title>
      <p>
        A stand-alone proof.
      </p>
    </proof>
  </subsection>
  <subsection xml:id="block-samples-axiom-like">
    <title>Axiom-like Blocks</title>
    <axiom>
      <title>A title</title>
      <p>
        A minimal <tag>axiom</tag>.
      </p>
    </axiom>
    <conjecture>
      <title>A title</title>
      <p>
        A minimal <tag>conjecture</tag>.
      </p>
    </conjecture>
    <principle>
      <title>A title</title>
      <p>
        A minimal <tag>principle</tag>.
      </p>
    </principle>
    <heuristic>
    <title>A title</title>
    <p>
      A minimal <tag>heuristic</tag>.
    </p>
    </heuristic>
    <hypothesis>
    <title>A title</title>
    <p>
      A minimal <tag>hypothesis</tag>.
    </p>
    </hypothesis>
    <assumption>
    <title>A title</title>
    <p>
      A minimal <tag>assumption</tag>.
    </p>
    </assumption>
  </subsection>
  <subsection xml:id="block-samples-definition-like">
    <title>Definition-like Blocks</title>
    <definition>
      <title>A title</title>
      <p>
        A minimal <tag>definition</tag>.
      </p>
    </definition>
  </subsection>
  <subsection xml:id="block-samples-aside-like">
    <title>Aside-like Blocks</title>
    <p>
      Three <tag>aside</tag>s are below.
    </p>
    <aside>
      <title>A title</title>
      <p>
        A minimal <tag>aside</tag>.
      </p>
    </aside>
    <biographical>
    <title>A title</title>
    <p>
      A minimal <tag>biographical</tag>.
    </p>
    </biographical>
    <biographical>
    <title>A title</title>
    <p>
      A minimal <tag>biographical</tag>.
    </p>
    </biographical>
    <historical>
    <title>A title</title>
    <p>
      A minimal <tag>historical</tag>.
    </p>
    </historical>
  </subsection>
  <subsection xml:id="block-samples-computation-like">
    <title>Computation-like Blocks</title>
    <computation>
    <title>A title</title>
    <p>
      A minimal <tag>computation</tag>.
    </p>
    </computation>
    <technology>
      <title>A title</title>
      <p>
        A minimal <tag>technology</tag>.
      </p>
    </technology>
    <data>
    <title>A title</title>
    <p>
      A minimal <tag>data</tag>.
    </p>
    </data>
  </subsection>
  <subsection xml:id="block-samples-project-like">
    <title>Project-like Blocks</title>
    <project>
      <title>A title</title>
      <p>
        A minimal <tag>project</tag>.
      </p>
    </project>
    <activity>
      <title>A title</title>
      <p>
        A minimal <tag>activity</tag>.
      </p>
    </activity>
    <exploration>
      <title>A title</title>
      <p>
        A minimal <tag>exploration</tag>.
      </p>
    </exploration>
    <investigation>
      <title>A title</title>
      <p>
        A minimal <tag>investigation</tag>.
      </p>
    </investigation>
  </subsection>
  <assemblage>
    <p>
      A minimal <tag>assemblage</tag>.
    </p>
  </assemblage>
  <conclusion>
    <title>Wrap-up</title>
    <p>
      A minimal <tag>conclusion</tag>.
    </p>
  </conclusion>
  <aside>
    <title>A title</title>
    <p>
      A final <tag>aside</tag> to test behavior at the end of a page.
      Lorem ipsum dolor sit amet, consectetur adipiscing elit,
      sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
      Ut enim ad minim veniam,
      quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
      Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
      Excepteur sint occaecat cupidatat non proident,
      sunt in culpa qui officia deserunt mollit anim id est laborum.
    </p>
  </aside>
</section>
While building or testing a rendering of PreTeXt, especially in HTML, it can be useful to see all the various elements that potentially create visual blocks in one place. So they are collected here.
We will omit content specific blocks like figures, images, tables, etc. as those elements have significant stress testing of their own elsewhere.
Please add any similar elements that are created or that you discover are missing from this page.

Subsection 8.1 Remark-like Blocks

View Source for subsection
<subsection xml:id="block-samples-remark-like">
  <title>Remark-like Blocks</title>
  <remark>
    <title>A title</title>
    <p>
      A minimal <tag>remark</tag>.
    </p>
  </remark>
  <convention>
  <title>A title</title>
  <p>
    A minimal <tag>convention</tag>.
  </p>
  </convention>
  <note>
    <title>A title</title>
    <p>
      A minimal <tag>note</tag>.
    </p>
  </note>
  <observation>
  <title>A title</title>
  <p>
    A minimal <tag>observation</tag>.
  </p>
  </observation>
  <warning>
    <title>A title</title>
    <p>
      A minimal <tag>warning</tag>.
    </p>
  </warning>
  <insight>
    <title>A title</title>
    <p>
      A minimal <tag>insight</tag>.
    </p>
  </insight>
</subsection>

Remark 8.1. A title.

View Source for remark
<remark>
  <title>A title</title>
  <p>
    A minimal <tag>remark</tag>.
  </p>
</remark>
A minimal <remark>.

Convention 8.2. A title.

View Source for convention
<convention>
<title>A title</title>
<p>
  A minimal <tag>convention</tag>.
</p>
</convention>
A minimal <convention>.

Note 8.3. A title.

View Source for note
<note>
  <title>A title</title>
  <p>
    A minimal <tag>note</tag>.
  </p>
</note>
A minimal <note>.

Observation 8.4. A title.

View Source for observation
<observation>
<title>A title</title>
<p>
  A minimal <tag>observation</tag>.
</p>
</observation>
A minimal <observation>.

Warning 8.5. A title.

View Source for warning
<warning>
  <title>A title</title>
  <p>
    A minimal <tag>warning</tag>.
  </p>
</warning>
A minimal <warning>.

Insight 8.6. A title.

View Source for insight
<insight>
  <title>A title</title>
  <p>
    A minimal <tag>insight</tag>.
  </p>
</insight>
A minimal <insight>.

Subsection 8.2 Example-like Blocks

View Source for subsection
<subsection xml:id="block-samples-example-like">
  <title>Example-like Blocks</title>
  <example>
    <title>A title</title>
    <p>
      A minimal <tag>example</tag>.
    </p>
  </example>
  <example>
    <title>A title</title>
    <introduction>
      <p>
        A structured <tag>example</tag>.
      </p>
    </introduction>
    <task>
      <statement>
        <p>
          A structured <tag>example</tag>.
        </p>
      </statement>
      <hint>
        <p>
          A <tag>hint</tag>
        </p>
      </hint>
      <answer>
        <p>
          An <tag>answer</tag>
        </p>
      </answer>
      <solution>
        <p>
          A <tag>solution</tag>
        </p>
      </solution>
    </task>
    <conclusion>
      <p>
        The <tag>conclusion</tag>.
      </p>
    </conclusion>
  </example>
  <question>
    <title>A title</title>
    <p>
      A minimal <tag>question</tag>.
    </p>
  </question>
  <problem>
    <title>A title</title>
    <p>
      A minimal <tag>problem</tag>.
    </p>
  </problem>
  <observation>
  <title>A title</title>
  <p>
    A minimal <tag>observation</tag>.
  </p>
  </observation>
  <warning>
    <title>A title</title>
    <p>
      A minimal <tag>warning</tag>.
    </p>
  </warning>
  <insight>
    <title>A title</title>
    <p>
      A minimal <tag>insight</tag>.
    </p>
  </insight>
</subsection>

Example 8.7. A title.

View Source for example
<example>
  <title>A title</title>
  <p>
    A minimal <tag>example</tag>.
  </p>
</example>
A minimal <example>.

Example 8.8. A title.

View Source for example
<example>
  <title>A title</title>
  <introduction>
    <p>
      A structured <tag>example</tag>.
    </p>
  </introduction>
  <task>
    <statement>
      <p>
        A structured <tag>example</tag>.
      </p>
    </statement>
    <hint>
      <p>
        A <tag>hint</tag>
      </p>
    </hint>
    <answer>
      <p>
        An <tag>answer</tag>
      </p>
    </answer>
    <solution>
      <p>
        A <tag>solution</tag>
      </p>
    </solution>
  </task>
  <conclusion>
    <p>
      The <tag>conclusion</tag>.
    </p>
  </conclusion>
</example>
A structured <example>.
(a)
View Source for task
<task>
  <statement>
    <p>
      A structured <tag>example</tag>.
    </p>
  </statement>
  <hint>
    <p>
      A <tag>hint</tag>
    </p>
  </hint>
  <answer>
    <p>
      An <tag>answer</tag>
    </p>
  </answer>
  <solution>
    <p>
      A <tag>solution</tag>
    </p>
  </solution>
</task>
A structured <example>.
Hint.
View Source for hint
<hint>
  <p>
    A <tag>hint</tag>
  </p>
</hint>
A <hint>
Answer.
View Source for answer
<answer>
  <p>
    An <tag>answer</tag>
  </p>
</answer>
An <answer>
Solution.
View Source for solution
<solution>
  <p>
    A <tag>solution</tag>
  </p>
</solution>
A <solution>
The <conclusion>.

Question 8.9. A title.

View Source for question
<question>
  <title>A title</title>
  <p>
    A minimal <tag>question</tag>.
  </p>
</question>
A minimal <question>.

Problem 8.10. A title.

View Source for problem
<problem>
  <title>A title</title>
  <p>
    A minimal <tag>problem</tag>.
  </p>
</problem>
A minimal <problem>.

Observation 8.11. A title.

View Source for observation
<observation>
<title>A title</title>
<p>
  A minimal <tag>observation</tag>.
</p>
</observation>
A minimal <observation>.

Warning 8.12. A title.

View Source for warning
<warning>
  <title>A title</title>
  <p>
    A minimal <tag>warning</tag>.
  </p>
</warning>
A minimal <warning>.

Insight 8.13. A title.

View Source for insight
<insight>
  <title>A title</title>
  <p>
    A minimal <tag>insight</tag>.
  </p>
</insight>
A minimal <insight>.

Subsection 8.3 Theorem-like Blocks

View Source for subsection
<subsection xml:id="block-samples-theorem-like">
  <title>Theorem-like Blocks</title>
  <theorem>
    <title>A title</title>
    <p>
      A minimal <tag>theorem</tag>.
    </p>
  </theorem>
  <theorem>
    <title>A title</title>
    <p>
      A theorem with a proof.
    </p>
    <proof>
      <p>
        The proof of the theorem.
      </p>
    </proof>
  </theorem>
  <corollary>
    <title>A title</title>
    <p>
      A minimal <tag>corollary</tag>.
    </p>
  </corollary>
  <lemma>
    <title>A title</title>
    <p>
      A minimal <tag>lemma</tag>.
    </p>
  </lemma>
  <algorithm>
    <title>A title</title>
    <p>
      A minimal <tag>algorithm</tag>.
    </p>
  </algorithm>
  <proposition>
    <title>A title</title>
    <p>
      A minimal <tag>proposition</tag>.
    </p>
  </proposition>
  <claim>
    <title>A title</title>
    <p>
      A minimal <tag>claim</tag>.
    </p>
  </claim>
  <fact>
    <title>A title</title>
    <p>
      A minimal <tag>fact</tag>.
    </p>
  </fact>
  <identity>
  <title>A title</title>
  <p>
    A minimal <tag>identity</tag>.
  </p>
  </identity>
  <proof>
    <title>A title</title>
    <p>
      A stand-alone proof.
    </p>
  </proof>
</subsection>

Proof.

View Source for proof
<proof>
  <p>
    The proof of the theorem.
  </p>
</proof>
The proof of the theorem.

A title.

View Source for proof
<proof>
  <title>A title</title>
  <p>
    A stand-alone proof.
  </p>
</proof>
A stand-alone proof.

Subsection 8.4 Axiom-like Blocks

View Source for subsection
<subsection xml:id="block-samples-axiom-like">
  <title>Axiom-like Blocks</title>
  <axiom>
    <title>A title</title>
    <p>
      A minimal <tag>axiom</tag>.
    </p>
  </axiom>
  <conjecture>
    <title>A title</title>
    <p>
      A minimal <tag>conjecture</tag>.
    </p>
  </conjecture>
  <principle>
    <title>A title</title>
    <p>
      A minimal <tag>principle</tag>.
    </p>
  </principle>
  <heuristic>
  <title>A title</title>
  <p>
    A minimal <tag>heuristic</tag>.
  </p>
  </heuristic>
  <hypothesis>
  <title>A title</title>
  <p>
    A minimal <tag>hypothesis</tag>.
  </p>
  </hypothesis>
  <assumption>
  <title>A title</title>
  <p>
    A minimal <tag>assumption</tag>.
  </p>
  </assumption>
</subsection>

Subsection 8.5 Definition-like Blocks

View Source for subsection
<subsection xml:id="block-samples-definition-like">
  <title>Definition-like Blocks</title>
  <definition>
    <title>A title</title>
    <p>
      A minimal <tag>definition</tag>.
    </p>
  </definition>
</subsection>

Definition 8.29. A title.

View Source for definition
<definition>
  <title>A title</title>
  <p>
    A minimal <tag>definition</tag>.
  </p>
</definition>
A minimal <definition>.

Subsection 8.6 Aside-like Blocks

View Source for subsection
<subsection xml:id="block-samples-aside-like">
  <title>Aside-like Blocks</title>
  <p>
    Three <tag>aside</tag>s are below.
  </p>
  <aside>
    <title>A title</title>
    <p>
      A minimal <tag>aside</tag>.
    </p>
  </aside>
  <biographical>
  <title>A title</title>
  <p>
    A minimal <tag>biographical</tag>.
  </p>
  </biographical>
  <biographical>
  <title>A title</title>
  <p>
    A minimal <tag>biographical</tag>.
  </p>
  </biographical>
  <historical>
  <title>A title</title>
  <p>
    A minimal <tag>historical</tag>.
  </p>
  </historical>
</subsection>
Three <aside>s are below.

Subsection 8.7 Computation-like Blocks

View Source for subsection
<subsection xml:id="block-samples-computation-like">
  <title>Computation-like Blocks</title>
  <computation>
  <title>A title</title>
  <p>
    A minimal <tag>computation</tag>.
  </p>
  </computation>
  <technology>
    <title>A title</title>
    <p>
      A minimal <tag>technology</tag>.
    </p>
  </technology>
  <data>
  <title>A title</title>
  <p>
    A minimal <tag>data</tag>.
  </p>
  </data>
</subsection>

Computation 8.30. A title.

View Source for computation
<computation>
<title>A title</title>
<p>
  A minimal <tag>computation</tag>.
</p>
</computation>
A minimal <computation>.

Technology 8.31. A title.

View Source for technology
<technology>
  <title>A title</title>
  <p>
    A minimal <tag>technology</tag>.
  </p>
</technology>
A minimal <technology>.

Data 8.32. A title.

View Source for data
<data>
<title>A title</title>
<p>
  A minimal <tag>data</tag>.
</p>
</data>
A minimal <data>.

Subsection 8.8 Project-like Blocks

View Source for subsection
<subsection xml:id="block-samples-project-like">
  <title>Project-like Blocks</title>
  <project>
    <title>A title</title>
    <p>
      A minimal <tag>project</tag>.
    </p>
  </project>
  <activity>
    <title>A title</title>
    <p>
      A minimal <tag>activity</tag>.
    </p>
  </activity>
  <exploration>
    <title>A title</title>
    <p>
      A minimal <tag>exploration</tag>.
    </p>
  </exploration>
  <investigation>
    <title>A title</title>
    <p>
      A minimal <tag>investigation</tag>.
    </p>
  </investigation>
</subsection>

Project 8.1. A title.

View Source for project
<project>
  <title>A title</title>
  <p>
    A minimal <tag>project</tag>.
  </p>
</project>
A minimal <project>.

Activity 8.2. A title.

View Source for activity
<activity>
  <title>A title</title>
  <p>
    A minimal <tag>activity</tag>.
  </p>
</activity>
A minimal <activity>.

Exploration 8.3. A title.

View Source for exploration
<exploration>
  <title>A title</title>
  <p>
    A minimal <tag>exploration</tag>.
  </p>
</exploration>
A minimal <exploration>.

Investigation 8.4. A title.

View Source for investigation
<investigation>
  <title>A title</title>
  <p>
    A minimal <tag>investigation</tag>.
  </p>
</investigation>
A minimal <investigation>.
View Source for assemblage
<assemblage>
  <p>
    A minimal <tag>assemblage</tag>.
  </p>
</assemblage>
A minimal <assemblage>.

Wrap-up.

A minimal <conclusion>.