Skip to content

Commit

Permalink
Replace figure.caption with conditional show rule on version. Use sta…
Browse files Browse the repository at this point in the history
…rt instead of left

Co-Authored-By: PgBiel <PgBiel@@users.noreply.github.com>
  • Loading branch information
quachpas and PgBiel committed Oct 9, 2024
1 parent f9f8e80 commit d631d2e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions themes/default.typ
Original file line number Diff line number Diff line change
Expand Up @@ -683,8 +683,11 @@
user-print-back-references: default-print-back-references,
) = {
return [
#show figure.caption.where(kind: __glossarium_figure): align.with(left)
#show figure.where(kind: __glossarium_figure): it => it.caption
#show figure.where(kind: __glossarium_figure): it => if sys.version >= version(0, 12, 0) {
align(start, it.caption)
} else {
it.caption
}
#par(
hanging-indent: 1em,
first-line-indent: 0em,
Expand Down

0 comments on commit d631d2e

Please sign in to comment.