Documents and slides
Compose report fragments, captions, and portable slide decks.
Document output lets a calculation return a report-like structure whose building blocks can form a notebook result, generated handout, or presentation slide.
Compose a fragment explicitly
.Fragment holds an ordered sequence of output values. .Heading and .Paragraph establish document structure; .Figure adds a caption and label around any output value.
The label is useful to a renderer or exporter even though RiX Web simply shows the figure in place. Keep labels stable when you expect a document to grow.
Write a compact document template
For text-heavy reports, @"""...""" makes a Fragment directly. Blank lines separate document blocks. Prefix a block with h1: through h6: to start a section, or use fig: / table: for a captioned standalone value. @{...} evaluates now and inserts the resulting value.
Interpolation here is different from a deferred block such as @{; ...}. The template evaluates the interpolation immediately and stores the resulting text or output value in the document.
Use the template’s document syntax
The template has a compact, strict Markdown-like inline vocabulary: *emphasis*, strong, *both*, ` code , $math$, and [label](link: primary {attributes}). It intentionally does not use underscore delimiters, so ordinary RiX-style names such as exact_value stay ordinary text. @@{ writes a literal @{`, even inside code or math.
The h1: creates the outer Section; a later h2: would become its child, while another h1: starts a sibling. The parser rejects skipped heading levels and runs of four or more asterisks, so ambiguous markup is caught where it is authored.
Keep inline meaning and document blocks
Paragraph children can now be semantic inline values rather than values that a renderer flattens to text. Sections, quotations, callouts, code blocks, display math, and nested lists are all portable records. The browser chooses HTML elements; a terminal keeps an honest text fallback.
Image, Audio, and Video wrap an .Asset reference rather than pretending that a vector .Graphic is a photograph or media file. Image alternative text is required; audio and video retain an optional transcript that export hosts can require. Asset resolution stays with the host, so a RiX record never opens a file or fetches a URL by itself.
Wrap a graphic as a figure
Figures are not limited to tables. This creates a small plot, then gives it a caption and a stable label for document cross references. The document plugin tutorial connects these records to publication planning; renderer tutorials cover HTML, LaTeX and other exports.
Build a deck one slide at a time
.Slide attaches a title and optional metadata to one output value. .Slides preserves the order of those slides. RiX Web renders the current deck as a series of clearly separated slide sections; other hosts can add navigation or export without changing the RiX source.