为什么只能显示出文字而不能显示出线段?

发布于 2021-08-28 15:54:15

我使用LaTeXDraw画图,将其输出结果放到LaTeX中编译。
希望的结果:
image.png

MWE:

\documentclass{article}

\usepackage{graphicx}
\usepackage[usenames,dvipsnames]{pstricks}
\usepackage{pstricks-add}
\usepackage{epsfig}
\usepackage{pst-grad} % For gradients
\usepackage{pst-plot} % For axes
\usepackage[space]{grffile} % For spaces in paths
\usepackage{etoolbox} % For spaces in paths
\makeatletter % For spaces in paths
\patchcmd\Gread@eps{\@inputcheck#1 }{\@inputcheck"#1"\relax}{}{}
\makeatother

\begin{document}
\begin{figure}[h]
    \psscalebox{1.0 1.0} % Change this value to rescale the drawing.
    {
    \begin{pspicture}(0,-4.3883333)(6.166667,1.3449998)
    \psframe[linecolor=black, linewidth=0.04, dimen=outer](5.726667,1.0266665)(0.32666686,-4.3733335)
    \rput[bl](5.7009196,0.9349424){$A$}
    \psline[linecolor=black, linewidth=0.04](5.7200003,-4.3616667)(1.8933336,1.0116665)
    \psline[linecolor=black, linewidth=0.04](0.3600002,0.9849999)(5.6800003,-2.8283334)
    \rput[bl](1.7733335,1.0649999){$B$}
    \rput[bl](0.0,1.0383332){$C$}
    \rput[bl](5.866667,-2.815){$D$}
    \rput[bl](5.8533335,-4.3883333){$E$}
    \rput[bl](3.6533334,-1.1350001){$F$}
    \end{pspicture}
    }
\end{figure}
\end{document}

LaTeX输出的结果:
image.png

查看更多

关注者
0
被浏览
1k
寄存器
寄存器 2021-08-28
这家伙很懒,什么也没写!

TikZ就能干的事,为什么搞这么复杂呢?

texdoc tikz看看手册,随便找个样例改一改就是了。

1 个回答

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览