Grid layout in a presentation
Generate stunning slides effortlessly with Carbone
- 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:
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
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 formattermod(A):
to set the number of A objects that will be on a same row (ie, the number of columns) with :mod formattermul(B)
to set the distance B with the next box with :mul formattertransform(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














