Open amine-aboufirass opened 1 year ago
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 latexmk --shell-escape -pdf idea.tex
should work. Nevertheless, this would need some investigation at some point.
As mentioned in the comments, for now
latexmk --shell-escape -pdf idea.tex
should work. Nevertheless, this would need some investigation at some point.
hi, i have the same problem, and that line also doesn't work for me.
I'm not sure, but i'm guessing svg-extract
is importing the same preamble of the main document, while including a svg with svg
only make it agnostic to the document preamble ???
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.
hi, i have the same problem, and that line also doesn't work for me.
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?
I'm not sure, but i'm guessing
svg-extract
is importing the same preamble of the main document, while including a svg withsvg
only make it agnostic to the document preamble ???
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?