Search code examples
markdownpandocbibtexcitations

Automatically create bibliography from bibtex in pandoc/markdown without inline citations


How can I automatically create a citations list from a bibtex file, preferably in markdown (more specifically, pandoc) format?

I'm in the process of building my personal, academic website. As most personal, academic websites do, I am including a page listing my publications. However, I really don't want to write every citation by hand, so I'm attempting to find an automated method of creating the citations from one or more bibtex files.

Ideally there would be a tool I could just hand a bibtex file containing my publications to and it would spit out markdown (I'm using pandoc + makefile to create the site). I am currently unaware of any such tool.

Further complicating my needs is the fact that a simple flat listing of publications is not sufficient. I need to be able to list different publications under different categories (peer reviewed and non peer reviewed at the very minimum). Though if a tool like I was wishing for above does exist, I could easily maintain multiple bibtex files and use some bash-fu to accomplish this.


Solution

  • I wanted the same thing for the same reason (creating a website using Hakyll) and I found the "problem": the CSL file.

    Pandoc, in fact, does this job perfectly and the solution provided by MacFarlane is correct, but it lacks explanation on the rule of the CSL file—it is what defines if you are going to have a numbered reference in the middle text with a list of publications in the end or not.

    Julien Tanguy has created a CSL style that puts the publication simplied information from BibTeX in the place where the reference is cited, derived from Chicago style. Certainly you can use it (it is licensed under Creative Commons Attribution-Share Alike 3.0) but you can also create yours.

    So, now (a long time after you've posted the question), I hope you have the complete answer.