browsing bytechnicalposts

Support for this package is deprecated as of v0.6.0. Consider using rehype-citation instead.

remark-bibtex is a remark plugin to generate footnoted citations from a bibtex file. It uses citation-js to load a specified .bib file from which citations will be retrieved and added to the markdown file’s footnotes section.

The reason it exists is that when I created this blog, I found myself wanting to cite papers from my Mendeley library. As anyone who works with citations knows, they can be a beast to handle or format. A reference manager such as Mendeley makes our lives far more manageable because it becomes relatively painless to cite documents from latex workflows. I wanted to reuse my existing .bib files but from within the remark markdown processing ecosystem of plugins, cue remark-bibtex.

Citation keys take the form of (@citationKey): where “citationKey” corresponds to a bibtex entry in the provided .bib file. The citation key will be replaced with a numbered footnote reference corresponding to the bibliography entry in the footnotes section. To work, this package has to be chained to the remark-footnotes package, which adds the necessary markdown footnoting capability.

# My Document

So here is my citation (@Wasserman1994). End of story.

Will become:

So here is my citation[^1]. End of story.

[^1]: 1\. Wasserman S, Faust K. Social Network Analysis. Cambridge: Cambridge University Press; 1994.

And (Couclelis (1985)) ends (Berghauser Pont et al. (2019)) up (Batty (1997)) looking (Stewart et al. (2004)) like (Harris et al. (2020)) this (Wasserman & Faust (1994))! See the footnotes section below… (Nothing implied by the use of the example citations!)

See the remark-bibtex repository for more information about use and configuration.

Batty, M., 1997. Cellular automata and urban form: A primer. Journal of the American Planning Association, 63(2), pp.266–274.
Berghauser Pont, M., Stavroulaki, G. & Marcus, L., 2019. Development of urban types based on network centrality, built density and their impact on pedestrian movement. Environment and Planning B: Urban Analytics and City Science, 46(8), pp.1549–1564.
Couclelis, H., 1985. Cellular worlds: a framework for modeling micro-macro dynamics,
Harris, C.R. et al., 2020. Array programming with NumPy. Nature, 585(7825), pp.357–362. Available at: http://www.nature.com/articles/s41586-020-2649-2.
Stewart, T.J., Janssen, R. & Van Herwijnen, M., 2004. A genetic algorithm approach to multiobjective land use planning. Computers and Operations Research, 31(14), pp.2293–2313.
Wasserman, S. & Faust, K., 1994. Social Network Analysis, Cambridge: Cambridge University Press.
Copyright © 2014-present Gareth Simons