-
Notifications
You must be signed in to change notification settings - Fork 138
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
Section Numbers #41
Comments
Yes, we should totally do this. |
@shancarter Do you have any thoughts on how this should be implemented? Automated or hard-coded numbering? Hard-coding them is certainly the simplest implementation, and probably means the URLs will be more robust. |
Yeah, we're in the middle of a little bit of a rewrite, so the actual implementation will depend on that landing first. As for other details, the solutions I see are:
All have strengths and weaknesses. (1) is the most robust but most annoying for authors, (2, 3) are brittle but convenient. @colah or @ludwigschubert have any preferences? |
I'm a big fan of 1, as I believe robust URLs are very important in publications. We could encourage via Yet I'm also a big fan of 2/3, as handwritten IDs could get out of sync and are additional effort. Overall: weak preference for 2/3, with even weaker preference for 3 or a combination of numeric and textContent. |
Thinking a little more, maybe we should split up this behavior up a little.
The question then becomes what to do with headers that don't have an explicit id. I think it would be annoying to authors to have to manually add an id to every header. The two options seem to be:
Option (3) feels gross. I would vote for (1) if possible, (2) if that becomes too weird with the timing of page load and adding ids with javascript and interactions with the url hash. Both (1) and (2) are still brittle (in that if an author changes the text of a header, the link id will change) but it allows authors to fix broken links by explicitly adding the old id to a heading if they want to change the text. Still a little brittle, but there is a fix available. Still allows for a state where links exist to old and new ids of headings if someone forgets to add the old id for some time and then updates it, but that risk seems worth accepting for the convenience to authors of not having to id every heading by hand. |
Is there a way to have section numbers or relative links to parts of a paper?
For example, I wanted to link to the "Attentional Interfaces" bit of the Augmented RNNs paper but I couldn't find an easy way to do this.
Perhaps we should add a little hyperlink chain that appears next to section headings on hover allowing one to copy paste links to sections in a paper.
The text was updated successfully, but these errors were encountered: