latex_logo not working with SVG images?

20 views
Skip to first unread message

Roberto Bagnara

unread,
Feb 10, 2023, 3:29:54 AM2/10/23
to sphinx...@googlegroups.com
Hi there.

I have

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?
Thanks,

Roberto

Jean Abou Samra

unread,
Feb 10, 2023, 3:37:48 AM2/10/23
to sphinx...@googlegroups.com

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

Roberto Bagnara

unread,
Feb 10, 2023, 2:59:19 PM2/10/23
to sphinx...@googlegroups.com
> 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.
Reply all
Reply to author
Forward
0 new messages