added separators

This commit is contained in:
2024-06-18 16:18:40 +02:00
parent dc5d868a5d
commit b8d0c3468c
4 changed files with 49 additions and 4 deletions

View File

@ -48,11 +48,17 @@
),)
}
#let _sep(name) = {
return ((
type: "sep",
name: name
),)
}
#let diagram(elements) = {
let participants = ()
let elmts = elements
let i = 0
let a = elmts.len()
while i < elmts.len() {
let elmt = elmts.at(i)
if elmt.type == "grp" {
@ -67,9 +73,6 @@
}
i += 1
}
let b = elmts.len()
[#a / #b]
[#elmts.map(e => e.type)]
for elmt in elmts {
if elmt.type == "par" {