Hello,
currently I display code snippets in the document through textboxes which I entered in a grid, which was entered in a figure so that it gets a caption and can be refrenced. But the captions name is “Listing”. I know I can change that with “supplement: [Code Snippet]” for each figure, but as there are a lot of them I want to compute a rule that all “Listings” will be called “Code Snippets”. Does anyone have an idea of how to do that?
“Listing” is the default supplement for figures that wrap a raw
block. You can change the default with a show-set rule:
#show figure.where(kind: raw): set figure(supplement: [Code Snippet])
4 Likes