Subsection: sub-demo.
Content with \(E=mc^2\) and ChapterΒ 6.
ποΈ Linked Notes: SectionΒ 6.3
202606012315 | pretext xml authoring
<pretext>
<docinfo> ... </docinfo>
<book xml:id="my-book">
<title>Book Title</title>
<chapter xml:id="ch-demo">
<title>Chapter</title>
<section xml:id="sec-demo">
<title>Section Title</title>
<introduction>
<p>
<tag>202606012315</tag> |
<tag>topic</tag>
</p>
</introduction>
<subsection xml:id="sub-demo">
<title>Subsection</title>
<p>Content with <m>E=mc^2</m> and <xref ref="ch-demo"/>.</p>
</subsection>
<conclusion>
<p>ποΈ <alert>Linked Notes:</alert> <xref ref="other-note"/></p>
</conclusion>
</section>
</chapter>
</book>
</pretext>
p) to style text or add semantics.
| Element | Usage | Example |
|---|---|---|
m |
Inline Math (LaTeX) | \(E = mc^2\) |
tag |
Semantic Tags (Metadata) | quantum mechanics |
c |
Inline Code/Verbatim | git status |
em |
Emphasis (Cooler Blue/Italic) | Nuance |
term |
Defining a term (Orange Gradient) | Bivector |
strong |
Strong emphasis (Prominent Cyan) | Key Term |
alert |
Metadata labels (Glassmorphic Pill) | Warning! |
em class="alert" |
Critical Emphasis (Blue Gradient) | Important! |
xref |
Cross-reference | See SectionΒ 6.3 |
url |
Hyperlink | PreTeXt |
tag elements are styled as glassmorphic pills.
m>...</m for inline expressions.
md for equations. Single-line equations no longer use me or men (deprecated). Use @number="yes" on md for numbering.
<md number="yes">
<mrow xml:id="eq-schrodinger">i\hbar\frac{\partial}{\partial t}\Psi = \hat{H}\Psi</mrow>
</md>
md with mrow for multiple lines. Use \amp for alignment.
<md>
<mrow> \nabla \cdot \mathbf{E} \amp = \frac{\rho}{\epsilon_0} </mrow>
<mrow> \nabla \cdot \mathbf{B} \amp = 0 </mrow>
</md>
<definition xml:id="def-unitary">
<title>Unitary Operator</title>
<statement>
<p>An operator <m>U</m> is unitary if <m>U^\dagger U = I</m>.</p>
</statement>
</definition>
<theorem xml:id="thm-noether">
<title>Noether's Theorem</title>
<statement>
<p>Every differentiable symmetry ... has a corresponding conservation law.</p>
</statement>
</theorem>
<assemblage>
<title>Key Concept</title>
<p>Assemblages are used for boxed summaries (Glassmorphic in this theme).</p>
</assemblage>
| Category | Elements | Description |
|---|---|---|
| Structure |
book, part, chapter, section
|
High-level document organization |
| Blocks |
definition, theorem, example
|
Semantic mathematical environments |
| Admonitions |
note, warning, insight, remark
|
Side-bars or callout boxes |
| Technical |
program, image, table, figure
|
Non-textual data, code, and graphics |
| Lists |
ul, ol, dl
|
Unordered, ordered, and description lists |
| Backmatter |
idx, biblio, glossary, colophon
|
Indices, references, and metadata |
introduction, blockquote, aside, or paragraphs.
202606012315|topic1,topic2| PreFigure Demo:π Interactive
<!-- Traditional Introduction -->
<introduction>
<p>
<tag>202606012315</tag> |
<tag>topic1</tag> <tag>topic2</tag>
</p>
</introduction>
<!-- Alternative using Blockquote (Always visible, no title) -->
<blockquote>
<p>
<tag>202606012315</tag> |
<tag>topic1</tag>
</p>
</blockquote>
YYYYMMDDNNNN or HHMM format. The first tag in a supported metadata block (Introduction, Blockquote, etc.) is automatically styled as a purple glassmorphic Note ID.
alert tags for metadata labels (e.g., Linked Notes, References), which are automatically styled as blue glassmorphic pills.
ποΈ Linked Notes: SectionΒ 6.3π References: ChapterΒ 6
<conclusion>
<p>
ποΈ <alert>Linked Notes:</alert> <xref ref="sec-topic" />
</p>
<p>
π <alert>References:</alert> <xref ref="biblio-item" />
</p>
</conclusion>
li><title>...</title></li or li class="li"><title>...</title></li) are styled in prominent cyan with the heading font.