Graphics, Figures & Tablesdrawing arrows

Information and discussion about graphics, figures & tables in LaTeX documents.
junextension
Posts: 7
Joined: Tue Aug 17, 2010 11:08 am

drawing arrows

Post by junextension »

I would like to draw arrows as in the image. The symbols are not important. I appreciate any of your advice. [img]file:///C:/Users/Jun/Desktop/870356985_75.jpg[img]

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: drawing arrows

Post by Stefan Kottwitz »

Hi Jun,

welcome to the board!
We cannot see the image. Please post it as attachment here.

Stefan
LaTeX.org admin
junextension
Posts: 7
Joined: Tue Aug 17, 2010 11:08 am

Re: drawing arrows

Post by junextension »

Dear Stefan,

I am sorry that I did not post image right. Please understand that I am new for this community. I would like to draw arrows as in the image. I appreciate any of your advice.
Attachments
Arrows below and above a sentence.
Arrows below and above a sentence.
arrows.png (10.88 KiB) Viewed 5144 times
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

drawing arrows

Post by CrazyHorse »

junextension wrote: I would like to draw arrows as in the image. I appreciate any of your advice.

Code: Select all

\documentclass{article}
\usepackage{pst-node}

\begin{document}

 I do not know \rnode{A}{how} to draw \rnode{B}{arrows} 
like \rnode{C}{this} in \rnode{D}{\LaTeX}.
\ncbar[angleA=90,offset=-0.6em]{->}{A}{A}\nbput[npos=1.1]{(1)}
\ncbar[angleA=-90,offsetA=-0.6em,offsetB=-1.1em]{->}{A}{B}\nbput[npos=1.1]{(2)}
\ncbar[angleA=90,offsetA=-1.1em]{->}{B}{D}\naput{(2)}
\ncbar[angleA=-90,offsetB=-1em]{->}{D}{C}\naput[npos=1.99]{(1)}

\end{document}
needs latex=>dvips=>ps2pdf (see also http://tug.org/PSTricks/main.cgi?file=pdf/pdfoutput)


Herbert
Attachments
zz.png
zz.png (3.92 KiB) Viewed 5149 times
junextension
Posts: 7
Joined: Tue Aug 17, 2010 11:08 am

Re: drawing arrows

Post by junextension »

Dear Mr. GrazyHorse,

Thank you very much for your help.

I use winedit. I copied and pasted the above code. Somehow, it does not work. Compiler stopped in the middle. I believe that the package is installed correctly. Do you have any idea for what is happening?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

drawing arrows

Post by localghost »

junextension wrote:[…] Somehow, it does not work. Compiler stopped in the middle. […]
Not very expressive. Check the log file for warnings and error messages. Pay special attention to Herbert's note regarding the compilation process.


Best regards and welcome to the board
Thorsten
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

drawing arrows

Post by CrazyHorse »

junextension wrote: I use winedit. I copied and pasted the above code. Somehow, it does not work. Compiler stopped in the middle. I believe that the package is installed correctly. Do you have any idea for what is happening?
use the sequence latex->dvips->ps2pdf. Don't know how
this can be done with one click in WinEdt.
However, I installed version 6 and tried successfully:

Shift-Ctrl-L (TeX->LaTeX)
Shift-Ctrl-D (TeX->dvips)
TeX->PDF->ps2pdf (no shortcut here)

or use the buttons from the menu bar

As an alternative you can run XeLaTeX, it needs no
additional steps

Herbert
junextension
Posts: 7
Joined: Tue Aug 17, 2010 11:08 am

Re: drawing arrows

Post by junextension »

Dear Herbert,

Thank you very much for your help. I installed Winedit Version 6, the problem was resolved with DVI file. I got used to Version 5 so I was using it.

DVI file is good but PDF file is not good. I follow your instruction of textfying it into PDF but I got no arrows above and below the sentence and (2) sign showed up at the end.

Is this a problem with MITEX?

Thank you very much for your cooperation.

Jun Tanaka
junextension
Posts: 7
Joined: Tue Aug 17, 2010 11:08 am

Re: drawing arrows

Post by junextension »

Dear Herbert,

Thank you very much for your help. I installed Winedit Version 6, the problem was resolved with DVI file. I got used to Version 5 so I was using it.

DVI file is good but PDF file is not good. I follow your instruction of textfying it into PDF but I got no arrows above and below the sentence and (2) sign showed up at the end.

Is this a problem with MITEX?

Thank you very much for your cooperation.

Jun Tanaka
Attachments
no arrows.jpg
no arrows.jpg (14.57 KiB) Viewed 5129 times
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

drawing arrows

Post by CrazyHorse »

junextension wrote: DVI file is good but PDF file is not good. I follow your instruction of textfying it into PDF but I got no arrows above and below the sentence and (2) sign showed up at the end.

Is this a problem with MITEX?
it has nothing to do with MikTeX.
try the following steps with viewing:

Shift-Ctrl-L view the dvi output, is it ok?

Shift-Ctrl-D (TeX->dvips) view the ps output, is it ok?

ps2pdf (a button) and the pdf, ist it ok?

Herbert
Post Reply