Skip to content

Instantly share code, notes, and snippets.

@baptiste
Last active August 4, 2025 00:28
Show Gist options
  • Select an option

  • Save baptiste/14ee8a3afac294c732841388986fcb03 to your computer and use it in GitHub Desktop.

Select an option

Save baptiste/14ee8a3afac294c732841388986fcb03 to your computer and use it in GitHub Desktop.
{
"tldrawFileFormatVersion": 1,
"schema": {
"schemaVersion": 2,
"sequences": {
"com.tldraw.store": 4,
"com.tldraw.asset": 1,
"com.tldraw.camera": 1,
"com.tldraw.document": 2,
"com.tldraw.instance": 25,
"com.tldraw.instance_page_state": 5,
"com.tldraw.page": 1,
"com.tldraw.instance_presence": 6,
"com.tldraw.pointer": 1,
"com.tldraw.shape": 4,
"com.tldraw.asset.bookmark": 2,
"com.tldraw.asset.image": 5,
"com.tldraw.asset.video": 5,
"com.tldraw.shape.group": 0,
"com.tldraw.shape.text": 3,
"com.tldraw.shape.bookmark": 2,
"com.tldraw.shape.draw": 2,
"com.tldraw.shape.geo": 10,
"com.tldraw.shape.note": 9,
"com.tldraw.shape.line": 5,
"com.tldraw.shape.frame": 1,
"com.tldraw.shape.arrow": 7,
"com.tldraw.shape.highlight": 1,
"com.tldraw.shape.embed": 4,
"com.tldraw.shape.image": 5,
"com.tldraw.shape.video": 4,
"com.tldraw.binding.arrow": 1
}
},
"records": [
{
"id": "pointer:pointer",
"typeName": "pointer",
"x": 295.4291140373289,
"y": -13904.42075271065,
"lastActivityTimestamp": 1754252612453,
"meta": {}
},
{
"x": -40,
"y": -16107.698423276395,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
"id": "shape:GHQ0XzvCFG1CFUJbQijYJ",
"type": "frame",
"props": {
"w": 2460,
"h": 3209.485895478754,
"name": "poster",
"color": "black"
},
"parentId": "page:page",
"index": "a49lh",
"typeName": "shape"
},
{
"x": 273.78069430855794,
"y": 2297.717268375962,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
"id": "shape:SZekWUW5kuy6etl-UjZQI",
"type": "frame",
"props": {
"w": 698.109652845721,
"h": 451.4683152187263,
"name": "whatever",
"color": "black"
},
"parentId": "shape:GHQ0XzvCFG1CFUJbQijYJ",
"index": "a44fx",
"typeName": "shape"
},
{
"x": 2223.471147956333,
"y": 16318.146980336218,
"z": 0.20563044645493872,
"meta": {},
"id": "camera:page:page",
"typeName": "camera"
},
{
"editingShapeId": null,
"croppingShapeId": null,
"selectedShapeIds": [
"shape:SZekWUW5kuy6etl-UjZQI"
],
"hoveredShapeId": "shape:SZekWUW5kuy6etl-UjZQI",
"erasingShapeIds": [],
"hintingShapeIds": [],
"focusedGroupId": null,
"meta": {},
"id": "instance_page_state:page:page",
"pageId": "page:page",
"typeName": "instance_page_state"
},
{
"x": 273.78069430855794,
"y": 1366.230108057669,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
"id": "shape:c7frqvsUmFl-tcT7Ks8Fn",
"type": "frame",
"props": {
"w": 698.109652845721,
"h": 772.9554755370192,
"name": "intro",
"color": "black"
},
"parentId": "shape:GHQ0XzvCFG1CFUJbQijYJ",
"index": "a23tC",
"typeName": "shape"
},
{
"x": 273.78069430855794,
"y": 330.8550282743963,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
"id": "shape:ENXOtDP_DzUz6Mo6Cl1T2",
"type": "frame",
"props": {
"w": 1986.219305691442,
"h": 876.8433950019988,
"name": "test",
"color": "black"
},
"parentId": "shape:GHQ0XzvCFG1CFUJbQijYJ",
"index": "a1",
"typeName": "shape"
},
{
"x": 1100,
"y": 1366.230108057669,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
"id": "shape:QgUaao5khL8F1QVvb6KwH",
"type": "frame",
"props": {
"w": 1160,
"h": 1382.9554755370193,
"name": "methods",
"color": "black"
},
"parentId": "shape:GHQ0XzvCFG1CFUJbQijYJ",
"index": "a382w",
"typeName": "shape"
},
{
"meta": {},
"id": "page:page",
"name": "Page 1",
"index": "a1",
"typeName": "page"
},
{
"gridSize": 10,
"name": "",
"meta": {},
"id": "document:document",
"typeName": "document"
},
{
"followingUserId": null,
"opacityForNextShape": 1,
"stylesForNextShape": {},
"brush": null,
"scribbles": [],
"cursor": {
"type": "default",
"rotation": 0
},
"isFocusMode": false,
"exportBackground": true,
"isDebugMode": false,
"isToolLocked": false,
"screenBounds": {
"x": 0,
"y": 0,
"w": 1405.90087890625,
"h": 783.82080078125
},
"insets": [
false,
false,
true,
false
],
"zoomBrush": null,
"isGridMode": true,
"isPenMode": false,
"chatMessage": "",
"isChatting": false,
"highlightedUserIds": [],
"isFocused": true,
"devicePixelRatio": 0.9645061492919922,
"isCoarsePointer": false,
"isHoveringCanvas": true,
"openMenus": [],
"isChangingStyle": false,
"isReadonly": false,
"meta": {},
"duplicateProps": {
"shapeIds": [
"shape:SZekWUW5kuy6etl-UjZQI"
],
"offset": {
"x": 0,
"y": 931.4871603182928
}
},
"id": "instance:instance",
"currentPageId": "page:page",
"typeName": "instance"
}
]
}
#let tldraw-layout(j, scale: 0.352) = {
let canvas = j.records.filter(it => "parentId" in it.keys() and it.parentId == "page:page").at(0)
let container = (x: canvas.x*scale, y: canvas.y*scale,
width: canvas.props.w*scale, height: canvas.props.h*scale)
let frames = j.records.filter(it => "type" in it.keys() and it.type == "frame" and it.parentId != "page:page").map(it => ((it.props.name): (x: (it.x*scale) , y:(it.y*scale),
width: it.props.w*scale, height: it.props.h*scale, name: it.props.name),)).join()
(container: container, frames: frames)
}
#set rect(stroke:red)
#let j = json("layout.tldr")
#let (container, frames) = tldraw-layout(j, scale:0.035)
#set page(
width: container.width * 1mm,
height: container.height * 1mm,
margin: 0pt
)
#let content-list = (intro: lorem(6),
test: lorem(20),
methods: lorem(25),
whatever: text[you say])
#frames.pairs().map(f =>
place(
dx:f.at(1).x*1mm,
dy:f.at(1).y*1mm,
rect(width: f.at(1).width*1mm,
height:f.at(1).height*1mm)[#smallcaps[*#f.at(1).name*] – #content-list.at(f.at(1).name)])).join()
#import "@preview/poster-syndrome:0.1.0": *
#import "@preview/codetastic:0.2.2": qrcode
#let tldraw-layout(j, scale: 0.352) = {
let canvas = j.records.filter(it => "parentId" in it.keys() and it.parentId == "page:page").at(0)
let container = (x: canvas.x*scale, y: canvas.y*scale,
width: canvas.props.w*scale, height: canvas.props.h*scale)
let frames = j.records.filter(it => "type" in it.keys() and it.type == "frame" and it.parentId != "page:page").map(it => ((it.props.name): (x: (it.x*scale) , y:(it.y*scale),
width: it.props.w*scale, height: it.props.h*scale, name: it.props.name),)).join()
(container: container, frames: frames)
}
// retrieve frames
#let (container, frames) = tldraw-layout(json("poster_layout.tldr"))
// initialise with given frames
#let (poster, frame) = poster-syndrome-setup(
container: container,
frames: frames)
#show: poster.with(
title: text[poster title],
subtitle: text[s · u · b · t · i · t · l · e],
authors: text[Author 1\
Author 2 \
Author 3],
affiliation: text(size:28pt)[Address],
qr-code: block(qrcode("url.com", width: 2cm, ecl:"l",
colors: (white, maroon), quiet-zone: 0)),
date: datetime.today().display(),
cover-image: square(fill:luma(95%),width:100%),
credit: "Credit",
foreground: _page-foreground(frames: frames),
)
#frame(tag:"introduction")[
#columns(2)[
#lorem(200)
]
]
#frame(tag:"description")[
== Heading
#lorem(100)
=== Sub-heading
#lorem(100)
#lorem(100)
]
#frame(tag:"methods")[
#columns(2, gutter: 24pt)[
== Heading
#lorem(100)
#lorem(120)
#colbreak()
#lorem(130)
#lorem(100)
]
]
#frame(tag:"illustration")[
#let li = (insta(),)*6
#grid(columns:6*(1fr,),column-gutter: 10pt,..li)
]
#frame(tag:"outlook")[
#columns(3)[
== Heading
Lorem ipsum dolor sit amet,
1. consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
2. labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
3. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident,
4. sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur elit.
#colbreak()
== Heading
Lorem ipsum dolor sit amet, consectetur adipiscing elit,
- Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
- Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
- Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Mollit anim id est laborum,
#colbreak()
== Heading
#lorem(100)
]
]
{
"tldrawFileFormatVersion": 1,
"schema": {
"schemaVersion": 2,
"sequences": {
"com.tldraw.store": 4,
"com.tldraw.asset": 1,
"com.tldraw.camera": 1,
"com.tldraw.document": 2,
"com.tldraw.instance": 25,
"com.tldraw.instance_page_state": 5,
"com.tldraw.page": 1,
"com.tldraw.instance_presence": 6,
"com.tldraw.pointer": 1,
"com.tldraw.shape": 4,
"com.tldraw.asset.bookmark": 2,
"com.tldraw.asset.image": 5,
"com.tldraw.asset.video": 5,
"com.tldraw.shape.group": 0,
"com.tldraw.shape.text": 3,
"com.tldraw.shape.bookmark": 2,
"com.tldraw.shape.draw": 2,
"com.tldraw.shape.geo": 10,
"com.tldraw.shape.note": 9,
"com.tldraw.shape.line": 5,
"com.tldraw.shape.frame": 1,
"com.tldraw.shape.arrow": 7,
"com.tldraw.shape.highlight": 1,
"com.tldraw.shape.embed": 4,
"com.tldraw.shape.image": 5,
"com.tldraw.shape.video": 4,
"com.tldraw.binding.arrow": 1
}
},
"records": [
{
"id": "pointer:pointer",
"typeName": "pointer",
"x": 3995.0454088563965,
"y": 734.3562079335212,
"lastActivityTimestamp": 1754266460798,
"meta": {}
},
{
"x": 535.4495945307181,
"y": 1872.280033309226,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
"id": "shape:NOE7_FWp2O86WSr_DYMXq",
"type": "frame",
"props": {
"w": 1052.7321776169165,
"h": 357.9349799772919,
"name": "introduction",
"color": "black"
},
"parentId": "shape:HWJLV80WT6-1Pp2p1ei6h",
"index": "a47Rs",
"typeName": "shape"
},
{
"x": -3333.599635340196,
"y": -50.81168391541887,
"z": 0.5234143431557439,
"meta": {},
"id": "camera:page:page",
"typeName": "camera"
},
{
"x": 1787.825929821127,
"y": 1752.9176637702617,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
"id": "shape:UE8Pzy3VIPe5vlteD93OY",
"type": "frame",
"props": {
"w": 1386.5318822133581,
"h": 477.2973495162562,
"name": "outlook",
"color": "black"
},
"parentId": "shape:HWJLV80WT6-1Pp2p1ei6h",
"index": "a81gV",
"typeName": "shape"
},
{
"editingShapeId": null,
"croppingShapeId": null,
"selectedShapeIds": [
"shape:It6jf28Cu1HEa1i-b6WQ9"
],
"hoveredShapeId": "shape:RTOoK5YzPnU4usHcPt-NL",
"erasingShapeIds": [],
"hintingShapeIds": [],
"focusedGroupId": null,
"meta": {},
"id": "instance_page_state:page:page",
"pageId": "page:page",
"typeName": "instance_page_state"
},
{
"x": 170.16047066651117,
"y": 1588.6757730130016,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
"id": "shape:RTOoK5YzPnU4usHcPt-NL",
"type": "frame",
"props": {
"w": 1418.0213014811236,
"h": 135.52769961058493,
"name": "title",
"color": "black"
},
"parentId": "shape:HWJLV80WT6-1Pp2p1ei6h",
"index": "a90fG",
"typeName": "shape"
},
{
"x": 1787.8259298211265,
"y": 170.6544715318778,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
"id": "shape:hSKdv0_AziCZL-gawHbAX",
"type": "frame",
"props": {
"w": 533.209329109673,
"h": 1159.5147633350066,
"name": "description",
"color": "black"
},
"parentId": "shape:HWJLV80WT6-1Pp2p1ei6h",
"index": "a5BuY",
"typeName": "shape"
},
{
"x": 170.16047066651117,
"y": 1752.9176637702617,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
"id": "shape:It6jf28Cu1HEa1i-b6WQ9",
"type": "frame",
"props": {
"w": 1418.0213014811236,
"h": 66.65715302373656,
"name": "subtitle",
"color": "black"
},
"parentId": "shape:HWJLV80WT6-1Pp2p1ei6h",
"index": "a29cw",
"typeName": "shape"
},
{
"x": 3701.1846702047005,
"y": -1020.9818357113752,
"rotation": 0,
"isLocked": false,
"opacity": 0.25,
"meta": {},
"id": "shape:HWJLV80WT6-1Pp2p1ei6h",
"type": "frame",
"props": {
"w": 3356.3122073208265,
"h": 2318.962691684544,
"name": "poster",
"color": "black"
},
"parentId": "page:page",
"index": "a2ALs",
"typeName": "shape"
},
{
"x": 1787.825929821127,
"y": 1380.3646791671017,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
"id": "shape:WDdGo_rUA-sfpjxbxvBp_",
"type": "frame",
"props": {
"w": 1386.5318822133581,
"h": 304.7891347978675,
"name": "illustration",
"color": "black"
},
"parentId": "shape:HWJLV80WT6-1Pp2p1ei6h",
"index": "a75Iy",
"typeName": "shape"
},
{
"x": 170.16047066651095,
"y": 170.6544715318778,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
"id": "shape:h9QwS21IoKy8yAInc8uci",
"type": "frame",
"props": {
"w": 1418.0213014811236,
"h": 1415.5115292661126,
"name": "cover-image",
"color": "black"
},
"parentId": "shape:HWJLV80WT6-1Pp2p1ei6h",
"index": "a1",
"typeName": "shape"
},
{
"x": 170.16047066651117,
"y": 1872.280033309226,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
"id": "shape:m-hWyNWeG-ed1IjKkdpoz",
"type": "frame",
"props": {
"w": 313.7215268763546,
"h": 357.9349799772919,
"name": "details",
"color": "black"
},
"parentId": "shape:HWJLV80WT6-1Pp2p1ei6h",
"index": "a33s5",
"typeName": "shape"
},
{
"meta": {},
"id": "page:page",
"name": "Page 1",
"index": "a1",
"typeName": "page"
},
{
"gridSize": 10,
"name": "",
"meta": {},
"id": "document:document",
"typeName": "document"
},
{
"followingUserId": null,
"opacityForNextShape": 1,
"stylesForNextShape": {},
"brush": null,
"scribbles": [],
"cursor": {
"type": "ns-resize",
"rotation": 0
},
"isFocusMode": false,
"exportBackground": true,
"isDebugMode": false,
"isToolLocked": false,
"screenBounds": {
"x": 0,
"y": 0,
"w": 1316.736083984375,
"h": 783.82080078125
},
"insets": [
false,
false,
true,
false
],
"zoomBrush": null,
"isGridMode": false,
"isPenMode": false,
"chatMessage": "",
"isChatting": false,
"highlightedUserIds": [],
"isFocused": true,
"devicePixelRatio": 0.9645061492919922,
"isCoarsePointer": false,
"isHoveringCanvas": true,
"openMenus": [],
"isChangingStyle": false,
"isReadonly": false,
"meta": {},
"duplicateProps": null,
"id": "instance:instance",
"currentPageId": "page:page",
"typeName": "instance"
},
{
"x": 2395.190805853749,
"y": 170.6544715318778,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
"id": "shape:lXelDl4BtcxGNSql0AzsE",
"type": "frame",
"props": {
"w": 779.1670061807354,
"h": 1159.5147633350066,
"name": "methods",
"color": "black"
},
"parentId": "shape:HWJLV80WT6-1Pp2p1ei6h",
"index": "a62Kf",
"typeName": "shape"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment