-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Anchors on figures and listings #921
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
Comments
Yep! I've often wanted this myself. I'm not sure the best way to implement this, and since this doesn't affect print at all, it'll be a while before Steve or I has time to work on this. So if someone wants to help out on this, that would be awesome! |
I'd like to claim this one. |
Would it make sense to incorporate this into For example,  would be translated into <img src="img/listing_5_15.png" alt="Listing 5-15" id="listing-5-15" /> Then whenever you want to refer to that image you'd be able to use its For example, as seen in [Listing 5-15](#listing-5-15), blah blah blah. cc: #1092 |
The problem is these aren't usually images, they're code blocks, and it's not every code block :-/ |
I had a feeling that'd be the case when I saw the word "listing", but it was worth a shot :) |
The fix for this had to be reverted, so I'm re-opening it. |
Hi everyone, I think I've added anchors to the listings in #4271. Would anyone like to review it? |
I have noticed that there are anchor tags on sections and subsections. It would be nice to have anchor tags on the figures' names as well. For example (from the book):
The text
Listing 5-15
would be a clickable/fragment-navigable link just like sections and subsections.The text was updated successfully, but these errors were encountered: