New figure.caption
isn't flexible in set rules
#2133
Andrew15-5
started this conversation in
General
Replies: 2 comments
-
The supplement and numbering are owned by the |
Beta Was this translation helpful? Give feedback.
0 replies
-
The whole supplement thing probably needs to be reworked a bit alongside a counter/numbering rework... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Finally, I can now edit the caption separator (#2109 (comment)):
But the problem is that
figure.caption
only providesposition
andseparator
in the set rule, but, for example, thesupplement
is only obtainable in the show rule. So, In order to change thesupplement
for thekind: raw
you have to redefine the wholefigure.caption
instead of changing it in the set rule like this:Note that this line have no effect (for some reason; maybe because there is no figure inside the figure):
There is another problem with using:
Between
cap.supplement
andcap.counter.display((cap or fig??).numbering)
there is a whitespace, that you have to make sure to include. Theset figure.caption(separator: ". ")
can override (includes) a whitespace between ordinal number and caption text, but the whitespace between supplement and ordinal number isn't configurable. And there isnumbering
in bothfigure
andfigure.caption
, so whichnumbering
is for which purposes? Are they identical? If so, then we can also pass the identicalsupplement
from thefigure
to thefigure.caption
.I will list thing that I want to be changed:
supplement
which includes the whitespace (between supplement and ordinal number) in theset figure.caption()
I guess that's it... ^^'
Beta Was this translation helpful? Give feedback.
All reactions