Graphics, Figures & Tablesvertical curved arrows between rows

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Sagil
Posts: 20
Joined: Tue Mar 24, 2009 1:15 am

vertical curved arrows between rows

Post by Sagil »

I wanted to typeset an array with curved arrows leading from one line to the next, as shown below (well, I tried):

/ Line 1
(
\ > Line 2
(
\ > Line 3

Is there any easy way to do this? I know xy-pic can do curved arrows, but always seems to introduce huge spacing between lines..

Recommended reading 2024:

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

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

phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Re: vertical curved arrows between rows

Post by phi »

Try one of the more advanced vector graphics packages like PSTricks or TikZ.
Sagil
Posts: 20
Joined: Tue Mar 24, 2009 1:15 am

Re: vertical curved arrows between rows

Post by Sagil »

Thanks, I've had a look at pstricks, and found that pst-node.sty should make it possible. Unfortunately, I can't even get the most simple examples to run - lines are simply not drawn. E.g. for the document below, I only get
text1 [blank space] text2
without any connection in between, when it should be
text1 ------------- text2
Any ideas what could be wrong?

\documentclass{article}
\usepackage{pst-node}
\begin{document}
\rnode{A}{text1} \hspace{2cm} \rnode{B}{text2}
\ncline{A}{B}
\end{document}

Edit: Nevermind, it works when you compile dvi->ps->pdf instead of directly dvi->pdf
Post Reply