pdf 中的图片没有显示

pdf 中的图片没有显示

我一直在 inkscape 中绘制图形,在 inkscape 中使用 TeX 语法进行标记,保存为 pdf,让 inkscape 为我构建一个 pdf_tex 文件,然后使用 TeXShop 编写调用图形的 TeX 文件,如下所示。

\documentclass[12pt]{article}
%\pagestyle{empty}
\usepackage{amsmath}

\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{alltt}
\usepackage{amscd}
\usepackage[mathscr]{eucal}
\usepackage{mathrsfs}
\usepackage[all]{xy}
\usepackage{verbatim}
\usepackage{moreverb}
\usepackage{graphicx, transparent, color}
\usepackage{media9}
\DeclareMathAlphabet{\mathpzc}{OT1}{pzc}{m}{it}
\linespread{1}
\theoremstyle{plain}


\newtheorem{theorem}{Theorem}
\newtheorem{thm}{Theorem}[section]
\newtheorem*{rmk}{Remark}
\newenvironment{remark}[1][Remark.]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}
\newtheorem{cor}{Corollary}
\newtheorem{lemma}[thm]{Lemma}
\newtheorem{prop}[thm]{Proposition}
\theoremstyle{definition}
\newtheorem{definition}{Definition}
\newtheorem{eg}{Example}
\newtheorem{egs}{Examples}
\newtheorem{ex}{Exercise}
\newtheorem{prob}{Problem}

\begin{document}

\begin{figure}[h] \centering \def\svgwidth{250pt} \input{figure3o4.pdf_tex} 
 \caption{The map from $\widetilde {\mathcal P}$ to the suspension of 4 points.  
   Each labeled edge corresponds to the various heights for the corresponding apex 
   vertex.}
\label{pgraph}
\end{figure}

\begin{figure}[h] \centering \def\svgwidth{250pt} \input{7o10ii.pdf_tex} 
  \caption{The map from $\widetilde {\mathcal P}$ to the suspension 
     of 4 points.  Each labeled edge corresponds to the various heights for the 
     corresponding apex vertex.}
\label{pgraph}
\end{figure}


\end{document}

这对我来说已经奏效了很多次,但今天我发现我创建的图形在编译后缺少一些图形部分,但是仅当我在 Preview、Safari 或 TeXshop 中查看 pdf 时。当我在 chrome 或 TeXworks 中的查看器中查看时,图像显示得非常正常。

这很奇怪,我没想到 pdf 会这么不稳定。有人遇到过类似的事情吗?或者能指出问题所在吗?

答案1

如果不同的 PDF 查看器显示的内容不同,则它们可能已损坏。使用 Adob​​e 阅读器(它应该是黄金标准)进行检查,使用可以仅有的PDF(或文档)查看,例如在 Linuxxpdf(1)或上evince(1)。查看您的(PDF)打印机打印的内容。

您可能想要检查是否有新版本的工具可用,以及它们是否仍然出现故障。

制作一个最小示例(LaTeX 等源,生成 PDF)并适当报告任何错误。

相关内容