Left-align figure captions
Closed this issue · 2 comments
mvuorre commented
Left-align figure captions
danieltomasz commented
My workaround is to redefine it in yaml (with the addition of a space around a figure):
format:
preprint-typst:
include-in-header:
text: |
#show figure: set block(inset: (top: 1em, bottom: 1em))
#show figure: it => {
align(center, it.body)
align(left, it.caption)
}
mvuorre commented
That's great, thank you! I'll add that snippet in the preprint template file so it's automatically set for all captions. Optimally the alignment would be set upstream from Quarto/knitr options...
tbd in the near future.