Bibtex citations don't render properly inside of admonition/code blocks
See original GitHub issueBuilding a jupyterbook page with a citation embedded in a admonition (possibly other notes too) prevents sphinxbibtex-contrib from correctly formatting the inline citations. This is not limited to the in-admonition citation, but extends to all citations throughout the book.
Scenarios tested: Build book without citation in admonition; then add citation command to admonition and build again: renders fine//works Build book with citation in admonition; does not work Build book with citation in admonition; remove citation command from admonition and build again: does not work Build book with citation in admonition; remove citation command from admonition; clean project and then build again: renders fine//works Build book with citation in admonition; remove citation command from admonition; clean project; build again; add citation command to admonition and build again: renders fine//works
Example code:
```{admonition} Coordinate reference systems
:class: note
{cite}`internatonalassociationofoilandgasproducersGeomaticsGuidanceNote2019`.
```
Bibtex file contents:
@misc{internatonalassociationofoilandgasproducersGeomaticsGuidanceNote2019,
title = {Geomatics {{Guidance Note}} 7, Part 2 - {{Coordinate Conversions}} and {{Transformations}} Including {{Formulas}}},
author = {{Internatonal Association of Oil and Gas Producers}},
year = {2019},
publisher = {{Internatonal Association of Oil and Gas Producers}}
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top GitHub Comments
Thanks, Do you mean you have tried with the latest sphinxcontrib-bibtex version? (>=2.1)
~Just to bump this as I think I’m seeing the same behavior with citations in figure captions~
EDIT: User error, sorry for the noise !