Skip to content

Commit

Permalink
Add scope parameter to super
Browse files Browse the repository at this point in the history
  • Loading branch information
tingerrr committed Nov 18, 2024
1 parent bda57ee commit 0c960f5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# [unreleased](https://github.com/tingerrr/subpar/tags/)
## Added
- added scope paramter to `super` and `grid`

## Removed

Expand Down
9 changes: 9 additions & 0 deletions src/lib.typ
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
/// - caption (content): The caption of this super figure.
/// - placement (alignment, auto, none): The float placement of this super
/// figure.
/// - scope (str): Relative to which containing scope the figure is placed. Set
/// this to `"parent"` to create a full-width figure in a two-column document.
/// Has no effect if placement is `none`. Can be set to `"parent"` or
/// `"column"`.
/// - gap (length): The gap between this super figure's caption and body.
/// - outlined (bool): Whether this super figure should appear in an outline of
/// figures.
Expand All @@ -53,6 +57,7 @@
propagate-supplement: true,
caption: none,
placement: none,
scope: "column",
gap: 0.65em,
outlined: true,
outlined-sub: false,
Expand Down Expand Up @@ -113,6 +118,7 @@
supplement: supplement,
caption: caption,
placement: placement,
scope: scope,
gap: gap,
outlined: outlined,
{
Expand Down Expand Up @@ -184,6 +190,7 @@
/// - caption (content): Corressponds to the super figure's `caption`.
/// - placement (alignment, auto, none): Corressponds to the super figure's
/// `placement`.
/// - scope (str): Corressponds to the super figure's `scope`.
/// - gap (length): Corressponds to the super figure's `gap`.
/// - outlined (bool): Corressponds to the super figure's `outlined`.
/// - outlined-sub (bool): Corressponds to the super figure's `outlined-sub`.
Expand Down Expand Up @@ -211,6 +218,7 @@
propagate-supplement: true,
caption: none,
placement: none,
scope: "column",
gap: 0.65em,
outlined: true,
outlined-sub: false,
Expand Down Expand Up @@ -264,6 +272,7 @@
propagate-supplement: propagate-supplement,
caption: caption,
placement: placement,
scope: scope,
gap: gap,
outlined: outlined,
outlined-sub: outlined-sub,
Expand Down

0 comments on commit 0c960f5

Please sign in to comment.