quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
3.55k stars 293 forks source link

Subfigure caption indicator at the top left corner #811

Open rgaiacs opened 2 years ago

rgaiacs commented 2 years ago

Related issue: https://github.com/quarto-dev/quarto-cli/issues/90

Thanks for all the fabulous work.

Would be possible to allow users to place the subfigure caption indicator at the top left corner of the image and keep the figure caption at the bottom?

For example,

---
fig-sub-cap-location: top
fig-sub-cap-merge: true
---

::: {#fig-elephants layout-ncol="2"}
![Surus](elephant.png){#fig-surus}

![Hanno](elephant.png){#fig-hanno}

Famous Elephants
:::

would give

Screenshot from 2022-05-06 13-25-04

jjallaire commented 2 years ago

Thanks for the feedback. We'll be looking more closely at captions/subcaptions later this fall and will hopefully make some improvements along these lines then.

see24 commented 1 year ago

Being able to set the sub caption location would be an extremely helpful feature for scientific writing especially if it also applied to figures created in computations!