在我的文档中有一个包含svg文件的噩梦。这只是一张图克斯的照片。
代码:
\svgpath{{C:/Users/me/Google\ Drive/foo}}
\includesvg[width = 200pt]{tux}错误:
** (inkscape.exe:27228): WARNING **: 20:52:43.840: Can't open file: tux.svg (doesn't exist)
** (inkscape.exe:27228): WARNING **: 20:52:43.840: Can't open file: tux.svg (doesn't exist)
** (inkscape.exe:27228): WARNING **: 20:52:43.840: Specified document tux.svg cannot be opened (does not exist or not a valid SVG file)
The system cannot find the file specified.
The system cannot find the file specified.我希望它能给我提供更多的调试信息,这样我就可以知道使用的是哪个目录。我启用了--shell-escape。我尝试过各种组合,但都没有成功。
编辑:最小示例
\documentclass{article}
\usepackage{svg}
\begin{document}
\includesvg{tux}
\end{document}我创建了一个目录c:\latex
我的命令行是texify --pdf --engine=luatex --synctex=1 --tex-option=--shell-escape --clean foo
我注意到它还说有一个日志文件,但是我找不到包含更多信息的日志文件
Package svg Warning: The export with Inkscape failed for file
(svg) `tux.svg'
(svg) Troubleshooting: Please check in the log file how
(svg) the invocation of Inkscape took place and try to
(svg) execute it yourself in the terminal on input line 5.我很想拿到那个神秘的日志文件。有一个foo.log文件,但这说明了我的控制台输出是什么。C:\Users\james\AppData\Local\MiKTeX\2.9\miktex\log\texify.log上还有另一个日志文件,但也没有关于inkscape命令的任何信息。
医生(http://mirror.its.dal.ca/ctan/graphics/svg/doc/svg.pdf)说我应该去看runsystem ...。
发布于 2019-06-11 06:18:54
问题是--clean选项。我在TeXWorks中通过选定的pdflatex找出了这个问题,然后它突然建立了起来。一个接一个的选择帮我找出了真相。回过头来发其他问题。
正如@samcarter所指出的,如果您不必使用texify,请尽量不使用。我的一个包需要LuaLaTex来排版,所以当我只需要LuaLaTex平原选项时,我选择了LuaLaTex。用那个解决了问题。
但是,如果您必须使用文本化,请尝试删除--clean。
https://stackoverflow.com/questions/56535151
复制相似问题