How to include citation in nbdev exported html?

Hi,

I would like to propose my solution for citations, https://github.com/ducha-aiki/nbdev/blob/latex_envs_citations/nbs/03_export2html.ipynb

Specifically, it consists of two stages:

  1. Install jupyter extension https://github.com/jfbercher/jupyter_latex_envs
    Then one could use latex-style \cite{Ref1} in markdown + bibtex file

It also adds 3 buttons to jupyter notebook (at the right):

After click on “Refresh” and “Book” buttons above, one gets following rendering in jupyter notebook

And the reference section in the end of notebook, like this:

  1. export to html with modified nbdev, specifically, I have added the following

The final result of fastpages-generated is below, where links are same-page links to and from references.

If anyone is interested, I can PR that branch into nbdev. @sgugger

P.S. You can see result here: https://ducha-aiki.github.io/wide-baseline-stereo-blog/2020/03/27/intro.html

1 Like