-
Notifications
You must be signed in to change notification settings - Fork 9
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
Problems setting LaTeX image type to SVG #13
Comments
Yes, this extension generates SVG image after imgconverter worked. But blockdiag is able to generate PDF image directly. It is much better to keep quality of image. Why would you like to generate SVG image and convert it to PDF via imgconverter? |
The specific thing I'm aiming to do is generate a PDF of the whole Sphinx project via "make latexpdf". Using png as the generated diagram format doesn't work due to the text rotation issue, so I tried SVG, as that's what worked for HTML. Those are the only image formats I tried, though, so it may be there's a different output option that LaTeX would be able to accept. |
You can use |
When I try rendering the images as PDF, there seems to be a problem with
After hooking get_lazy_method in the linejump filter, I found that the |
Ah, I forgot I switched these experiments to a different machine, and the ipafont didn't exist here. Switching to a font that does exist at least allowed the PDF to build, and I suspect the remaining problems are a configuration issue on the Sphinx PDF side (I need to embed the font in the PDF). So I think that means the request here would be to emit a warning or an error when attempting to set the latex output style to "SVG", since it probably isn't going to work, and folks would be much better off using "PDF". |
Thank you for comment. +1; Reasonable for a warning when |
In an attempt to work around blockdiag/blockdiag#78, I've set the LaTeX image type to SVG instead of PNG.
However, that then runs into sphinx-doc/sphinx#1907, and installing ImageMagick and enabling "sphinx.ext.imgconverter" doesn't appear to be converting the SVGs before LaTeX sees them.
The text was updated successfully, but these errors were encountered: