Skip to content

Instantly share code, notes, and snippets.

@newville
Created April 26, 2016 14:49
Show Gist options
  • Save newville/13e0c6d7179ce752422e70638cdc4c3b to your computer and use it in GitHub Desktop.
Save newville/13e0c6d7179ce752422e70638cdc4c3b to your computer and use it in GitHub Desktop.
hyperlinks with sphinxcontrib-bibtex
sphinx-build -b html -d _build/doctrees -D latex_paper_size=letter . _build/html
sphinx-build -b html -d _build/doctrees -D latex_paper_size=letter . _build/html
extensions = [ 'sphinxcontrib.bibtex' ]
source_suffix = '.rst'
master_doc = 'index'
project = u'example'
copyright = u'Public Domain'
release = '1.0'
exclude_trees = ['_build']

Example doc

See the work of :cite:`Author2016` for more information.

References

.. bibliography:: refs.bib
   :list: enumerated
   :style: unsrt
<div class="section" id="example-doc">
<h1>Example doc<a class="headerlink" href="#example-doc" title="Permalink to this headline">¶</a></h1>
<p>See the work of [Author2016] for more information.</p>
<p class="rubric">References</p>
<ol class="arabic simple" id="bibtex-bibliography-index-0" start="1">
<li>A.&nbsp;B. Author and X.&nbsp;Y. Another. Really neat findings. <em>Journal of Choice</em>, 6(1):121–128, 2016.</li>
</ol>
</div>
@article{Author2016,
Author = {Author, A. B. and Another, X. Y.},
Title = {Really neat findings},
Journal = {Journal of Choice},
Year = 2016,
Volume = 6,
Number = 1,
Pages = {121--128},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment