Skip to content
Example

TeXtured · example page

All of TeXtured on one page

Every component of the template, with the line of source that produces it

basedpolymer ·

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.

Back to TeXtured Go to the toys

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 1.381⋅10−23 J/K1.381\cdot 10^{-23}\ \text{J/K}. A footnote1 completes the set.

see the [](#encadres) · [TeXtured Guide 2026, p. 3]{.src} · [outside input]{.hs} · a note[^note]

Lists follow ordinary Markdown:

  1. a numbered list;
  2. with sub-items:
    1. the first;
    2. the second;
  3. and an ending.

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, χ12c=2/m\chi_{12}^c = 2/m; as a block, with braces and text:

ΔgmVrefRT=ϕ1m1ln⁡ϕ1+ϕ2m2ln⁡ϕ2⏟entropic+χ12 ϕ1ϕ2⏟enthalpic\frac{\Delta g_m V_{ref}}{RT} = \underbrace{\frac{\phi_1}{m_1}\ln\phi_1 + \frac{\phi_2}{m_2}\ln\phi_2}_{\text{entropic}} + \underbrace{\chi_{12}\,\phi_1\phi_2}_{\text{enthalpic}}

Systems, matrices and units work too:

ΔH=−92.4 kJ⋅mol−1K(T)=exp⁡ ⁣(−ΔG∘RT)A=(1201)\begin{aligned} \Delta H &= -92.4\ \text{kJ}\cdot\text{mol}^{-1} \\ K(T) &= \exp\!\left(-\frac{\Delta G^\circ}{RT}\right) \end{aligned} \qquad \mathbf{A} = \begin{pmatrix} 1 & 2 \\ 0 & 1 \end{pmatrix}

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 χ12\chi_{12} measures, in units of kTkT, the exchange energy of a contact between a unit 1 and a unit 2.

Result — critical point.

χ12c=12(1m1+1m2)2\chi_{12}^c = \frac{1}{2}\left(\frac{1}{\sqrt{m_1}}+\frac{1}{\sqrt{m_2}}\right)^2

Key takeaway.

Two minima of Δgm\Delta g_m mean that the mixture separates into two phases.

Pitfall.

The common tangent is horizontal only if m1=m2m_1 = m_2.

Remark.

A remark reads in the flow of the text, without a frame.

Method.

Write Δgm\Delta g_m, differentiate twice, set to zero: that is the spinodal.

Example.

For m1=m2=100m_1 = m_2 = 100, χ12c=0.020\chi_{12}^c = 0.020.

Proof of the critical point

Write the spinodal condition ∂2Δgm/∂ϕ2=0\partial^2 \Delta g_m / \partial \phi^2 = 0, then set the third derivative to zero: the two equations give ϕc\phi^c and χ12c\chi_{12}^c.

QED

Going further

A folded extra, which the reader opens if they wish. It can contain formulas, R∼N3/5R \sim N^{3/5}, 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.

Table 1 / A few components and their source.
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 --::

Table 2 / Scaling laws for the radius of a chain.
Regime Law Exponent
Θ\Theta solvent R∼N1/2R \sim N^{1/2} 0.50
good solvent R∼N3/5R \sim N^{3/5} 0.60
globule R∼N1/3R \sim N^{1/3} 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.

Table 3 / The main header keys, in a large block.
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.

.md source textured.py .html page one-line report
Figure 1 / The TeXtured chain: a short source, a script, a self-contained page.
<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.

A TeXtured page in the light theme: title, lead, numbered sections.
Figure 2 / A TeXtured page in the light theme: title, lead, numbered sections.

6.3Side-by-side figures

The ::: figures block lines up several figures in a row, and stacks them on a phone.

Figure 3 / A damped oscillation.
Figure 4 / Measurements and their fitted line.

6.4Large figure

The same page in the dark theme: the paper turns to night, the ink keeps its tint.
Figure 5 / The same page in the dark theme: the paper turns to night, the ink keeps its tint.

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 Δgm(ϕ2)\Delta g_m(\phi_2)

Δgm\Delta g_m totalentropic termenthalpic term

above χ12c=2/m\chi_{12}^c = 2/m, 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

Figure 6 / Measurements and fitted line.
Figure 7 / Residuals.

the higher the noise, the larger the residuals and the lower the coefficient r2r^2.

<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 χ12c\chi_{12}^c for m1=m2=100m_1 = m_2 = 100.

Hint

Use the result from the § 4.

Solution

With m1=m2=mm_1 = m_2 = m, the formula reduces to χ12c=2/m\chi_{12}^c = 2/m. Answer: χ12c=0.020\chi_{12}^c = 0.020.

A quiz shuffles its options and grades on click:

For a polymer of infinite mass in a solvent, χ12c\chi_{12}^c tends to:

  1. 0
  2. 1/21/2
  3. 1
  4. infinity

With m1=1m_1 = 1 and m2→∞m_2 \to \infty, χ12c→12(1+0)2=1/2\chi_{12}^c \to \tfrac12 (1 + 0)^2 = 1/2.

A numerical question accepts an answer within a tolerance, with its unit:

Value of χ12c\chi_{12}^c for m1=m2=100m_1 = m_2 = 100?

2/100=0.0202/100 = 0.020.

How many kelvins is 25 °C?

T=25+273.15=298.15 KT = 25 + 273.15 = 298.15\ \text{K}.

::: 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.


  1. Notes are gathered at the end of the page and linked in both directions.↩︎