-
Notifications
You must be signed in to change notification settings - Fork 95
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
Calling external commands with quotes in path via shell on Windows #532
Comments
in a command-prompt window does not work. At the moment I am reluctant to adopt the TeX Live hack. |
So there is (and will be) no way to use paths with spaces for invoking commands on shell-escape (without the usage of I mean |
Indeed
should not give a quotation error. |
Thanks a lot!
Do you stick with your decision regarding the single quotes for pipes or do you have an approach/idea how the problem could be solved? |
This should work: \input{|"C:/Program Files/Inkscape1/bin/inkscape" -V} |
I see this cannot work because the quotes are eliminated. The TeX Live hack makes sense... |
Again, thank you a lot |
Another problem occurred: mrpiggi/svg#31 Depending on the format used (pdflatex, lualatex, xelatex) the following MWE gives different results, whereas lualatex und xelatex seem to be faulty: \listfiles
\documentclass{minimal}
\usepackage[T1]{fontenc}
\begin{document}
\begingroup
\makeatletter
\@makeother\|%
\@makeother\&%
\catcode\endlinechar=10%
\everyeof{\noexpand}%
\edef\parseversion{%
\xdef\noexpand\pipestdout{\noexpand\@@input|"inkscape\space-V\space2>&1" }%
\xdef\noexpand\pipenormal{\noexpand\@@input|"inkscape\space-V" }%
}%
\texttt{\meaning\parseversion}
\parseversion
\endgroup
\texttt{pipestdout}: \pipestdout
\texttt{pipenormal}: \pipenormal
\end{document} Results for
|
One bug, one issue. Please do not comment/reopen closed issues. You can submit a new issue. Please follow the contribution guidelines when doing so:
|
Hi,
some context first. I am the developer of the LaTeX package
svg
. I am currently facing the problem that with Inkscape v1.0 the CLI has been changed without backward compatibility. I would like to implement a function to detect the current Inkscape version in order to adapt the automatic call to the respective CLI.If you need more information feel free to ask for but the main issue is that calling Inkscape with its absolute path in quotes with either
\@@input|"'C:/Program Files/Inkscape1/bin/inkscape' -V"
or\ShellEscape{"C:/Program Files/Inkscape1/bin/inkscape" -V}
does not work with MiKTeX contrary to TeX Live. The latter returns with error message...quotation error in system command.
in the log file of the LaTeX document.A possible workaround would be to prepend
call
to the actual call. With this approach\ShellEscape{call "C:/Program Files/Inkscape1/bin/inkscape" -V}
gives the expected result while\@@input|call "'C:/Program Files/Inkscape1/bin/inkscape' -V"
still does not work. Here is an example which shows all different approaches, the results with TeX Live and MiKTeX are shown afterwards:TeXLive.pdf
MiKTeX.pdf
This issue is not urgent for me as there is a workaround but it seems to me that this is a very general one. And it is not only related to the call of Inkscape, just try:
The text was updated successfully, but these errors were encountered: