mirror of
https://github.com/typst/typst
synced 2025-05-19 19:45:29 +08:00
Slight improvement to attach.rs's doc (#996)
This commit is contained in:
parent
b0c088740e
commit
1efbcad46e
@ -10,7 +10,7 @@ use super::*;
|
|||||||
/// // With function call.
|
/// // With function call.
|
||||||
/// $ attach(
|
/// $ attach(
|
||||||
/// Pi, t: alpha, b: beta,
|
/// Pi, t: alpha, b: beta,
|
||||||
/// tl: 1, tr: 2, bl: 3, br: 4,
|
/// tl: 1, tr: 2+3, bl: 4+5, br: 6,
|
||||||
/// ) $
|
/// ) $
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
@ -34,8 +34,10 @@ pub struct AttachElem {
|
|||||||
pub t: Option<Content>,
|
pub t: Option<Content>,
|
||||||
|
|
||||||
/// The bottom attachment, smartly positioned at the bottom-right or below
|
/// The bottom attachment, smartly positioned at the bottom-right or below
|
||||||
/// the base. You can wrap the base in `{limits()}` or `{scripts()}` to
|
/// the base.
|
||||||
/// override the smart positioning.
|
///
|
||||||
|
/// You can wrap the base in `{limits()}` or `{scripts()}` to override the
|
||||||
|
/// smart positioning.
|
||||||
pub b: Option<Content>,
|
pub b: Option<Content>,
|
||||||
|
|
||||||
/// The top-left attachment (before the base).
|
/// The top-left attachment (before the base).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user