mrpiggi / svg

Handling SVG pictures in LaTeX documents using Inkscape, ImageMagick and/or Ghostscript
Other
65 stars 12 forks source link

`svg` package takes the bounding box of the original SVG as opposed to the bounding box resulting from the text conversion #49

Closed amine-aboufirass closed 1 year ago

amine-aboufirass commented 1 year ago

The following

\documentclass{standalone}

\usepackage{svg}
\usepackage{relsize}
\usepackage{amsmath}

\begin{document}
    \includesvg[inkscapelatex=false,pretex=\relsize{1.3}]{idea.svg}
\end{document}

results in

image

If I set inkscapelatex=true I get the following:

image

Notice that:

This indicates that svg package takes the bounding box of the original SVG as opposed to the bounding box resulting from converting all the text into math.

mrpiggi commented 1 year ago

@amine-aboufirass If you are cross-posting, then please at least make it clear by providing the relevant link: https://tex.stackexchange.com/questions/678559

mrpiggi commented 1 year ago

no feedback, neither here nor at SE.com