question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Author, year citations

See original GitHub issue

Currently, jupyter-book uses sphinxcontrib-bibtex for creating citation keys in text using the cite directive.

However, for academic citations (at least for my field) the convention is to use an author, year citation key.

There’s an issue open about this on sphinxcontrib-bibtex: https://github.com/mcmtroffaes/sphinxcontrib-bibtex/issues/201

I think it comes down to just creating a custom citation class using pybtex.

I think this is something in my wheelhouse to do a PR for if it’s something you all think has value.

Would this be a matter of just adding it to some jupyter-book conf.py? And then registering it somehow?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:18
  • Comments:34 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
jbuseckecommented, Mar 7, 2022

Hi everyone, I am trying to homogenize the citation/bibliography style for this project(https://github.com/OceanGlidersCommunity/Oxygen_SOP/issues/88). Ideally we would like the Bibliography to show the same format as the citations (example here).

Example of text citation: image

Correponding Bibliography entry: image

I guess what I am most unclear about is how I could implement this custom sphinxcontrib-bibtex code in the _config.yml syntax if that is even possible.

If this is not possible, could we export and modify the conf.py file and then use that in the book build? Sorry if these are pretty basic questions, I only have a little experience with jupyter book so far.

If someone here has some concrete tips on how to implement this, I would very much appreciate it. I think this is broadly relevant for many folks in e.g. the earth science community. If there is a solution, I’d be happy to work on adding that to the docs if needed.

Thanks!

2reactions
amichudacommented, Jan 15, 2021

Some really cool news from sphinxcontrib-bibtex:

https://github.com/mcmtroffaes/sphinxcontrib-bibtex/issues/203

Read more comments on GitHub >

github_iconTop Results From Across the Web

Author–date citation system - APA Style
Include the author(s) and year for every parenthetical in-text citation. · Do not repeat the year for narrative in-text citations the second and...
Read more >
Author-Year System: In-Text Citation | Style for Students Online
Your basic job when using this system is to indicate right in the text—in parentheses—the author(s) and year of publication of the reference...
Read more >
In-Text Citations - Author / Date - UC Referencing Guide
If citing two or more books with different authors which shorten to the same author and year, then add extra authors until they...
Read more >
When to Include the Year - Citations - Academic Guides
When to Include the Year. In APA, writers include the date with any parenthetical reference to a source. Additionally, they should include the...
Read more >
In-Text Citations: Author/Authors - Purdue OWL
If you have two sources by the same author in the same year, use lower-case letters (a, b, c) with the year to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found