\documentclass{article}
\usepackage{graphicx}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage[crop=off]{auto-pst-pdf}
\usepackage{pstricks}
\usepackage{pst-plot}
\usepackage{pst-eps}
\usepackage{pst-grad}
\usepackage{pst-solides3d}
\begin{document}
\begin{TeXtoEPS}
\begin{pspicture}
\scalebox{1} % Change this value to rescale the drawing.
{
\begin{pspicture}(0,-1.5507812)(6.1871877,1.5307813)
\pspolygon[linewidth=0.04](0.701875,1.5107813)(0.701875,-0.94921875)
(5.481875,-0.96921873)
\usefont{T1}{ptm}{m}{n}
\rput(0.25546876,0.22578125){$b$}
\usefont{T1}{ptm}{m}{n}
\rput(2.5754688,-1.3742187){$c$}
\usefont{T1}{ptm}{m}{n}
\rput(4.3554688,0.8857812){$a=\sqrt{b^2+c^2}$}
\end{pspicture}
}
\end{pspicture}
\end{TeXtoEPS}
\end{document}
答案1
我可以编译你的代码,但你不应该像你那样把 放进{pspicture}
另一个代码中。你应该使用(或其他) 来更改图片的比例。{pspicture}
\psset{unit=7mm}
通过latex myfigure.tex
并且dvips -E -q -o myfigure.eps myfigure.dvi
我获得了具有正确边界框的正确 EPS 文件...
\documentclass{article}
\usepackage{graphicx}
\usepackage{amsfonts}
\usepackage{amsmath}
% \usepackage[crop=off]{auto-pst-pdf}
\usepackage{pstricks}
\usepackage{pst-plot}
\usepackage{pst-eps}
\usepackage{pst-grad}
% \usepackage{pst-solides3d}
\begin{document}
\begin{TeXtoEPS}
\psset{unit=7mm}%
\begin{pspicture}(0,-1.5507812)(6.1871877,1.5307813)
\pspolygon[linewidth=0.04](0.701875,1.5107813)(0.701875,-0.94921875)
(5.481875,-0.96921873)
\usefont{T1}{ptm}{m}{n}
\rput(0.25546876,0.22578125){$b$}
\usefont{T1}{ptm}{m}{n}
\rput(2.5754688,-1.3742187){$c$}
\usefont{T1}{ptm}{m}{n}
\rput(4.3554688,0.8857812){$a=\sqrt{b^2+c^2}$}
\end{pspicture}
\end{TeXtoEPS}
\end{document}