Examples¶
Short, linked documents that show what HyperTeX can do: equations and cross-references, tables, figures that move, sliders that redraw plots, theorems with collapsible proofs, step-by-step derivations, links between files, and references. Each example is a small set of files in different formats (HyperTeX, LaTeX, Markdown and HTML) that link to one another.
- Open in HyperTeX opens the file in the HyperTeX viewer (version 0.7.2 or later, download). Follow the links, move the sliders, and press ✎ to edit the source beside a live preview. Save As then keeps a copy on your computer, together with every file it uses.
- Read on the web shows a plain HTML copy made with
htex build. It works in any browser, but sliders only change the numbers there; the figures redraw in HyperTeX. - Source shows the file as written.
You can also open the list of all examples in HyperTeX at htex://krunyx.com/examples/index.htex.
Resonance in a damped, driven oscillator¶
A short physics report on a mass on a spring: numbered equations, a theorem with a collapsible proof, a step-by-step derivation, tables, an animated figure, live sliders that redraw the plots, and references. The same study also appears as an ordinary LaTeX manuscript, Markdown lab notes, an HTML demo and a Korean edition.
Open in HyperTeX Read on the web
| File | What it shows | Open |
|---|---|---|
report.htexHyperTeX |
The main report. Sliders, animated SVG, TikZ and pgfplots figures, theorem, steps, bibliography. | HyperTeX · web · source |
derivation.htexHyperTeX |
Appendix with the full derivation. The report links to its equations and transcludes one of them. | HyperTeX · web · source |
notes.mdMarkdown |
Lab notes in Markdown with a data table, task list, footnote and links to equations in the report. | HyperTeX · web · source |
demo.htmlHTML |
An ordinary HTML page with a JavaScript animation of the driven oscillator. | HyperTeX · web · source |
classic/paper.texLaTeX |
The same paper as a journal-style LaTeX manuscript with \input files, a PDF figure, cleveref and a BibTeX .bbl. | HyperTeX · web · source |
report.ko.htexHyperTeX |
Korean edition, showing Hangul in math and Korean document labels. | HyperTeX · web · source |
macros.htexHyperTeX |
Shared notation loaded by the report and the appendix with \usemacros. | HyperTeX · web · source |
How an epidemic peaks: the SIR model¶
The classic model of an outbreak. A slider for the reproduction number redraws the epidemic's path, a plot is drawn from a data table, and a short policy briefing in Markdown links back to the equations.
Open in HyperTeX Read on the web
| File | What it shows | Open |
|---|---|---|
report.htexHyperTeX |
Model, threshold theorem, peak and final-size formulas, vaccination target, DOI references. | HyperTeX · web · source |
briefing.mdMarkdown |
A one-page policy briefing in Markdown that cites the report's equations. | HyperTeX · web · source |
data/sir.csvData |
Numerical solution used for the first figure. | web · source |
Heat flow in a rod and Fourier series¶
The heat equation solved by separation of variables. One slider moves time forward and the temperature profile relaxes; another adds Fourier terms and shows the Gibbs overshoot. An animated figure shows the rod cooling.
Open in HyperTeX Read on the web
| File | What it shows | Open |
|---|---|---|
report.htexHyperTeX |
Heat equation, separation of variables in steps, two sliders, animated SVG, materials table. | HyperTeX · web · source |
Add your own¶
Each example is a folder under
examples/ in the website's repository, with an
example.yml that gives its title, a summary and the files to list. A new folder with an example.yml appears
here and in the HyperTeX list automatically.