-
Notifications
You must be signed in to change notification settings - Fork 12
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
Inkscape conversion command deprecated for Inkscape 1.2.2 (2022-12-09) #47
Comments
On Mon Jan 23, 2023 at 5:05 PM CET, CodeMazeSolver wrote:
Hello,
I tried to use the `\includesvg{}` command in Latex (pdfLatex). The
creation of the document fails.
My Inkscape version is **Inkscape 1.2.2 (732a01da63, 2022-12-09)**
I can't replicate this, but on a slightly different version -
`Inkscape 1.2.2 (b0a8486541, 2022-12-01)`
My log reads differently:
`runsystem(inkscape "./path/to/my.svg" -D --export-dpi=300
--export-filename=
"my_svg-raw.png")`
`runsystem(inkscape "path/to/file.svg" -D --export-latex --export-filename="filename-tex.pdf")...executed.`
|
The CLI of Inkscape was dicussed some time ago (#20). At this time
What do you get, typing
calling \begin{filecontents}[noheader]{my-svg-example.svg}
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg">
<g>
<text>Package svg: \LaTeX</text>
</g>
</svg>
\end{filecontents}
\listfiles
\documentclass{article}
\usepackage{svg}
\begin{document}
\includesvg[inkscapeformat=png]{my-svg-example.svg}
\end{document} |
Thanks for your fast replies.
I made some changes yesterday as well. Right now I have this as my path variable: In the log, I now find that it does not recognize Inkscape even though it is found using cmd.
and then
as well as
I guess I now have an issue with the Inkscape installation...I did a fresh installation, loading the newest version again from the web to make sure I don't have a corrupted installer. Running the command Again, it works in cmd and not in Latex... Using the actual command as logged in the log file:
The file is successfully created using the console, but not when running it via pdfLatex. |
That's a tricky one. Package
Package |
Your first suggestion just hides the Inkscape version error. The creation still fails. I also tried your second suggestion, both with and without the quotes. Here, the error message is the same as previously. The only thing changing in the error log is that `inkscape` is replaced by `C:\Program Files\Inkscape\bin\inkscape.exe`Right now I try to set up Latex in a Docker container and test it there.
|
Hello,
I tried to use the
\includesvg{}
command in Latex (pdfLatex). The creation of the document fails.My Inkscape version is Inkscape 1.2.2 (732a01da63, 2022-12-09)
Concretely, I use:
\includesvg{./path/to/my}
for the conversion from .svg to .png. The following command is executed and appears in the log file:
runsystem(inkscape "./path/to/my.svg" -D --export-dpi=300 --export-filename= "my_svg-raw.png")
I tried running this command in my console. It does not work there as well. After some research, I found out that there is a new syntax.
This command works in the console.
inkscape --export-type="png" --export-filename= ".\path\to\my.svg"
However, how can I change the commands that are used in the package?
I tried the
inkscapeopt
option, but it just adds an additional switch and does not change the main command.Hopefully, this is easy to fix. For now, I just switch to creating the .png files by hand and use
\includeinkscape{}
to add them to my Latex file.Best regards,
CMS
The text was updated successfully, but these errors were encountered: