【问题标题】:How to add .fig file into a Latex document?如何将 .fig 文件添加到 Latex 文档中?
【发布时间】:2019-01-16 21:14:24
【问题描述】:

我在 Xfig 中创建了一个 .fig 文件,现在我必须将它添加到我的 Latex 文档中。有人可以帮我解决这个问题,因为我是 Latex 的新手,并尝试了下面的代码,但它不起作用。我搜索了各种解决方案,但仍然出现此错误。

\documentclass[12pt]{article}
\usepackage{graphicx}
\begin{document}

\begin{figure}[!htb]
        \center{\includegraphics[width=2]{myfigure.fig}}
\end{figure}

\end{document}

我只想在页面上居中显示一个图形,但错误是: 无法确定 myfigure.fig 中图形的大小(无边界框)。

【问题讨论】:

    标签: latex tex pdflatex biblatex


    【解决方案1】:

    不支持将.fig 文件/格式作为图像包含到 (La)TeX 中。您需要通过“文件”>“导出”对话框将图像导出为支持的格式。支持的格式包括 Postscript、EPS 作为 PDF 独立矢量格式、组合文件(矢量 + 文本的 LaTeX)和许多光栅格式(如 BMP、PNG 和 JPEG)。

    另外,使用\centering 将图像置于figure 环境的中心。

    【讨论】:

      猜你喜欢
      • 2015-11-23
      • 1970-01-01
      • 1970-01-01
      • 2012-07-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多