LaTeX 文档中图像的质量

发布于 2024-09-02 22:52:30 字数 285 浏览 8 评论 0原文

如果我想在 LaTeX 文档中获得高质量的图像,需要遵循哪些要点?这些图像主要是软件应用程序的屏幕截图或流程图。

下面是两个这样的图像。

流程图

截图

感谢

What are some of the points that I need to follow if I want to have good quality images in a LaTeX document. These images are mostly screenshots of a software application or flow charts.

Below are two such images.

Flow Chart

Screenshot

Thanx

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

兰花执着 2024-09-09 22:52:30

对于图表,规则是尽可能使用矢量格式——PDF、EPS 或原生 LaTeX 包。使用矢量图形时,图片不会损失分辨率,并且可以自由缩放。对于流程图,我要么从绘图应用程序将其导出为 PDF,要么使用 PGF/Tikz 从 LaTeX 生成它(另请参阅示例)。如果您的绘图应用程序没有 PDF 导出功能,请考虑使用具有 PDF 导出功能的应用程序 — 例如,UMLet

如果您无法使用矢量图形(例如,因为它是屏幕截图),请确保一开始就使用足够高的分辨率。如果是学术论文,出版商通常会提供相关指南。

For diagrams, the rule is to use vector formats as much as you can — PDF, EPS or native LaTeX packages. When using vector graphics, the picture does not loose resolution and can be scaled freely. For a flow chart, I would either export it from the drawing application as a PDF, or use PGF/Tikz to produce it from LaTeX (see also examples). If your drawing application does not have a PDF export, consider using one that does — e.g., UMLet.

If you can't use vector graphics (e.g., because it is a screenshot), make sure you use high-enough resolution to begin with. If it is an academic paper, the publisher usually has guidelines for this.

陪你搞怪i 2024-09-09 22:52:30

如果您使用 PDFLatex,您可以使用 png 图像,在这种情况下,您绝对应该使用 png 而不是 jpeg。 PNG 压缩不会有损,因此您可以以牺牲文件大小为代价获得最佳质量。

第二个要点是创建具有足够分辨率的图像,打印时分辨率应约为 300-600 dpi,越高越好,但图像和生成的文档的文件大小会增加。对于仅在屏幕上查看的文档,您可以使用较低的分辨率,大约 72-100 dpi 就足够了。

对于图表,如果可能的话,您应该创建矢量图形(eps 或 pdf),这样您就不会损失任何质量。

If you use PDFLatex you can use png images and in those cases you definately should use png over jpeg. PNG compression is not lossy, so you get the best quality at the expense of file size.

The second important point is to create the images with sufficient resolution, for printing it should be about 300-600 dpi, higher is better but the filesize of the images and the resulting document will increase. For documents that will only be looked at a screen you can use a lower resolution, about 72-100 dpi should be enough.

For diagrams you should create vector graphics (eps or pdf) if possible, that way you do not lose any quality.

罪#恶を代价 2024-09-09 22:52:30

对于屏幕截图,没有太多可做的,但对于流程图,我建议以 PDF 格式(矢量化)创建它们,并使用 pdflatex 编译 LaTeX 源代码。

For screenshots, there is not much to do, but for flow charts, I'd suggest to create them in PDF format (vectorized) and to compile your LaTeX source with pdflatex.

浅笑依然 2024-09-09 22:52:30

对于流程图我建议使用 TikZ,然后你的图表直接在 TeX 中排版。这是一个示例: http://www.texample.net/tikz/examples /简单流程图/

for the flowchart i'd suggest TikZ, then your chart is directly typeset in TeX. Here's an example: http://www.texample.net/tikz/examples/simple-flow-chart/

初懵 2024-09-09 22:52:30

屏幕截图几乎是一个失败的原因。我在将它们保存为 PDF 然后嵌入它们方面有很好的经验,但您需要确保一开始就进行高分辨率捕获。

图表非常简单。大多数图形程序(例如 Vizio、OmniGraffle)可以让您将其保存为 EPS 或 PDF,并且缩放效果相当好。

Screenshots are pretty much a lost cause. I've had a good experience saving them as PDF and then embedding them, but you want to make sure you're on a high-res capture to begin with.

Charts are very easy. Most graphics programs (e.g., Vizio, OmniGraffle) will let you save it as EPS or PDF, and scaling works fairly well.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文