Consider the following MWE:
Code: Select all
\documentclass{article}
\usepackage{auto-pst-pdf,pst-node}
\begin{document}
\begin{pspicture}
\pnode(0,0){A}
\pnode(4,0){B}
\psline(A)(B)
\end{pspicture}
\end{document}
Code: Select all
pdflatex -shell-escape <filename>.tex
I have tried
\psline(A)([angle=45]A)
(and other things) but I could not figure out how to do it without having specific coordinates for the other end of the line I want do draw.How do I do this?
Thank you in advance!