-
Notifications
You must be signed in to change notification settings - Fork 55
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
Adding footnotes #16
Comments
Neat! Yeah, this could be a good idea for Maybe the footnotes could be kept as state on the |
To be honest, I don't know why I didn't set it inside the struct. The repo is updated, thank you. There still is the problem of duplicate references when using multiple For example, both footnotes will get an index
Do you have an idea where the current index should be stored (if at all)? |
(Sorry for the delay!) For my understanding, do you see this to mainly be a problem when multiple sections are rendered inline into one page? Maybe the footnotes should include the section tag in their anchor - i.e. |
Exactly, I think your solution should work. I'll give it a try when I'm back home. |
Sorry, this took longer than expected. I am not sure how to access previous footnotes from within I suspect it would work similar to the toc, but reading upward and printing the sections titles querying the footnotes in all subsections. A new |
@bakerolls No worries! I think a separate plugin is fine especially since there's state involved. I think if you put the section's tag in the footnote anchor the IDs don't really matter, since they'll always be relative to the section tag. Does that make sense? |
Hi, I like to use footnotes on my pages. I wrote a very simple plugin that accomplishes this by adding arguments to a call of
\footnote
to a package global slice and rendering it when\footnotemark
is called. This is probably not the best way to do it.Do you think a feature like this should be added to
baselit
?The text was updated successfully, but these errors were encountered: