我发现我的 Inkscape 0.91 for Windows 7 64 位在渲染方面存在问题 latex 。我所做的是:
1) Extensions - Render - LaTeX
2) Enter "test" in LaTeX input
3) Click "Apply".
然后,一个cmd.exe
窗口将弹出并卡在那里。如果我关闭
这个窗口,我得到:
Inkscape has received additional data from the script executed. The
script did not return an error, but this may indicate the results will
not be as expected.
^Cinvalid LaTeX input:
test
temporary files were left in:
c:\users\admini~1\appdata\local\temp\inkscape-zxdypk
有人可以帮忙吗?谢谢!
PS:latex
、dvips
、gs
和 pstoedit
已在系统路径中。
肖恩
2015年8月2日更新:
我查看了临时文件,看到了如下所示的 eq.out 文件:
This is pdfTeX, Version 3.14159265-2.6-1.40.15 (MiKTeX 2.9 64-bit)
entering extended mode
! I can't find file `c:/users/admini'.
<to be read again>
\protect
<*> c:/users/admini~
1/appdata/local/temp/inkscape-wawis7/eq.tex
Please type another input file name:
似乎是 eqtexsvg.py
文件的第 127 行有问题,即
Windows 不将这种类型的字符串作为有效的文件路径。
是这样吗?修复它并不简单吗?
肖恩
最佳答案
我遇到了同样的问题,并发现了一些解决办法。这并不是一个真正合适的解决方案,但它似乎对我有用。
从错误和eqtexsvg.py的结构来看,该脚本似乎想要打开一个临时目录,执行该目录中的LaTeX文件,然后再次删除它。似乎无法打开“users”目录中的临时文件夹。
我为解决这个问题所做的是:
- 打开 eqtexsvg.py(可以使用任何文本编辑器完成)
- 更改行“base_dir = tempfile.mkdtemp("", "inkscape-");"进入“base_dir =“<您选择的目录>””。我在我的文档硬盘驱动器上放置了一些目录。
- 删除“os.rmdir(base_dir)”行
- 再次保存文件
这对我来说是成功的。它基本上使 eqtexsvg.py 在您指定的其他位置创建临时目录,以便它可以到达它。请注意,该脚本会自动删除随后自动生成的文件。删除该行(步骤 3)也会阻止它删除该目录。
我并不认为这是一个干净或好的解决方案,但至少它解决了我的问题。
关于inkscape - 在 Windows 7 中渲染 LaTeX for Inkscape 0.91 时出现的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31764022/