Inline references — the {astra} role¶
The {astra} role mentions any addressable element inside a sentence:
We adopt the {astra}`decisions.algorithm` and report {astra}`outputs.hubble_diagram`,
which confirms {astra}`findings.signal_detected`.
Each reference renders as a neutral text label — the element's label: (or its id, humanised) — so the sentence reads naturally on any theme. A rich theme upgrades the same token with a kind glyph and a record dialog; the Markdown does not change.
Custom display text¶
Override the label with MyST's text <target> convention (as used by {ref}):
What you can reference¶
Any path works — elements, children, and sub-analyses:
{astra}`decisions.algorithm` a decision (renders its label)
{astra}`decisions.algorithm.gp` one option (renders the option label)
{astra}`outputs.hubble_diagram` an output
{astra}`findings.signal_detected` a finding
{astra}`prior_insights.recon_sharpens_bao` a prior insight
{astra}`inputs.raw_catalog` an input
{astra}`reconstruction` a sub-analysis (renders its name)
{astra}`reconstruction.outputs.xi` an element inside a sub-analysis
Numbered references¶
For a numbered reference to a placed figure or table, give the block an explicit
:label: and use MyST's standard {ref} role. MyST then owns validation,
numbering, and cross-page resolution:
Citations — {astra:cite} and {astra:cite:t}¶
Findings and prior insights can carry DOI-backed evidence. The cite roles turn that evidence into real bibliographic citations through MyST's citation pipeline:
{astra:cite}`prior_insights.recon_sharpens_bao` # "(Chen et al., 2024)" — parenthetical
{astra:cite:t}`prior_insights.recon_sharpens_bao` # "Chen et al. (2024)" — textual
- The role accepts findings and prior-insight paths only.
- Every distinct DOI on the element's evidence is cited; multiple DOIs render as a citation group.
- An element with no DOI evidence falls back to a plain inline reference (same as
{astra}), so the sentence still reads.
Because the citations go through MyST, they participate in the project bibliography: once your myst.yml wires a bibliography, the reference list includes these entries automatically.
Errors and fallbacks¶
Inline surfaces degrade gracefully rather than breaking the page: a path that cannot be resolved (unknown id, missing scope) still renders a plain label from the path, and a {astra:cite} on a non-citable path renders a small inline error token — so a typo is visible in the preview without hiding the surrounding prose.