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

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

Copy complete 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": {2 keys
"background": "light1",
"footer": {1 key
"left": {1 key
"text": "Illustrative example • fictional data"
}
}
},
"slides": [1 item
{3 keys
"layout": "code",
"title": "Keep the implementation easy to inspect",
"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 key
"default": {1 key
"source": "https://www.pptx.gallery"
}
}
}

Regions, in reading order

This layout is one list of 3 regions, declared once. The list runs as a column; a split nests a list that runs the other way. Each size is a share of its parent’s width (row) or height (column).

Schematic of the list: each box is drawn in proportion to its size; an auto entry gets a fixed band. Dashed boxes are heading regions.

Column, stacked, top to bottom. No anchor is written on the layout: body regions start at the top unless they set their own.

  1. 1titleauto

    auto, the height the content needs

    Heading region: holds the slide’s title, with its tag and subtitle. It takes a size and no content rules.

  2. SplitRow, side by side, left to right100%

    size 1: 100% of what the auto entries leave

    1. 2code60%

      size 3: 60% of the width

      Accepts
      code
      Role
      primary
      Flow
      column, up to 6 blocks
      Anchor
      top (default)
    2. 3notes40%

      size 2: 40% of the width

      Accepts
      textlist
      Role
      supporting
      Flow
      column, up to 6 blocks
      Anchor
      top (default)
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 boxes.

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.