TransWikia.com

Why is the diagram not coming (though it does not throw any error)?

TeX - LaTeX Asked by SOUVIK DATTA on March 9, 2021

begin{document}
%begin{TeXtoEPS}
begin{pspicture}


begin{figure}
psscalebox{1.0 1.0} % Change this value to rescale the drawing.
{
begin{pspicture}(0,25.15)(11.7,27.25)
psframe[linecolor=black, linewidth=0.04, dimen=outer](4.0,27.05)(0.0,25.15)
psline[linecolor=black, linewidth=0.04, arrowsize=0.05291667cm 2.0,arrowlength=1.4,arrowinset=0.0]{<-}(4.1,26.05)(7.3,26.05)(7.7,26.05)
psframe[linecolor=black, linewidth=0.04, dimen=outer](11.7,27.25)(7.7,25.15)
rput[bl](8.6,26.15){SOUVIK}
rput[bl](0.4,25.95){IIT}
end{pspicture}
}
end{figure}

end{pspicture}
%end{TeXtoEPS}
end{document}

2 Answers

it should throw some error ! Try this :

documentclass{article}
usepackage{pstricks}

%>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
begin{document}
%begin{TeXtoEPS}
begin{figure}


psscalebox{1.0 1.0} % Change this value to rescale the drawing.
{
begin{pspicture}(0,25.15)(11.7,27.25)
psframe[linecolor=black, linewidth=0.04, dimen=outer](4.0,27.05)(0.0,25.15)
psline[linecolor=black, linewidth=0.04, arrowsize=0.05291667cm 2.0,arrowlength=1.4,arrowinset=0.0]{<-}(4.1,26.05)(7.3,26.05)(7.7,26.05)
psframe[linecolor=black, linewidth=0.04, dimen=outer](11.7,27.25)(7.7,25.15)
rput[bl](8.6,26.15){SOUVIK}
rput[bl](0.4,25.95){IIT}
end{pspicture}
}
end{figure}

%end{TeXtoEPS}
end{document}

Correct answer by gigiair on March 9, 2021

Your code looks like an export from a graphic program. If you have no caption then do not use the figure environment.

documentclass{article}
usepackage{pstricks}

begin{document}

%begin{figure}
begin{pspicture}(0,25.15)(11.7,27.25)
psframe[linewidth=0.04](4.0,27.05)(0.0,25.15)
psline[linewidth=0.04,arrowinset=0.0]{<-}(4.1,26.05)(7.3,26.05)(7.7,26.05)
psframe[linewidth=0.04, dimen=outer](11.7,27.25)(7.7,25.15)
rput[bl](8.6,26.15){SOUVIK}
rput[bl](0.4,25.95){IIT}
end{pspicture}
%end{figure}    

end{document}

BTW: Using nodes makes the code easier ...

Answered by user187802 on March 9, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP