PPTX.gallery

Layout Pattern

Code

Show a code example or technical excerpt. Keep the excerpt focused and use the title or caption to explain its purpose.

CodeVisuals

How to Use It

Show a code example or technical excerpt. Keep the excerpt focused and use the title or caption to explain its purpose.

Preview + source

Explore this layout

Show a short implementation that the audience can actually inspect.

All people, quotations and business figures in these examples are illustrative.

Code: canonical rendered example
Inspect full-size SVG

This prepared preview and the OPF describe the same example. Area outlines show measured allocation; toggling them does not change the slide.

Copy complete portable OPF

Inspect compact default-catalog references. Your host must register the matching catalog; source identifies it without fetching over the network. Copy always includes complete embedded records.

{5 keys
"$schema": "https://openpresentation.org/schema/opf/v1",
"name": "Layout fixture code",
"design": {1 keys
"background": "light1"
},
"slides": [1 items
{4 keys
"layout": "code",
"title": "Keep the implementation easy to inspect",
"subtitle": "Illustrative example • fictional data",
"blocks": [2 items
{2 keys
"region": "code",
"code": {2 keys
"language": "javascript",
"source": "const total = items.reduce((sum, item) => sum + item.value, 0);\nconsole.log(total);"
}
},
{2 keys
"region": "notes",
"text": "The reducer adds each item’s value to a running sum. Starting at zero also makes an empty list return zero."
}
]
}
],
"catalogs": {1 keys
"default": {1 keys
"source": "https://www.pptx.gallery"
}
}
}
Layout structure and reference fields
How automatic composition differs

Try dynamic composition

Explore how a text slide reflows as you change its content and shape. These examples use OPF’s shared composition rules; the copied document includes your choices.

Let the content find its spaceStart with the decision. State what the audience should understand or do.Show the evidence. Give each supporting idea enough space to be read.Make the next step clear. Keep the action specific and easy to remember.

All sample text fits within its content areas.

View the complete OPF example
{
  "$schema": "https://openpresentation.org/schema/opf/v1",
  "name": "Dynamic composition example",
  "design": {
    "dimensions": {
      "widthInches": 13.333333333333334,
      "heightInches": 7.5
    }
  },
  "slides": [
    {
      "title": "Let the content find its space",
      "composition": {
        "mode": "auto"
      },
      "blocks": [
        {
          "text": "Start with the decision. State what the audience should understand or do."
        },
        {
          "text": "Show the evidence. Give each supporting idea enough space to be read."
        },
        {
          "text": "Make the next step clear. Keep the action specific and easy to remember."
        }
      ]
    }
  ]
}

Composition rules and examples as JSON · Pagination rules and example JSON

Similar OPF layout slugs with matching content types, spatial patterns, or presentation use cases.