Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local bibliographies do not appear in PDF output #94

Open
raptistasos opened this issue Mar 18, 2022 · 2 comments
Open

Local bibliographies do not appear in PDF output #94

raptistasos opened this issue Mar 18, 2022 · 2 comments

Comments

@raptistasos
Copy link

Hi!

I introduced some local bibliographies in my Jupyter book by inserting at the end of each chapter,

## Bibliography
```{bibliography}
:filter: docname in docnames
```

The bibliography renders as expected in the HTML output but not in the PDF output, where the bibliography is still collected at the end of the document, while the headers (## Bibliography) keep appearing at the end of each chapter without any content inside.

Is this a known issue? Is there a workaround?

Thanks!

@mmcky
Copy link
Member

mmcky commented Apr 1, 2022

thanks for reporting this @raptistasos. I think the main issue here is that bibliography support in LaTeX relies on Tex (i.e. pdflatex or xelatex etc.) to build the bibliographies through the use of tags. The sphinx.writer is adding \bibliography at the end of the document to be populated by tex.

Do you know the tex you would use to actually implement this in a LaTeX document?

@AakashGfude this is something we may need to support in this extension (similar to the table of contents issue)

@raptistasos
Copy link
Author

@mmcky @AakashGfude It's me that I must thank you for all the great work that you are doing! In tex, I would use the following template,

https://www.overleaf.com/latex/examples/per-chapter-bibliographies-with-chapterbib/pqzjpxwyyjyd

However, I am not sure if it is compatible with the way that sphinx.writer is adding the bibliography as it dismantles the .bib file and adds any references directly into the .tex file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants