【问题标题】:Insert Latex to Inkscape in Windows在 Windows 中将 Latex 插入 Inkscape
【发布时间】:2012-08-01 09:02:53
【问题描述】:

我有 Windows 7 64 位。我按照给定的顺序安装了这些:

  1. Miktex (Basic-miktex-2.9.4521.exe)
  2. Ghost 脚本 (gs905w32.exe)
  3. GSView (gsv50w32.exe)
  4. pstoedit (pstoeditsetup_win32.exe)
  5. Inkscape (Inkscape-0.48.2-1-win32.exe)

但是,我仍然无法在Inkscape 中看到Extensions -> Render -> Latex Formula。缺少什么?

【问题讨论】:

  • 好的,将miktextgspstoedit添加到PATH之后;效果很好。
  • 既然您解决了问题,请考虑回答您自己的问题,并接受该答案。将来,遇到类似问题的人将能够快速找到您的解决方案。
  • 好的。感谢您指出...

标签: latex inkscape


【解决方案1】:

我发现现有答案不令人满意。 MikTeX 已经附带了将 PDF 转换为 SVG 以及将 LaTeX 编译为 PDF 的工具,因此这些依赖项似乎是人为的。我发现可以使用这些工具构建更新版本的 LaTeX 扩展 https://github.com/juanjosegarciaripoll/inkscape-latex-miktex

只需将 *.inx 和 *.py 文件复制到 Inkscape/share/extensions 文件夹并启动 Inkscape。界面很原始,不能编辑方程式,但可以。

【讨论】:

  • 这并没有回答这个问题,它专门询问如何让 Inkscape 的特定内置功能发挥作用。
【解决方案2】:

我想补充一点,最新的 ghostscript 版本(在撰写本文时)9.22 引发了一些贬值错误,但使用已接受的答案(由 Sait)9.05 中建议的版本,为我修复了所有问题。谢谢!

我在 Windows 10 上使用了以下版本:

  1. Miktex(MiKTeX2.9,我认为是32位;这个可能是Basic-miktex-2.9.4521.exe)
  2. Ghost 脚本(gs905w32.exe,不是当时最新的,gs922w32.exe)
  3. GSView (gsv50w32.exe)
  4. pstoedit (pstoeditsetup_win32.exe)
  5. ImageMagick (ImageMagick-7.0.7-Q16)
  6. Inkscape(Inkscape 0.92.2(5c3e80d,2017-08-06),大概是 32 位)

注意事项:

  1. 我用的是 32 位版本,64 位一开始不工作还有其他问题)

  2. Ghost Script 9.22 版引发了一些折旧错误。 9.05 版就像一个魅力。

  3. 在安装 pstoedit 时,我检查了:“用于在其他程序中使用 pstoedit.dll 的 .h 和 .lib 文件”和“插件 SVG、MIF、EMF、CGM 格式(共享软件)”
  4. 我安装了 image magick。

来源:http://knowledgepayback.blogspot.be/2017/09/surface-pro-2017-optimising-for.html

【讨论】:

    【解决方案3】:

    this site ... 中解释了使 Latex 与 Inkscape 一起工作的过程 唯一需要检查的是添加到环境变量中的路径(如果使用更新的版本)。

    这里是提议程序的引述(抱歉,它是法语):

    Choisissez les fichiers d'installation 32 或 64 bits en fonction de votre système。 Si vous ne savez pas lequel il vous faut : Clic droit sur l'icône Ordinateur (sur le Bureau ou dans le Menu Windows)→Propriétés, l'information est affichée dans Système : Type du système。

    • 安装程序 Miktex、Ghostscript、Ghostview、ImageMagick
    • 安装程序 pstoedit en personnalisant l'installation :
      • 安装 dans le dossier de Gostgum:C:\Program Files\Ghostgum\pstoedit
      • Cocher : « .h 和 .lib 文件,用于在其他程序中使用 pstoedit.dll » et « 插件 SVG、MIF、EMF、CGM 格式(共享软件)»
    • 复印机文件 textext.py 和 textext.inx dans : C:\Program Files\Inkscape\share\extensions
    • extrare site-packages.zip dans : C:\Program Files\Inkscape\python\Lib\site-packages
    • Clic droit Ordinateur (sur le Bureau ou dans le Menu Windows) : Propriétés → Paramètres système avancés → Variables d'environnement... Dans Variables système → Path, ajouter : ;C:\Program Files\gs\gs9.15\lib;C:\Program Files\gs\gs9.15\bin;C:\Program Files\ghostgum\pstoedit

    【讨论】:

      【解决方案4】:

      这对我有帮助,但我仍然遇到错误。不过,我在一段时间后解决了它们,所以这是你需要注意的:

      将程序添加到路径时,分号后不要使用空格!!

      当您稍后在 Incscape 中键入代码时,它需要美元符号来指示公式,即使它要求 LaTeX 公式,所以看起来您应该已经处于数学模式。示例:$\vec{r_p}$。你仍然会收到很多警告,但至少它会产生你想要的。

      添加这个以防其他人可能有同样的问题:)

      【讨论】:

        【解决方案5】:

        好的,将miktextgspstoedit添加到PATH之后;效果很好。

        例如,为了在路径中添加pstoedit

        Computer > Properties > Advanced > Environment Variables > PATH > Edit 
        

        添加以下内容:

        ;C:\Program Files (x86)\pstoedit;
        

        PS:不要忘记分号。

        祝你好运。

        【讨论】:

        • 您可以使用 Rapid Environment Editor 来编辑变量。你是说 miktex 吗?
        • 我必须将C:\Program Files\gs\gs9.16\binC:\Program Files\pstoedit 添加到PATH 变量中。 MikTex (C:\Program Files\MiKTeX 2.9\miktex\bin\x64`) was already in the PATH` 变量。
        • 请注意:确保您获得的是 pstoedit 的 32 位版本,64 位版本可能会产生错误
        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-02-13
        • 1970-01-01
        • 1970-01-01
        • 2012-10-03
        • 1970-01-01
        相关资源
        最近更新 更多