[pstricks] Re: drawing vectors (arrows) in LaTeX
Herbert Voss
Herbert.Voss at gmx.net
Tue Oct 12 21:07:07 CEST 2004
Oren wrote:
> Is there an easy way to draw arrows in the form of \put(origin
> x,y){arrowto(destination x,y)}} , that is using (x1,y1,x2,y2) instead
> of angle and length ?
no problem with PSTricks
Herbert
\documentclass[a4paper]{article}
\usepackage{pstricks}
\usepackage{pst-node}
\usepackage{multido}
\begin{document}
\begin{pspicture}(4,7)
\psset{arrowscale=1.5}
\multido{\iA=1+1}{6}{\cnode(1,\iA){0.25}{C\iA}}
\multido{\iA=1+2}{4}{\fnode[framesize=0.5](4,\iA){F\iA}}
\ncline[linecolor=red]{->}{C1}{F1}
\ncline[linecolor=red]{->}{C1}{F2}
\psset{arm=0,linecolor=red,angleA=180}
\multido{\iA=1+2}{4}{%
\ncdiag{<-}{F\iA}{C2}%
\ncdiag[linecolor=blue]{<-}{F\iA}{C4}%
}
\end{pspicture}
\end{document}
--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
More information about the PSTricks
mailing list