This page shows everything TeXtured can do: each component appears once, followed by the source that produces it. The banner at the top, the cover in the margin, the drop cap and the table of contents (header button) are part of the demonstration too.
1The source header
Everything before the first heading comes from the header: title, subtitle, overline, author, date, page ink, cover and banner. None of it is written by hand in the body.
---
titre: All of TeXtured on one page
soustitre: Every component of the template, with the line of source that produces it
surtitre: TeXtured · example page
auteur: basedpolymer
date: 2026-11-20
tirage: #bb8b41
couverture: colonnes claire
avertissement: **Demo page.** This banner comes from a single header line…
---
The tirage: ink is a risograph ink; the page draws all its pastels from it, from the drop cap to the section numbers, the diamonds of the rules and the curves of the toys. Here, gold; elsewhere on the site, blue, green, pink or teal. The colonnes cover draws one column per section of the document, as tall as its word count: it changes when the page changes.
2Running text
The text is set in Latin Modern, justified and hyphenated. Emphasis is in slanted roman, bold stays rare, and inline code is monospaced. An external link is underlined in ink (the original LaTeX template), and an internal cross-reference numbers itself: see the § 4, the Figure 1 or the Table 1. A source is cited TeXtured Guide 2026, p. 3; input from outside the document is marked separately: the Boltzmann constant is . A footnote1 completes the set.
see the [](#encadres) · [TeXtured Guide 2026, p. 3]{.src} · [outside input]{.hs} · a note[^note]
Lists follow ordinary Markdown:
- a numbered list;
- with sub-items:
- the first;
- the second;
- and an ending.
- A bullet;
- another bullet.
2.1Code
A code block keeps its syntax highlighting and its monospaced font.
def spinodale(phi, m):
"""Courbure nulle de l'énergie libre de mélange."""
return 1 / (m * phi) + 1 / (m * (1 - phi))
3Formulas
Formulas are rendered by KaTeX at build time: the page ships no math engine. Inline, ; as a block, with braces and text:
Systems, matrices and units work too:
Inline \(\chi_{12}^c = 2/m\), as a block \[ … \]
4Boxes
There are three families: boxes (definition, result), left rules (key takeaway, pitfall) and frameless blocks ending in ⌟ (remark, method, example). Two others fold away: the proof and the extra.
Definition — interaction parameter.
The parameter measures, in units of , the exchange energy of a contact between a unit 1 and a unit 2.
Result — critical point.
Key takeaway.
Two minima of mean that the mixture separates into two phases.
Pitfall.
The common tangent is horizontal only if .
Remark.
A remark reads in the flow of the text, without a frame.
Method.
Write , differentiate twice, set to zero: that is the spinodal.
Example.
For , .
Proof of the critical point
Write the spinodal condition , then set the third derivative to zero: the two equations give and .
QED
Going further
A folded extra, which the reader opens if they wish. It can contain formulas, , lists or figures.
::: def Definition — interaction parameter
The parameter \(\chi_{12}\) measures…
:::
The classes: def, res, retenir, piege, remarque, methode, exemple, demo (with cqfd), plus.
5Tables
A Markdown table gets booktabs rules; the caption line that follows gives it a number and an identifier.
| Component | Source | Rendering |
|---|---|---|
| Definition | ::: def |
ink box |
| Result | ::: res |
solid box |
| Key takeaway | ::: retenir |
left rule |
| Proof | ::: demo |
foldable, QED |
| Toy | <div class="jouet"> |
interactive canvas |
Number columns align right with --::
| Regime | Law | Exponent |
|---|---|---|
| solvent | 0.50 | |
| good solvent | 0.60 | |
| globule | 0.33 |
A table too wide for the column goes into a ::: large block, which spills into the margins on large screens; ::: paysage does the same and also gives it its own landscape pages in the PDF.
| Header key | Values | Effect | Default | Example |
|---|---|---|---|---|
tirage: |
a hexadecimal ink, or non |
pastels of the whole page | taken from the title | #bb8b41 |
couverture: |
pattern, tint, place, number, corps |
illustration in the margin (corps: next to the title) |
none | colonnes claire |
avertissement: |
a sentence in Markdown | banner at the top of the page | none | **Bold.** Text |
plan: |
non, pdf |
folded table of contents, or printed | folded | pdf |
densite: |
compacte |
tighter line spacing | normal | compacte |
lettrine: |
3, non |
drop cap of the first paragraph | two lines | 3 |
langues: |
fr=URL, en=URL |
language selector | none | — |
6Figures
6.1SVG diagram
A diagram is written in SVG in the source; its colors are variables, which follow the light or dark theme.
<figure id="fig-chaine">
<svg viewBox="0 0 470 100" role="img" aria-label="…">
<rect … stroke="currentColor"/> <path … stroke="var(--tirage)"/>
</svg>
<figcaption>Caption.</figcaption>
</figure>
6.2Image
An image alone in its paragraph becomes a numbered figure, with its caption.
6.3Side-by-side figures
The ::: figures block lines up several figures in a row, and stacks them on a phone.
6.4Large figure
7Interactive toys
A toy is a figure you can manipulate: sliders, menus, checkboxes and buttons drive a graph drawn by the Cours toolkit. The “↺ Reset” button is added automatically, and the graph is redrawn when the theme or the width changes.
Free energy of mixing
above , the curve develops two minima: the mixture separates. The vertical lines mark the spinodal, where the curvature vanishes.
A toy can also hold two graphs side by side, have its own buttons and keep a state of its own:
Random sample of measurements and linear regression
the higher the noise, the larger the residuals and the lower the coefficient .
<div class="jouet" id="jouet-dgm">
<h4>Title</h4>
<div class="commandes">
<label>\(\chi\) <input type="range" data-k="chi" min="0.01" max="0.03" step="0.0005" value="0.022"><output></output></label>
</div>
<canvas></canvas>
<p class="lire">What the figure shows.</p>
</div>
<script>
Cours.pret(() => { … Cours.sliders(j, s => { … p.fn(f) … }); });
</script>
8Exercises and questions
Exercises appear only in pages that ask for them; here they all are. The hint and the solution fold away, the final answer is highlighted.
Exercise 1 — critical point of a symmetric mixture
Compute for .
Hint
Use the result from the § 4.
Solution
With , the formula reduces to . Answer: .
A quiz shuffles its options and grades on click:
For a polymer of infinite mass in a solvent, tends to:
- 0
- 1
- infinity
With and , .
A numerical question accepts an answer within a tolerance, with its unit:
Value of for ?
.
How many kelvins is 25 °C?
.
::: exo Title
Problem statement.
::: indice
Hint.
:::
::: corr
Solution. [Answer: …]{.reponse}
:::
:::
9Cards, buttons and rules
Cards lay out short pieces of content side by side:
A short source
Claude writes the substance in Markdown: text, formulas, diagrams, toys.
A script
textured.py does the layout, always the same way.
A self-contained page
Fonts, formulas and images embedded: a single HTML file.
Buttons are links marked {.bouton}, the second one outlined:
The repository on GitHub Back to the top
Three dashes alone on a line lay down a diamond rule:
and the text resumes after it.
10Building the page
One command, and a report line to read:
python3 ~/.claude/skills/textured/textured.py exemple.md --ouvrir
The options add an A4 PDF (--pdf), a sharing image (--apercu) or a lightweight page that links the stylesheet instead of embedding it (--assets /textured), like this one.
Notes are gathered at the end of the page and linked in both directions.↩︎