Skip to content

[styles] Format title of \codeblocktu using 'caption' package #7268

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

jensmaurer
Copy link
Member

This restores the C++20 status of the formatting.

This restores the C++20 status of the formatting.
@jensmaurer jensmaurer added the ballot-comment Response to an NB or ISO comment on a ballot label Sep 26, 2024
@jensmaurer
Copy link
Member Author

Apparently, our prior attempt at redefining some internal stuff of the listings package got neutered by later versions of said package.

Use the right tool for the job instead.

@tkoeppe tkoeppe merged commit afdd158 into cplusplus:main Sep 27, 2024
2 checks passed
@tkoeppe
Copy link
Contributor

tkoeppe commented Sep 27, 2024

@jensmaurer Currently, this allows page breaks between the title and the code block. I couldn't find a general way to fix this easily and am adding a manual break hint before "Translation unit #2" in [basic.link]. I was trying adding a negative penalty before the title to encourage page breaks, but that ends up adding unnecessary breaks.

@jensmaurer
Copy link
Member Author

Yeah, getting the page break penalties right is probable for another day.

@jensmaurer jensmaurer deleted the c91 branch September 27, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ballot-comment Response to an NB or ISO comment on a ballot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants