%%
%% arrowstyle.tex
%% Copyright 2008 Shouri Chatterjee
%% v0.1, Nov 2, 2008
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
% This work has the LPPL maintenance status `maintained'.
% 
% The Current Maintainer of this work is Shouri Chatterjee.
%
% This work consists of the files arrow.sty, arrowstyle.tex.
%
% This is the documentation for arrow.sty. 

\documentclass[10pt, a4paper]{article}
\usepackage{arrow}
\begin{document}

\setlength{\unitlength}{2pt}
\addtolength{\textheight}{20pt}
\setlength{\arrowscale}{0.3pt}

\title{\bf Beautiful arrows in \LaTeX\ pictures\\\color{red} arrow.sty}
\author{Shouri Chatterjee}
\date{Version 0.2,\ \today}
\maketitle

\begin{figure}[h]
\begin{center}
\begin{picture}(100,100)

\put(50,50){\vector(1,0){50}}
\put(50,50){\vector(6,1){50}}
\put(50,50){\vector(5,1){50}}
\put(50,50){\vector(4,1){50}}
\put(50,50){\vector(3,1){50}}
\put(50,50){\vector(2,1){50}}
\put(50,50){\vector(1,1){50}}
\put(50,50){\vector(1,2){25}}
\put(50,50){\vector(1,3){16.667}}
\put(50,50){\vector(1,4){12.5}}
\put(50,50){\vector(1,5){10}}
\put(50,50){\vector(1,6){8.333}}
\put(50,50){\vector(2,3){33.333}}
\put(50,50){\vector(2,5){20}}
\put(50,50){\vector(3,2){50}}
\put(50,50){\vector(5,2){50}}
\put(50,50){\vector(3,4){37.5}}
\put(50,50){\vector(3,5){30}}
\put(50,50){\vector(4,3){50}}
\put(50,50){\vector(5,3){50}}
\put(50,50){\vector(4,5){40}}
\put(50,50){\vector(5,4){50}}
\put(50,50){\vector(5,6){41.667}}
\put(50,50){\vector(6,5){50}}
\put(50,50){\vector(0,1){50}}

\put(50,50){\vector(-1,0){50}}
\put(50,50){\vector(-6,1){50}}
\put(50,50){\vector(-5,1){50}}
\put(50,50){\vector(-4,1){50}}
\put(50,50){\vector(-3,1){50}}
\put(50,50){\vector(-2,1){50}}
\put(50,50){\vector(-1,1){50}}
\put(50,50){\vector(-1,2){25}}
\put(50,50){\vector(-1,3){16.667}}
\put(50,50){\vector(-1,4){12.5}}
\put(50,50){\vector(-1,5){10}}
\put(50,50){\vector(-1,6){8.333}}
\put(50,50){\vector(-2,3){33.333}}
\put(50,50){\vector(-2,5){20}}
\put(50,50){\vector(-3,2){50}}
\put(50,50){\vector(-5,2){50}}
\put(50,50){\vector(-3,4){37.5}}
\put(50,50){\vector(-3,5){30}}
\put(50,50){\vector(-4,3){50}}
\put(50,50){\vector(-5,3){50}}
\put(50,50){\vector(-4,5){40}}
\put(50,50){\vector(-5,4){50}}
\put(50,50){\vector(-5,6){41.667}}
\put(50,50){\vector(-6,5){50}}

\put(50,50){\vector(-6,-1){50}}
\put(50,50){\vector(-5,-1){50}}
\put(50,50){\vector(-4,-1){50}}
\put(50,50){\vector(-3,-1){50}}
\put(50,50){\vector(-2,-1){50}}
\put(50,50){\vector(-1,-1){50}}
\put(50,50){\vector(-1,-2){25}}
\put(50,50){\vector(-1,-3){16.667}}
\put(50,50){\vector(-1,-4){12.5}}
\put(50,50){\vector(-1,-5){10}}
\put(50,50){\vector(-1,-6){8.333}}
\put(50,50){\vector(-2,-3){33.333}}
\put(50,50){\vector(-2,-5){20}}
\put(50,50){\vector(-3,-2){50}}
\put(50,50){\vector(-5,-2){50}}
\put(50,50){\vector(-3,-4){37.5}}
\put(50,50){\vector(-3,-5){30}}
\put(50,50){\vector(-4,-3){50}}
\put(50,50){\vector(-5,-3){50}}
\put(50,50){\vector(-4,-5){40}}
\put(50,50){\vector(-5,-4){50}}
\put(50,50){\vector(-5,-6){41.667}}
\put(50,50){\vector(-6,-5){50}}
\put(50,50){\vector(0,-1){50}}

\put(50,50){\vector(6,-1){50}}
\put(50,50){\vector(5,-1){50}}
\put(50,50){\vector(4,-1){50}}
\put(50,50){\vector(3,-1){50}}
\put(50,50){\vector(2,-1){50}}
\put(50,50){\vector(1,-1){50}}
\put(50,50){\vector(1,-2){25}}
\put(50,50){\vector(1,-3){16.667}}
\put(50,50){\vector(1,-4){12.5}}
\put(50,50){\vector(1,-5){10}}
\put(50,50){\vector(1,-6){8.333}}
\put(50,50){\vector(2,-3){33.333}}
\put(50,50){\vector(2,-5){20}}
\put(50,50){\vector(3,-2){50}}
\put(50,50){\vector(5,-2){50}}
\put(50,50){\vector(3,-4){37.5}}
\put(50,50){\vector(3,-5){30}}
\put(50,50){\vector(4,-3){50}}
\put(50,50){\vector(5,-3){50}}
\put(50,50){\vector(4,-5){40}}
\put(50,50){\vector(5,-4){50}}
\put(50,50){\vector(5,-6){41.667}}
\put(50,50){\vector(6,-5){50}}

\put(0,0){\line(0,1){100}}
\put(0,100){\line(1,0){100}}
\put(100,100){\line(0,-1){100}}
\put(100,0){\line(-1,0){100}}

\end{picture}
\caption{New arrow-head}
\label{fig:new}
\end{center}
\end{figure}

Fig.~\ref{fig:new} shows all possible vectors with the new
arrowhead. The arrowhead is bigger, nicer, and more flexible. The
\verb|\vector| is now as flexible as the \verb|\line| with
the components of the direction vectors from -6, -5,\ldots, 5, 6.
Fig.~\ref{fig:old} shows all possible original \LaTeX vectors. The
components of the direction vectors range only from -4, -3,
\ldots, 3, 4.

Nothing special needs to be done. Just \color{red}
\verb|\usepackage{arrow}| \normalcolor at the preamble of your
document. In case you want the old vector, you can use
\verb|\vectorOLD|.

The size of the arrowhead can be controlled by the parameter
\verb|\arrowscale|. The default value of \color{red}
\verb|\arrowscale| \normalcolor is 0.4pt. If you wish to make
the arrow larger or smaller, use \color{red}
\verb|\setlength{\arrowscale}{0.2pt}| \normalcolor, for example.

\begin{figure}
\begin{center}
\begin{picture}(100,100)

\put(50,50){\vectorOLD(1,0){50}}
\put(50,50){\vectorOLD(4,1){50}}
\put(50,50){\vectorOLD(3,1){50}}
\put(50,50){\vectorOLD(2,1){50}}
\put(50,50){\vectorOLD(1,1){50}}
\put(50,50){\vectorOLD(1,2){25}}
\put(50,50){\vectorOLD(1,3){16.667}}
\put(50,50){\vectorOLD(1,4){12.5}}
\put(50,50){\vectorOLD(2,3){33.333}}
\put(50,50){\vectorOLD(3,2){50}}
\put(50,50){\vectorOLD(3,4){37.5}}
\put(50,50){\vectorOLD(4,3){50}}
\put(50,50){\vectorOLD(0,1){50}}

\put(50,50){\vectorOLD(-1,0){50}}
\put(50,50){\vectorOLD(-4,1){50}}
\put(50,50){\vectorOLD(-3,1){50}}
\put(50,50){\vectorOLD(-2,1){50}}
\put(50,50){\vectorOLD(-1,1){50}}
\put(50,50){\vectorOLD(-1,2){25}}
\put(50,50){\vectorOLD(-1,3){16.667}}
\put(50,50){\vectorOLD(-1,4){12.5}}
\put(50,50){\vectorOLD(-2,3){33.333}}
\put(50,50){\vectorOLD(-3,2){50}}
\put(50,50){\vectorOLD(-3,4){37.5}}
\put(50,50){\vectorOLD(-4,3){50}}

\put(50,50){\vectorOLD(-4,-1){50}}
\put(50,50){\vectorOLD(-3,-1){50}}
\put(50,50){\vectorOLD(-2,-1){50}}
\put(50,50){\vectorOLD(-1,-1){50}}
\put(50,50){\vectorOLD(-1,-2){25}}
\put(50,50){\vectorOLD(-1,-3){16.667}}
\put(50,50){\vectorOLD(-1,-4){12.5}}
\put(50,50){\vectorOLD(-2,-3){33.333}}
\put(50,50){\vectorOLD(-3,-2){50}}
\put(50,50){\vectorOLD(-3,-4){37.5}}
\put(50,50){\vectorOLD(-4,-3){50}}
\put(50,50){\vectorOLD(0,-1){50}}

\put(50,50){\vectorOLD(4,-1){50}}
\put(50,50){\vectorOLD(3,-1){50}}
\put(50,50){\vectorOLD(2,-1){50}}
\put(50,50){\vectorOLD(1,-1){50}}
\put(50,50){\vectorOLD(1,-2){25}}
\put(50,50){\vectorOLD(1,-3){16.667}}
\put(50,50){\vectorOLD(1,-4){12.5}}
\put(50,50){\vectorOLD(2,-3){33.333}}
\put(50,50){\vectorOLD(3,-2){50}}
\put(50,50){\vectorOLD(3,-4){37.5}}
\put(50,50){\vectorOLD(4,-3){50}}

\put(0,0){\line(0,1){100}}
\put(0,100){\line(1,0){100}}
\put(100,100){\line(0,-1){100}}
\put(100,0){\line(-1,0){100}}

\end{picture}
\caption{Old arrows}
\label{fig:old}
\end{center}
\end{figure}

\end{document}
