quarto-dev / quarto-dev/quarto-cli

Subfigure caption indicator at the top left corner

Open
#811 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

crossref enhancement figures
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the supplied front-matter and figure example in the Quarto CLI, then trace the existing subfigure-caption rendering path. Done means the subfigure indicator appears at the top left while the merged figure caption remains at the bottom.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown, yaml
Domain
cli, content
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.