将 xypic 矩阵转换为 eps。 (乳胶)
我的一篇论文的 LaTeX 文件中有很多大的 xypic 矩阵,并且需要很长/无限的时间来编译。有没有办法将单独的 xypic 片段转换为 eps 文件,并将其包含在我的主文档中?
我想我使用 LaTeX 来编译 xypic 部分,但是然后我会得到整个文档,对吧?
(有人可以在这个问题上添加标签 xypic 吗?)
更新:我想出的解决方案是为每个 xymatrix 提供单独的 LaTeX 文档,然后使用 dvips -E 捕获图形。我在我使用的编辑器 Kile 中创建了一个用于编译 + 创建 eps 的脚本。
I have a lot of BIG xypic-matrices in my LaTeX file for one of my papers, and it takes long/infinite time to compile. Is there a way to convert just the separate xypic-pieces to eps files, that I include in my main document?
I suppose I use LaTeX to compile the xypic part, but then I will get an entire document, right?
(Can someone add the tag xypic to this question?)
Update: The solution I came up with was to have separate LaTeX documents for each xymatrix, and then use dvips -E to capture the figure. I created a script for Compiling + Create eps in Kile, the editor I use.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
使用latex进行编译,然后a
将其制作成eps,然后 epscrop 制作一个小 eps,您可以稍后添加。
Use latex to compile, then a
to make an eps out of it, then epscrop to make a small eps you can include later.
有几种方法可以仅在文档的一部分上运行 Latex;最广泛使用的可能是 Emacs/Auctex 的 TeX-command-region (Cc Cr),它生成一个临时 Latex 文件,其 dvi/eps/pdf/whatever 输出正是来自所选区域的输出。
There are a few ways to run Latex on just a portion of a document; the most widely used is likely Emacs/Auctex's TeX-command-region (C-c C-r), which generates a temporary Latex file whose dvi/eps/pdf/whatever output is just that from the selected region.
您可以使用 preview 包来仅处理您的图片。例如:
然后,当您运行 pdflatex 时,
preview
将生成一个仅包含图片的 pdf。您可以通过 Ghostscript 将它们转换为 eps:或者您可以生成 PNG 图像:
然后,您可以将生成的文件包含在文档中。
You can use the preview package to only process your pictures. For example:
Then, when you run pdflatex,
preview
will generate a pdf with only the pictures in it. You can convert them to eps by ghostscript:or you can generate PNG images:
Then, you can include the generated files in your document.