jupyter-book
jupyter-book copied to clipboard
problems rendering to pdf: "skip to main content" overlaying over text
Describe the bug
When I do "print to pdf" in the jupyter-bool html, the pdf is rendered with a text "skip to main content" at the end of every page, which overlays over the text of the document. Interestingly, searching "skip to" with Ctrl+F in the html jp-book, indicates that the text exist somewhere, but is not visible. Is there any way to remove this text?
Also, the pdf layout is different to the old Edward Tufte layout from the 0.13.0 version. I wondered how can I change the pdf layoyt.
I attach a picture of the same html book rendered with jupyter-book 0.15.0 and 0.13.0
Reproduce the bug
On ubuntu terminal:
- jupyter-book build .
- open index.html
- Right click on the "download" icon (upper right corner of the html)
- Print pdf with some pdf converter
List your environment
jupyter-book --version Jupyter Book : 0.15.1 External ToC : 0.3.1 MyST-Parser : 0.18.1 MyST-NB : 0.17.2 Sphinx Book Theme : 1.0.1 Jupyter-Cache : 0.6.1 NbClient : 0.5.13
Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:
Hi, I meet this problem as well. Have you solved it?
Update: I solved it by directly deleting the line
<a class="skip-link" href="#main-content">Skip to main content</a>
in the html file
Looks like this is coming from the pydata-sphinx-theme: https://github.com/pydata/pydata-sphinx-theme/issues/966 might be a good first place to look to solve this.