I am trying to include an SVG image into my document which had always (kind of) seemed to work when using \includesvg
. But now I have an image that I created from a postscript file, modified in Inkscape (saved as plain svg), which is not centered at all when included using:
\begin{figure}
\centering
\includesvg{resources/svg/an-image}
\end{figure}
When I run everything through pdflatex
, the left border of the image is positioned in the center of the page, most of the right part is cut off and if I add a caption it is placed way below the images lower border. It looks as if the image had a very large empty margin (which it definitely does not have in the SVG file).
Unfortunately the image itself is confidential so I cannot share it here.
What might be the cause of this? Might there be a workaround using another command than \includesvg
(that one has caused me unnecessary trouble before)?
\includesvg
approximately matches the pagesize in Inkscape before resizing to the actual content's dimensions. I will just do as suggested and use another file format for now..svg
as opposed to, say, PDF if you only want to include it in a.tex
document.