On 2023-02-10 09:37, Jean Abou Samra wrote:


Le 10 févr. 2023 à 09:29, Roberto Bagnara <bagn...@cs.unipr.it> a écrit :

extensions = [
   'sphinx.ext.todo',
   'sphinx.ext.imgmath',
   'sphinx.ext.ifconfig',
   'sphinxcontrib.bibtex',
   'sphinx_rtd_theme',
   'sphinxcontrib.inkscapeconverter'
]

# The name of an image file (relative to this directory) to place at the top of
# the title page.
latex_logo = 'image.svg'

I have inkscape installed, but but I still get:

! LaTeX Error: Unknown graphics extension: .svg.

In fact, it seems to me that the converter does not even
come into play, as I see in the LaTeX generated code:

\newcommand{\sphinxlogo}{\sphinxincludegraphics{image.svg}\par}

What am I missing?



Including SVGs in LaTeX is tricky. See 
https://tex.stackexchange.com/questions/2099/how-to-include-svg-diagrams-in-latex 
<https://tex.stackexchange.com/questions/2099/how-to-include-svg-diagrams-in-latex>

AFAICS, Sphinx does not support it. Use a different image format.

Thanks Jean.  I will do that.

--
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/4ccf3280-4f04-acec-120c-cb06a02e0746%40cs.unipr.it.

Reply via email to