summaryrefslogtreecommitdiff
path: root/library/src/layout/table.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-03-27 22:25:20 +0200
committerLaurenz <laurmaedje@gmail.com>2023-03-27 22:31:29 +0200
commite83e05d5417418e0845eccdb660fe2210215e301 (patch)
tree67016c2ebe74d19c7522d61673abecd25da44e57 /library/src/layout/table.rs
parent66de90437f64e532a51297dc233c57c2cda9a124 (diff)
Term list separator changes
Diffstat (limited to 'library/src/layout/table.rs')
-rw-r--r--library/src/layout/table.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/library/src/layout/table.rs b/library/src/layout/table.rs
index 809c7ea7..6d3e7791 100644
--- a/library/src/layout/table.rs
+++ b/library/src/layout/table.rs
@@ -87,6 +87,15 @@ pub struct TableElem {
/// This can either be a single alignment or a function that returns an
/// alignment. The function is passed the cell's column and row index,
/// starting at zero. If set to `{auto}`, the outer alignment is used.
+ ///
+ /// ```example
+ /// #table(
+ /// columns: 3,
+ /// align: (x, y) => (left, center, right).at(x),
+ /// [Hello], [Hello], [Hello],
+ /// [A], [B], [C],
+ /// )
+ /// ```
pub align: Celled<Smart<Axes<Option<GenAlign>>>>,
/// How to stroke the cells.