# TiKZarrows on a line

#### dwsmith

##### Well-known member
How can I add a couple arrows on this line?
Code:
\draw (3.14,-3.14) -- (3.14,3.14

#### Sudharaka

##### Well-known member
MHB Math Helper
How can I add a couple arrows on this line?
Code:
\draw (3.14,-3.14) -- (3.14,3.14
This will do I guess,

Code:
\draw [<->](3.14,-3.14) -- (3.14,3.14);

#### dwsmith

##### Well-known member
This will do I guess,

Code:
\draw [<->](3.14,-3.14) -- (3.14,3.14);

Code:
^
|
^
|
I am looking for something like this.

#### Sudharaka

##### Well-known member
MHB Math Helper
Code:
^
|
^
|
I am looking for something like this.
Then the following may help.

Code:
\draw [->>](3.14,-3.14) -- (3.14,3.14);

#### Sudharaka

##### Well-known member
MHB Math Helper
There is a drawing editor called Ipe extensible drawing editor which can be used to include figures in LaTeX documents. I am using this for a long time now and I find it quite handy. Since I saw a couple of threads made by you regarding drawing figures in LaTeX, thought you might be interested in this.

#### dwsmith

##### Well-known member
[->>] produced the arrow heads right behind each other. Is there a way to put arrows at 1/3 intervals on the line?

#### dwsmith

##### Well-known member
There is a drawing editor called Ipe extensible drawing editor which can be used to include figures in LaTeX documents. I am using this for a long time now and I find it quite handy. Since I saw a couple of threads made by you regarding drawing figures in LaTeX, thought you might be interested in this.
So I downloaded 7.0.1 but it says I need the 7.0.0 directories. Where do I get those at? How do I set it up once I have everything?

#### Evgeny.Makarov

##### Well-known member
MHB Math Scholar
[->>] produced the arrow heads right behind each other. Is there a way to put arrows at 1/3 intervals on the line?
The code

Code:
\usetikzlibrary{decorations.markings}
\begin{tikzpicture}
\draw[decoration={

markings,% switch on markings

mark=at position .66 with {\arrow{>}},

mark=at position 1 with {\arrow{>}}},

postaction={decorate}] (0,0) -- (0,1);

\end{tikzpicture}
produces this:

The option decoration can be given to the environments tikzpicture or scope instead of individual draw commands. Then you can use the postaction={decorate} option only in certain draw commands.

For more information, see section 30.5 and in in particular 30.5.1 on p. 331 of TikZ manual v. 2.10.

#### Sudharaka

##### Well-known member
MHB Math Helper
So I downloaded 7.0.1 but it says I need the 7.0.0 directories. Where do I get those at? How do I set it up once I have everything?