Grid layout in a presentation

Generate stunning slides effortlessly with Carbone

Download Template

Download data sample

  • Template type document pptx expert
  • Carbone min. v5.0.0+
  • Features loop transform
  • Target bank insurance quote custom

Objectives

Generate a gallery of objects in a PPTX document with the following features:

  • Repeat a box along the X and Y axes.

Solution

Here’s how to construct a PPTX template to achieve this with Carbone:

  1. Insert shapes

    Insert a shape, such as a text block, and include the information to be displayed using Carbone tags.

    Duplicate this shape and modify the text to define the iteration {d.stars[i+1]}

    Note : Use shapes instead of images or tables

  1. Define the offset for the repetition

    Right-click on the first shape, and navigate to the View Alt Text menu to set the transformations.

    Define the following formulas to configure the transformations on both axes

    {d.stars[i].starName:print(.i):mod(5):mul(6):transform(x,cm)}
    {d.stars[i].starName:print(.i):div(5):floor:mul(4):transform(y,cm)} 

    where :

    • print(.i) to consider the iterator of the loop with :print formatter
    • mod(A): to set the number of A objects that will be on a same row (ie, the number of columns) with :mod formatter
    • mul(B) to set the distance B with the next box with :mul formatter
    • transform(x, cm) to define the axis (x) of transformation and its unit with :transform formatter

    Note: This template does not create new slides. The data must fit within a single slide. If not use a DOCX template and set up the paper size to a custum size of 33cm x 19 cm, or use an ODP template

And there you go!

You might also like

Trusted by 600+ paid customers in 40+ countries

Finance
Healthcare
Public
Retail
Industries
Energy
Software
Telecom
1dior.png
22thales.png
23younited.png
2danfoss.png
3cma-cgm.png
3illumina.svg
4KparK.png
6scalingo.png
7defense.png
8bmw.png
8telus.png
bestseller.png
flagship_bioscience.png
insly.png
ninox.png
sodexo.png