Custom section commands (listing)? #108
Unanswered
davidchisnall
asked this question in
Q&A
Replies: 1 comment 9 replies
-
I'm getting this with your code: Isn't it what you expected? |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The package includes captions for tables and figures. I also need to be able to display code listings. I assumed that the sectioning support would be able to make them. I've created the following package that I thought created the right styles:
And the following simple test:
The
figure-caption
andtable-caption
ones are simply to check whether I understand how\sectioning
works. It seems to do what I expect. But the captions for the two that use thelisting-caption
are prefixed with 'Table' (small caps), and not 'Listing'. I'm really confused about where that's coming from. Looking at the resilient.book class, I thought thenumbering = { before = { text = "
bit was defining this, but modifying my installed copy ofsile/classes/resilient/book.lua
to put something else intable-caption-main-number
style doesn't change it both thelisting-caption
andtable-caption
lines are prefixed with Table.The
figure-caption
line is correctly prefixed with 'Figure', so obviously the infrastructure is working correctly and I am doing something wrong, but I'm not sure what.Beta Was this translation helpful? Give feedback.
All reactions