A Pinterest-like dynamic image layout for TeX
✓ Published0🌍 Public
BBastiTee
Last edited Jun 9, 2025
Created on Jun 9, 2025
This example demonstrates a Pinterest-like image grid that arranges up to eight photos automatically into two columns, with optional slots left blank when fewer images are supplied. The layout is fully dynamic, requiring only file paths as input. The code defines a custom LaTeX command using TikZ nodes and includegraphics from the graphicx package, positioning each image sequentially within its column. The xparse package enables the command’s optional arguments, while example images come from Unsplash. The design shows how vanilla TeX tooling in texlive can produce responsive visual layouts without external dependencies.
AI-generated descriptionA Pinterest-like dynamic image layout for TeX
Features
- Pinterest-like image layouts
- Up to 8 images per page
- Works dynamically with different numbers of pictures
- Fully automated layouting. Only file paths must be provided
- Vanilla TeX tooling available in
texlive
All example images taken from Unsplash