【问题标题】:pstoedit does not create svgpstoedit 不创建 svg
【发布时间】:2017-09-26 13:33:29
【问题描述】:

实际上,我在使用 Inkscape 0.91 时发现了最初的问题 - 它可以选择在 SVG 表面上渲染 Latex 图像。稍微挖掘一下,似乎问题是由于pstoedit失败,单独调用时报告:

$ pstoedit -f svg test.ps test.svg
pstoedit: version 3.70 / DLL interface 108 (built: Sep 25 2017 - release build - g++ 4.9.3 - 64-bit) : Copyright (C) 1993 - 2014 Wolfgang Glunz
Unsupported output format svg

更深入地挖掘,pstoedit 似乎使用 plotutils 来完成这项工作,但从测试来看,plotutils 似乎做了它应该做的事情:

echo 0 0 1 1 2 0 | spline | graph > test.meta

成功创建了一个包含样条线的test.meta 文件,同时

plot -T svg test.meta > test.svg

将该元文件正确转换为test.svg

安装的版本是:

  • plotutls 2.6(看起来不错,创建 svg)
  • pstoedit 3.7(工作,除了 svg)
  • Inkscape 0.91(Latex 出现在extensions | render 菜单中 但不起作用 - 因为 pstoedit 不会生成 所需的svg)

我还查看了 ./configure 选项以检查是否缺少某些东西 - 不走运。

分布是Slackware64-current。由于Slackware总是安装头文件,所以这里没有头文件(-dev,-devel...)丢失(我也检查过。安装plotutils后重新编译pstoedit

【问题讨论】:

    标签: svg latex inkscape


    【解决方案1】:

    深入挖掘,我找到了问题的原因。 Slackware64 将库安装到/usr/lib64,因此pstoedit 插件安装在/usr/lib64/pstoedit 中。但似乎pstoedit 在运行时尝试加载插件时并未查看该目录 - 它改为寻找/usr/lib/pstoedit

    然后它报告支持除svg 之外的几种格式 - 给人的印象是它确实找到了一些插件。在Debian 错误报告中,我发现记者使用-verbose 命令行选项检查了插件搜索,该选项不会退出(它只是-v

    无论如何,我通过从/usr/lib/pstoedit/usr/lib64/pstoedit 的符号链接解决了这个问题(暂时)。我也会向程序作者发送报告。

    【讨论】:

      猜你喜欢
      • 2017-01-12
      • 1970-01-01
      • 1970-01-01
      • 2021-04-02
      • 2011-10-23
      • 2012-11-27
      • 2014-09-26
      • 2011-07-10
      • 1970-01-01
      相关资源
      最近更新 更多