Replies: 2 comments 1 reply
-
|
Hey! That's a great question about Quarto's cross-referencing. For subfigures, Quarto usually prepends the main figure number. To get just the subref label (like 'a') in the caption, you might need to look into using a custom filter or adjusting the crossref YAML options if they support 'subref-only' styling. Have you tried looking into the Pandoc crossref options as well? Sometimes the solution lies in the underlying Pandoc processing. Hope you find a clean way to do it! |
Beta Was this translation helpful? Give feedback.
-
|
There is no fine grained control like that. You can change the style of the cross-reference but it will apply to all references. The design assumes subfigures are children of a panel and should include the parent number for disambiguation (e.g., “Figure 1a” vs “Figure 2a”). Changing this requires custom logic because the crossref system resolves references using the combined numbering You usually don't reference elements in themselves. If you want to make a Lua filter, this would be way more involving. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I checked the docs, especially
but have not found a way to crossreference subfigures in captions just as "a" instead of "1a".
Note, outside the figure crossref like "1a" is fine.
How do I do that?
Here is a minimal working Example:
Beta Was this translation helpful? Give feedback.
All reactions