LaTeX Adding Arrows to a Line in LaTeX

  • Thread starter Thread starter Dustinsfl
  • Start date Start date
  • Tags Tags
    Latex Line
AI Thread Summary
To add arrows to a line in LaTeX using TikZ, the command \draw [<->](3.14,-3.14) -- (3.14,3.14) can be used for double-headed arrows. For more specific arrow placements, such as at 1/3 intervals, the TikZ library for decorations can be utilized. The code snippet using \usetikzlibrary{decorations.markings} allows for precise control over arrow placement along a line. Additionally, users seeking to use the Ipe extensible drawing editor for LaTeX documents may encounter setup issues, such as needing specific dependency files. Instructions for downloading and unzipping these files are provided, emphasizing the importance of following the read-me file for proper installation.
Dustinsfl
Messages
2,217
Reaction score
5
How can I add a couple arrows on this line?
Code:
\draw (3.14,-3.14) -- (3.14,3.14
 
Physics news on Phys.org
dwsmith said:
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);
 
Sudharaka said:
This will do I guess,

Code:
\draw [<->](3.14,-3.14) -- (3.14,3.14);
Code:
^
|
^
|
I am looking for something like this.
 
dwsmith said:
Code:
^
|
^
|
I am looking for something like this.

Then the following may help.

Code:
\draw [->>](3.14,-3.14) -- (3.14,3.14);
 
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. :)
 
[->>] produced the arrow heads right behind each other. Is there a way to put arrows at 1/3 intervals on the line?
 
Sudharaka said:
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?
 
dwsmith said:
[->>] 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:

View attachment 353

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.
 

Attachments

  • double-arrow.png
    double-arrow.png
    179 bytes · Views: 94
dwsmith said:
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?

Please unzip the zip file you have downloaded and read the read-me file in it. There you will find that you need a file called, ipe-7.0.0-dependencies-win.zip. That can be downloaded http://fr.sourceforge.jp/projects/sfnet_ipe7/downloads/ipe/ipe-7.0.0-dependencies-win.zip/. Proceed as the read-me file instructs.
 
  • #10
Sudharaka said:
Please unzip the zip file you have downloaded and read the read-me file in it. There you will find that you need a file called, ipe-7.0.0-dependencies-win.zip. That can be downloaded http://fr.sourceforge.jp/projects/sfnet_ipe7/downloads/ipe/ipe-7.0.0-dependencies-win.zip/. Proceed as the read-me file instructs.

Where do I save the files? How do I tell Winedt to interact with it?
 
  • #11
dwsmith said:
Where do I save the files? How do I tell Winedt to interact with it?

Did you do what the read-me tells? Just unzip the "ipe-7.0.0-dependencies-win.zip" to the previously unzipped Ipe folder(where the read-me file lies). Then go to ipe-7.0.10-win--> ipe-7.0.10--> bin-- >ipe
 

Similar threads

Replies
1
Views
2K
Replies
4
Views
2K
Replies
1
Views
2K
Replies
12
Views
3K
Replies
12
Views
2K
Replies
5
Views
3K
Replies
3
Views
1K
Back
Top