Hextra Features for Physics Lessons
Use this page for practical, lesson-author-focused Hextra features that are especially useful in particle-physics tutorials. It complements upstream Hextra docs with domain-shaped examples instead of re-documenting every option.
High-value feature map
| Feature | Good fit in physics lessons | Upstream |
|---|---|---|
| LaTeX | equations, symbols, uncertainty notation | LaTeX |
| Mermaid | selection flow and collaboration diagrams | Diagrams |
| Tabs | OS/shell/package-manager variants | Tabs |
| Details | optional derivations and deep dives | Details |
| FileTree | repository and data layout orientation | FileTree |
| Cards | quick links to key lesson resources | Cards |
| Steps | short procedural workflows | Steps |
| Syntax highlighting | line numbers and highlighted snippets | Syntax Highlighting |
LaTeX for analysis notation
Inline notation works well for terms like , , and .
For standalone equations:
hugo-styles enables Goldmark passthrough delimiters so \(...\) and $$...$$ render correctly.
Mermaid for analysis and teaching flow
flowchart LR
A[Raw events] --> B[Reconstruction]
B --> C[Object selection]
C --> D[Signal region]
C --> E[Control region]
D --> F[Histogram + fit]
E --> F
sequenceDiagram
participant DAQ as Data acquisition
participant RECO as Reconstruction
participant ANA as Analysis team
participant REV as Internal review
DAQ->>RECO: Calibrated data stream
RECO->>ANA: Ntuples + metadata
ANA->>REV: Selection + uncertainty model
REV-->>ANA: Feedback and sign-off
Tabs for setup variants
Use the same labels across tab groups when you want sync behavior.
python -m venv .venv
source .venv/bin/activateFile orientation with FileTree and Cards
- 01-introduction/index.md
- 04-physics-doc-features/index.md
- setup.md
- hugo.toml
Steps and optional depth
Define the learning objective
Write the specific analysis skill the learner should gain.
Show the minimal reproducible command path
Keep platform-specific command variants in short tab groups.
Add one visual summary
Use Mermaid for workflow shape before detailed prose.
Add one optional deep-dive block
Use details for derivations that are useful but not required for first pass.
Optional derivation: Poisson counting uncertainty
Syntax-highlighted snippets
| |
For badge/PDF/video and other utility shortcodes, see Other Shortcodes.