Skip to main content

Figures & Captions

The problem

You have images in documents with no captions, no numbering, and no way to reference "Figure 3" from the text. Images float wherever they land — there's no structure.

The solution

figure: creates numbered, captioned, referenceable figures. Use image: for inline images that flow with text. Use figure: when you need a formal figure.

image: vs figure:

image:figure:
NumberedNoYes — num: renders Figure N: in the caption
CaptionedOptional caption:Yes — caption: property
ReferenceableNoYes — by figure number
LayoutFlows inline with textStandalone centered block with caption
Use whenDecorative or inline imagesCharts, diagrams, data visualizations

Using image:

text: Our office is located in downtown San Francisco.
image: Office building | src: /images/office.jpg
text: We've been at this location since 2015.

Simple. Inline. No number or caption.

Using figure:

figure: Monthly revenue trend | src: /images/revenue-chart.png | num: 1 | caption: Revenue grew 22% YoY with strongest growth in Q4 | source: Internal analytics | width: 80%

figure: Architecture diagram | src: /images/architecture.svg | num: 2 | caption: High-level system architecture showing the three-tier design | source: Engineering team

figure: Customer satisfaction scores | src: /images/csat-chart.png | num: 3 | caption: CSAT improved from 3.8 to 4.5 after the support redesign | source: Zendesk analytics

num: renders as a Figure N: prefix on the caption — numbering is explicit and stays stable when figures are reordered or referenced from other documents.

Properties

PropertyDescription
src:File path or URL to the image
caption:Description text displayed below the figure
source:Data source attribution (queryable)
width:Display width (CSS value)
num:Figure number — renders as Figure N:
alt:Alternative text for accessibility

Research report with figures

title: Q1 2026 Cloud Services Market Report
summary: Market analysis with data visualizations
meta: | type: report | domain: research

section: Market Overview

text: The global cloud services market reached $540B in Q1 2026, representing 22% year-over-year growth. Three providers — AWS, Azure, and GCP — continue to hold 67% combined market share.

figure: Cloud market size 2022–2026 | src: /images/market-size.png | num: 1 | caption: Cloud services market grew from $380B to $540B over four years | source: Gartner Cloud Infrastructure Report 2026

section: Competitive Landscape

text: AWS maintained its lead at 31% market share, though Azure narrowed the gap to 7 percentage points — the smallest ever.

figure: Market share by provider | src: /images/market-share.png | num: 2 | caption: AWS 31%, Azure 24%, GCP 12%, Others 33% | source: Synergy Research Group

section: Growth Segments

figure: Growth rate by segment | src: /images/segment-growth.png | num: 3 | caption: AI/ML services grew fastest at 47% YoY, followed by edge computing at 35% | source: IDC Cloud Tracker

text: AI/ML cloud services were the fastest-growing segment for the third consecutive quarter.

figure: Regional growth comparison | src: /images/regional-growth.png | num: 4 | caption: APAC led growth at 28% YoY, compared to 20% in North America and 18% in EMEA | source: IDC Cloud Tracker

This renders with:

  • Figure 1: Cloud market size 2022–2026
  • Figure 2: Market share by provider
  • Figure 3: Growth rate by segment
  • Figure 4: Regional growth comparison

In print/PDF output, figures render as standalone blocks:

  • Figures are centered with a light border around the image
  • width: constrains the image (e.g. width: 80%); images never overflow the page
  • Captions appear below the figure, centered and italic
  • num: prefixes the caption: Figure 1: followed by the caption text

Querying figures

# All figures across reports
dotit query ./reports --type figure --format table

# Figures from a specific source
dotit query ./reports --type figure --content "Gartner" --format json

Next steps