added column width options

This commit is contained in:
2024-10-04 15:11:45 +02:00
parent 647d50e125
commit 56cc1b11c0
10 changed files with 90 additions and 3 deletions

View File

@ -48,4 +48,20 @@
custom-image: none,
show-bottom: true,
show-top: true,
) = {}
/// Sets some options for columns between participants
///
/// Parameters `p1` and `p2` MUST be consecutive participants (also counting found/lost messages), but they do not need to be in the left to right order
/// - p1 (str): The first neighbouring participant
/// - p2 (str): The second neighbouring participant
/// - width (auto, int, float, length): Optional fixed width of the column\ If the column's content (e.g. sequence comments) is larger, it will overflow
/// - margin (int, float, length): Additional margin to add to the column\ This margin is not included in `width` and `min-width`, but rather added separately
/// - min-width (int, float, length): Minimum width of the column\ If set to a larger value than `width`, the latter will be overriden
#let _col(
p1,
p2,
width: auto,
margin: 0,
min-width: 0
) = {}