From e6739ecc2f78f023b7b6b1729983af30f657e6dd Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 29 May 2024 15:17:05 +0200 Subject: Fix figure centering (#4276) Co-authored-by: PgBiel <9021226+PgBiel@users.noreply.github.com> --- tests/ref/figure-align.png | Bin 0 -> 926 bytes tests/suite/model/figure.typ | 8 ++++++++ 2 files changed, 8 insertions(+) create mode 100644 tests/ref/figure-align.png (limited to 'tests') diff --git a/tests/ref/figure-align.png b/tests/ref/figure-align.png new file mode 100644 index 00000000..be287161 Binary files /dev/null and b/tests/ref/figure-align.png differ diff --git a/tests/suite/model/figure.typ b/tests/suite/model/figure.typ index 6846760f..13e94481 100644 --- a/tests/suite/model/figure.typ +++ b/tests/suite/model/figure.typ @@ -23,6 +23,13 @@ We can clearly see that @fig-cylinder and caption: [The complex table.], ) +--- figure-align --- +#show figure: set align(start) +#figure( + rect[This is \ left], + caption: [Start-aligned] +) + --- figure-table --- // Testing figures with tables. #figure( @@ -37,6 +44,7 @@ We can clearly see that @fig-cylinder and --- figure-theorem --- // Testing show rules with figures with a simple theorem display #show figure.where(kind: "theorem"): it => { + set align(start) let name = none if not it.caption == none { name = [ #emph(it.caption.body)] -- cgit v1.2.3