Git Product home page Git Product logo

Comments (4)

mmcky avatar mmcky commented on May 24, 2024

@mtiley is the incorrect reference resolving to the nearest reference in the references.bib file? It is an issue that the incorrect reference is getting adding rather than throwing an error that it cannot resolve the reference. This is likely a sphinx translator issue? @chrisjsewell is the AST correct for the parser?

from myst-parser.

mtiley avatar mtiley commented on May 24, 2024

@mmcky I don't think so -- Yuna will be doing some more testing tomorrow.

This is the .bib file I was using (had to change to .txt to upload): references.txt

from myst-parser.

mtiley avatar mtiley commented on May 24, 2024

Update: I have replicated the problem in a project (files here) without myst-parser (only sphinxcontrib.bibtex) as an extension. Seems to be an issue with (or feature of) sphinxcontrib-bibtex and not introduced by myst-parser after all -- so I think this issue can be closed.

Discussion here mcmtroffaes/sphinxcontrib-bibtex#62 and here mcmtroffaes/sphinxcontrib-bibtex#52

The problem appears to be fixed in rST by adding a :filter: docname in docnames option to the bibliography directive so that only citations in that particular document appear in the bibliography. I can't get this to work in MyST at the moment but will play around with it a bit more.

from myst-parser.

chrisjsewell avatar chrisjsewell commented on May 24, 2024

@mtiley ok I'll close this issue for now then, and if you do uncover a discrepancy, please open another issue and, if possible, a PR with a minimal working example; in a similar fashion to what I did in #97 (adding to https://github.com/ExecutableBookProject/MyST-Parser/tree/master/tests/test_sphinx)

from myst-parser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.