LaTeX(对图像包含存疑)

LaTeX(对图像包含存疑)

当我运行 LaTeX 文件时,我可以看到使用 LaTeX draw 绘制的图表,但在 pdf 模式下它消失了,我该如何纠正这个问题???同样,如果我使用 \includegraphics{file} 命令,我可以在运行时看到我的图像,但关闭 kile 后,如果我在 dvi 或 pdf 文件中看到它,它就会消失。这是文件。

{\centering

\scalebox{.6} % Change this value to rescale the drawing.

{

\begin{pspicture}(-10,-4.145)(10,4)

\definecolor{color43}{rgb}{0.8549019607843137,0.1607843137254902,0.1607843137254902}
\definecolor{color43b}{rgb}{0.8156862745098039,0.12156862745098039,0.12156862745098039}
\definecolor{color46}{rgb}{0.38823529411764707,0.8549019607843137,0.1607843137254902}
\definecolor{color46b}{rgb}{0.12156862745098039,0.8156862745098039,0.2627450980392157}
\definecolor{color49}{rgb}{0.07058823529411765,0.09803921568627451,0.058823529411764705}
\definecolor{color50b}{rgb}{0.06274509803921569,0.21176470588235294,0.09411764705882353}
\psline[linewidth=0.04cm](1.3,2.155)(1.34,-4.025)
\psline[linewidth=0.04cm](0.0,-3.285)(11.92,-3.265)
\pscustom[linewidth=0.04]
{
\newpath
\moveto(0.2,-4.005)
\lineto(0.96,-4.085)
\curveto(1.34,-4.125)(2.37,-4.005)(3.02,-3.845)
\curveto(3.67,-3.685)(4.895,-2.93)(5.47,-2.335)
\curveto(6.045,-1.74)(7.09,-0.395)(7.56,0.355)
\curveto(8.03,1.105)(8.725,2.37)(8.95,2.885)
\curveto(9.175,3.4)(9.43,4.0)(9.46,4.085)
}
\psline[linewidth=0.03cm,linecolor=color43,fillcolor=color43b](3.72,-3.965)(7.04,-0.965)
\psline[linewidth=0.04cm,linecolor=color46,fillcolor=color46b](5.2,-3.865)(9.3,3.255)
\psdots[dotsize=0.12,linecolor=color49](7.88,0.795) \psline[linewidth=0.04cm,linecolor=color49,fillcolor=color50b,linestyle=dashed,dash=0.16cm 0.16cm](7.86,0.795)(7.88,-3.225)
\psdots[dotsize=0.12,linecolor=color49](5.26,-2.525)   \psline[linewidth=0.04cm,linecolor=color49,fillcolor=color50b,linestyle=dashed,dash=0.16cm 0.16cm](5.26,-2.525)(5.26,-3.245)
\psdots[dotsize=0.12,linecolor=color49](4.5,-3.285)
\usefont{T1}{ptm}{m}{n}
\put(-1.514063,-4.1){$x_2$}
\usefont{T1}{ptm}{m}{n}
\put(-1.15,-4.02){$x_1$}
\usefont{T1}{ptm}{m}{n}
\put(.6014063,-4){$x_0$}
\usefont{T1}{ptm}{m}{n}
\put(-.9,-1.14){$Y=f(x)$}
\psline[linewidth=0.04cm,linecolor=color49,fillcolor=color50b,arrowsize=0.05291667cm 2.0,arrowlength=1.4,arrowinset=0.4]{->}(7.4,-0.125)(10.96,-0.165)
\psline[linewidth=0.04cm,linecolor=color49,fillcolor=color50b,arrowsize=0.05291667cm 2.0,arrowlength=1.4,arrowinset=0.4]{->}(6.16,-1.845)(11.02,-1.885)
\usefont{T1}{ptm}{m}{n}
\put(2.7,-1.8){tangent at $x_0$}
\usefont{T1}{ptm}{m}{n}
\put(2.7,-2.92){tangent at $x_1$}
\end{pspicture} 
}}

答案1

它似乎是 PSTricks 图片的一个示例。因此,您应该首先获取 *.dvi(latexyour_file),然后获取 *.ps(类似于dvipsyour_file),最后,如果需要 PDF,则获取最终的 *.pdf(pstopdfyour_file)。

这些程序可能有类似的,但不完全相同的名称,但第一个必须是 latex,而不是 pdflatex。

相关内容