This commit is contained in:
4
tests/special-group/.gitignore
vendored
Normal file
4
tests/special-group/.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
# generated by tytanic, do not edit
|
||||
|
||||
diff/**
|
||||
out/**
|
BIN
tests/special-group/ref/1.png
Normal file
BIN
tests/special-group/ref/1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
BIN
tests/special-group/ref/2.png
Normal file
BIN
tests/special-group/ref/2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
BIN
tests/special-group/ref/3.png
Normal file
BIN
tests/special-group/ref/3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
BIN
tests/special-group/ref/5.png
Normal file
BIN
tests/special-group/ref/5.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.3 KiB |
71
tests/special-group/test.typ
Normal file
71
tests/special-group/test.typ
Normal file
@@ -0,0 +1,71 @@
|
||||
#set page(width: auto, height: auto)
|
||||
#import "/src/lib.typ": *
|
||||
|
||||
#let preamble = {
|
||||
_par("a", display-name: [Alice])
|
||||
_par("b", display-name: [Bob])
|
||||
_col("a", "b", width: 2cm)
|
||||
}
|
||||
|
||||
#diagram({
|
||||
preamble
|
||||
_grp("Group 1", {
|
||||
_seq("a", "b")
|
||||
})
|
||||
_grp("Group 2", desc: [Description], {
|
||||
_seq("a", "b")
|
||||
})
|
||||
})
|
||||
|
||||
#pagebreak()
|
||||
|
||||
#diagram({
|
||||
preamble
|
||||
_alt(
|
||||
"case 1", {
|
||||
_seq("a", "b")
|
||||
},
|
||||
"case 2", {
|
||||
_seq("a", "b")
|
||||
},
|
||||
"case 3", {
|
||||
_seq("a", "b")
|
||||
}
|
||||
)
|
||||
})
|
||||
|
||||
#pagebreak()
|
||||
|
||||
#diagram({
|
||||
preamble
|
||||
_loop("loop 1", {
|
||||
_seq("a", "b")
|
||||
})
|
||||
_loop("loop 2", min: 1, {
|
||||
_seq("a", "b")
|
||||
})
|
||||
_loop("loop 3", max: 10, {
|
||||
_seq("a", "b")
|
||||
})
|
||||
_loop("loop 3", min: 1, max: 10, {
|
||||
_seq("a", "b")
|
||||
})
|
||||
})
|
||||
|
||||
#pagebreak()
|
||||
|
||||
#diagram({
|
||||
preamble
|
||||
_opt("Optional", {
|
||||
_seq("a", "b")
|
||||
})
|
||||
})
|
||||
|
||||
#pagebreak()
|
||||
|
||||
#diagram({
|
||||
preamble
|
||||
_break("Break", {
|
||||
_seq("a", "b")
|
||||
})
|
||||
})
|
Reference in New Issue
Block a user