Learn_Prompting icon indicating copy to clipboard operation
Learn_Prompting copied to clipboard

footnotes and citations don't play nicely

Open trigaten opened this issue 2 years ago • 7 comments

Footnotes overwrite citations at the bottom of the page. It would be great to modify the citation plugin to deal with this properly.

trigaten avatar Dec 09 '22 03:12 trigaten

This is easily solved by marking the footnotes with a name instead of a number. For instance, on docs/applied_prompting/mc_tutorial.md, instead of marking the first note as [^1], mark as [^note], as on the following image: Bildschirmfoto 2023-01-10 um 18 32 41

antsanchez avatar Jan 10 '23 17:01 antsanchez

This is easily solved by marking the footnotes with a name instead of a number. For instance, on docs/applied_prompting/mc_tutorial.md, instead of marking the first note as [^1], mark as [^note], as on the following image: Bildschirmfoto 2023-01-10 um 18 32 41

This still seems undesirable. Additionally, where will that footnote appear WRT the citations. IMO it would be ideal to have all footnotes appear first and then citations at the bottom of the page. What are your thoughts on this?

trigaten avatar Jan 10 '23 17:01 trigaten

We are talking about this plugin, right? https://www.npmjs.com/package/@benchmark-urbanism/remark-bibtex

antsanchez avatar Jan 10 '23 18:01 antsanchez

We are talking about this plugin, right? https://www.npmjs.com/package/@benchmark-urbanism/remark-bibtex

Yes, it isn't very robust, so I forked it for what this site needed: https://github.com/trigaten/remark-bibtex

trigaten avatar Jan 10 '23 19:01 trigaten

Ok. This plugin is deprecated, should we first try with this other https://github.com/timlrx/rehype-citation?

antsanchez avatar Jan 10 '23 21:01 antsanchez

@trigaten about my last comment, should I try firs with https://github.com/timlrx/rehype-citation or directly with https://github.com/trigaten/remark-bibtex?

antsanchez avatar Jan 20 '23 14:01 antsanchez

@trigaten about my last comment, should I try firs with https://github.com/timlrx/rehype-citation or directly with https://github.com/trigaten/remark-bibtex?

Preferably try https://github.com/trigaten/remark-bibtex since I have already slightly edited it to the site's needs, but whatever you think is best!

trigaten avatar Jan 20 '23 16:01 trigaten