diff --git a/gallery/example2.pdf b/gallery/example2.pdf index d1d5ae5..68205a3 100644 Binary files a/gallery/example2.pdf and b/gallery/example2.pdf differ diff --git a/gallery/example2.typ b/gallery/example2.typ index c078461..9a49d5d 100644 --- a/gallery/example2.typ +++ b/gallery/example2.typ @@ -61,8 +61,8 @@ _gap() _sync({ - _seq("bob", "alice") - _seq("bob", "craig") + _seq("bob", "alice", comment: "Synched", comment-align: "start") + _seq("bob", "craig", comment: "Synched", comment-align: "start") }) _gap() diff --git a/src/renderer.typ b/src/renderer.typ index 8953a40..f55aa8f 100644 --- a/src/renderer.typ +++ b/src/renderer.typ @@ -20,6 +20,16 @@ let pars-i = get-participants-i(participants) let cells = () + // Unwrap syncs + let i = 0 + while i < elements.len() { + let elmt = elements.at(i) + if elmt.type == "sync" { + elements = elements.slice(0, i + 1) + elmt.elmts + elements.slice(i + 1) + } + i += 1 + } + // Compute max lifeline levels for elmt in elements { if elmt.type == "seq" {