-
Notifications
You must be signed in to change notification settings - Fork 70
Install 'rsvg-convert' #79
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
Conversation
@@ -48,6 +48,9 @@ RUN apt-get -y install \ | |||
latex-cjk-chinese-arphic-gbsn00lp latex-cjk-chinese-arphic-gkai00mp \ | |||
fonts-symbola | |||
|
|||
# Install 'rsvg-convert' for SVG -> PDF conversion | |||
RUN apt-get -y install librsvg2-bin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add a comment here with this link also, https://github.com/missinglinkelectronics/sphinxcontrib-svg2pdfconverter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done: 80f52ba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😍
readthedocs doesn't support converting the SVG logo to PDF, so we can use it in LaTeX. Ideally we would use https://github.com/sephalon/sphinxcontrib-svg2pdfconverter and convert to PDF, but rsvg-convert isn't available in RTD yet: readthedocs/readthedocs-docker-images#78 readthedocs/readthedocs-docker-images#79
Thanks for merging! How is the release process of this image? When will it be available on readthedocs.org? |
Hi all! |
I have a branch for testing it here: https://nbsphinx.readthedocs.io/en/rsvg/ It would be great if you could give it a try! Currently the build passes but building the LaTeX output results in:
... and the SVG images are not shown. As soon as it works, there should be a few SVG images in the resulting PDF, e.g. there: |
Hrm... It failed, but with another error https://readthedocs.org/projects/nbsphinx/builds/8391747/ Any clue?
|
Hmm .. no idea. I'm wondering why
Cool, thanks! |
@mgeier would you like to open an issue in the .org repository so we can get more eyes on it and maybe other people can help us to debug/research? |
@humitos I think there is actually a different issue involved, regarding auto-downloading of remote files. I'll investigate further an come back as soon as I know more ... |
Just a little follow-up:
It was indeed a different issue. A single SVG file was somehow broken, see spatialaudio/nbsphinx#319 In the end |
It looks like this has been reverted in #166. Was this intentional? |
@mgeier with the new |
See #78.
This is untested, I hope it works!