-
Notifications
You must be signed in to change notification settings - Fork 11
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
SVG extracted using svg-extract
looks different from the original SVG
#48
Comments
Just for the sake of completeness, here is a cross-prost from https://tex.stackexchange.com/questions/678479 |
As mentioned in the comments, for now |
hi, i have the same problem, and that line also doesn't work for me. I'm not sure, but i'm guessing The thing i'm seeing is, for instance, when i include a svg with pretex=\footnotesize, in the main document it looks well, but in the svg-extract version of it the text font size is normal. Also, I noticed that the text on the extracted version has double space between lines. And that is how i have formatted the text on my main document. But, in the included svg, the text does not have that huge space between lines. |
This kind of error report doesn't work for me. What action should I take without any information. How should I be able to reproduce the issue without a running minimal example?
Well, instead of guessing, having a brief look into the package documentation would maybe be an approach. In general, graphics extracted with package svg-extract should look the same as those included with package svg as long as you carefully do all your markup settings in the preamble. |
Here's my SVG drawing:
I include it in my LaTeX document using the
svg
package as follows:Which results in the following:
Then I use the
svg-extract
package to extract it out into a PDF including the rendered LaTeX math:I run
latexmk --shell-escape idea.tex
and the resulting PDF is as follows:It looks like the text has been moved to accomodate some smaller bounding box than that which the SVG originally intended.
How can I prevent this behavior and get back the SVG as it looked in the original PDF?
The text was updated successfully, but these errors were encountered: