executablebooks / myst-nb.example-project

An example project for working with myst-nb and developing myst syntax
0 stars 3 forks source link

Issue with citations [duplicate targets] #4

Closed mmcky closed 4 years ago

mmcky commented 4 years ago

This may be causing issues with compilation and should be fixed

@najuzilu do you know what is causing these sphinx warnings - it happened when we reorganised the bib files to be per document

/Users/matthewmckay/repos-collab/ebp/myst-nb.example-project/ar1_processes.ipynb:: WARNING: Duplicate explicit target name: "meyntweedie2009".
/Users/matthewmckay/repos-collab/ebp/myst-nb.example-project/ar1_processes.ipynb:190005: WARNING: duplicate citation MeynTweedie2009, other instance in /Users/matthewmckay/repos-collab/ebp/myst-nb.example-project/ar1_processes.ipynb
/Users/matthewmckay/repos-collab/ebp/myst-nb.example-project/finite_markov.ipynb:: WARNING: Duplicate explicit target name: "dlp2013".
/Users/matthewmckay/repos-collab/ebp/myst-nb.example-project/finite_markov.ipynb:: WARNING: Duplicate explicit target name: "hamilton2005".
/Users/matthewmckay/repos-collab/ebp/myst-nb.example-project/finite_markov.ipynb:: WARNING: Duplicate explicit target name: "haggstrom2002finite".
/Users/matthewmckay/repos-collab/ebp/myst-nb.example-project/finite_markov.ipynb:: WARNING: Duplicate explicit target name: "tauchen1986".
/Users/matthewmckay/repos-collab/ebp/myst-nb.example-project/finite_markov.ipynb:510002: WARNING: duplicate citation DLP2013, other instance in /Users/matthewmckay/repos-collab/ebp/myst-nb.example-project/finite_markov.ipynb
/Users/matthewmckay/repos-collab/ebp/myst-nb.example-project/finite_markov.ipynb:510002: WARNING: duplicate citation Hamilton2005, other instance in /Users/matthewmckay/repos-collab/ebp/myst-nb.example-project/finite_markov.ipynb
/Users/matthewmckay/repos-collab/ebp/myst-nb.example-project/finite_markov.ipynb:510002: WARNING: duplicate citation haggstrom2002finite, other instance in /Users/matthewmckay/repos-collab/ebp/myst-nb.example-project/finite_markov.ipynb
/Users/matthewmckay/repos-collab/ebp/myst-nb.example-project/finite_markov.ipynb:510002: WARNING: duplicate citation Tauchen1986, other instance in /Users/matthewmckay/repos-collab/ebp/myst-nb.example-project/finite_markov.ipynb
WARNING: duplicate label for keys MeynTweedie2009 and MeynTweedie2009
WARNING: duplicate label for keys DLP2013 and DLP2013
WARNING: duplicate label for keys Hamilton2005 and Hamilton2005
WARNING: duplicate label for keys haggstrom2002finite and haggstrom2002finite
WARNING: duplicate label for keys Tauchen1986 and Tauchen1986
chrisjsewell commented 4 years ago

You most likely need to look into using the labelprefix, keyprefix and filter options: https://sphinxcontrib-bibtex.readthedocs.io/en/latest/usage.html#advanced-features

najuzilu commented 4 years ago

The following errors came from having {bibliography} *_references.bib twice in the same document.

/Users/matthewmckay/repos-collab/ebp/myst-nb.example-project/ar1_processes.ipynb:: WARNING: Duplicate explicit target name: "meyntweedie2009".
/Users/matthewmckay/repos-collab/ebp/myst-nb.example-project/ar1_processes.ipynb:190005: WARNING: duplicate citation MeynTweedie2009, other instance in /Users/matthewmckay/repos-collab/ebp/myst-nb.example-project/ar1_processes.ipynb
/Users/matthewmckay/repos-collab/ebp/myst-nb.example-project/finite_markov.ipynb:: WARNING: Duplicate explicit target name: "dlp2013".
/Users/matthewmckay/repos-collab/ebp/myst-nb.example-project/finite_markov.ipynb:: WARNING: Duplicate explicit target name: "hamilton2005".
/Users/matthewmckay/repos-collab/ebp/myst-nb.example-project/finite_markov.ipynb:: WARNING: Duplicate explicit target name: "haggstrom2002finite".
/Users/matthewmckay/repos-collab/ebp/myst-nb.example-project/finite_markov.ipynb:: WARNING: Duplicate explicit target name: "tauchen1986".
/Users/matthewmckay/repos-collab/ebp/myst-nb.example-project/finite_markov.ipynb:510002: WARNING: duplicate citation DLP2013, other instance in /Users/matthewmckay/repos-collab/ebp/myst-nb.example-project/finite_markov.ipynb
/Users/matthewmckay/repos-collab/ebp/myst-nb.example-project/finite_markov.ipynb:510002: WARNING: duplicate citation Hamilton2005, other instance in /Users/matthewmckay/repos-collab/ebp/myst-nb.example-project/finite_markov.ipynb
/Users/matthewmckay/repos-collab/ebp/myst-nb.example-project/finite_markov.ipynb:510002: WARNING: duplicate citation haggstrom2002finite, other instance in /Users/matthewmckay/repos-collab/ebp/myst-nb.example-project/finite_markov.ipynb
/Users/matthewmckay/repos-collab/ebp/myst-nb.example-project/finite_markov.ipynb:510002: WARNING: duplicate citation Tauchen1986, other instance in /Users/matthewmckay/repos-collab/ebp/myst-nb.example-project/finite_markov.ipynb

Thanks to @chrisjsewell, I've also fixed the cross-ref issue we've been having for awhile.