Skip to content
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

Listing filenames #2276

Conversation

ascholerChemeketa
Copy link
Contributor

Basic implementation of filenames for listings. No fancy download links, but I'm not convinced they are needed as anywhere a link would be active the reader can copy/paste into an editor.

It is quite likely there is a more ideal LaTeX implementation.

Built off of #2272 - suggest resolving it first.

@rbeezer
Copy link
Collaborator

rbeezer commented Nov 3, 2024

Took this for a quick drive on top of #2272.

I'd rather see some visual/typographical separation between the filename and the caption. What do you think of placing it in parentheses, after the caption concludes, and style it with a monospace font?

Perhaps LaTeX needs to pass this as an argument to the environment, so style writers can have some control over placment and look?

@ascholerChemeketa
Copy link
Contributor Author

How about monospace bold with parens but before the caption? In a quick tour of programming texts, if the filename is listed, it tends to look like part of the title of the block.

@ascholerChemeketa
Copy link
Contributor Author

Closing in favor of #2299

That does NOT include @filename on listings. But title serves the intended purpose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants