I am trying to create a drawing of four boxes with arrows to each and to a fifth box in the center. I got something almost working with xypic, but the arrows that should go only to the center box are going all the way across the diagram instead. It was suggested I use pgf/TikZ, but I was not able to run it correctly (many many errors occurred). I also attempted to use pstricks, but the labeling is not correct (I'm trying to work from an example in the User's Guide).
Here is my code (I have the working but not correct xypic code commented out):
Code: Select all
\documentclass[a4paper,10pt]{article}
\usepackage{amsmath}
\usepackage{pstricks}
\usepackage{pstricks-add}
\usepackage[all]{xy}
\begin{document}
%\xymatrix@C=4cm@R=3cm{\ar@{<.>}[dr] |{\fbox{proper time $\tau$}}
% \fbox{TCB} \ar@{<->}[d]_{\text{fixed rate}} & \ar@{<->}[l]_{\text{4-dimensional transformation}} \fbox{TCG} \ar@{<->}[d]^{\text{fixed rate}} \\
%\fbox{TDB} \ar@{<.>}[ur] & \fbox{TT} \ar@{<.>}[l]^{\text{4-dimensional transformation}}}
\[
\setlength{\arraycolsep}{3cm}
\begin{array}{cc}
\Rnode{a}{\psframebox{TDB}} & \Rnode{b}{\psframebox{TCB}}\\[1.5cm]
\Rnode{c}{\psframebox{TT}} & \Rnode{d}{\psframebox{TCG}}\\[1.5cm]
\Rnode{e}{\psframebox{proper time \tau}}\\[.5cm]
\end{array}
\psset{nodesep=5pt,arrows=<->}
\ncline{a}{b}\Aput{4-dimensional transformation}
\ncline{a}{c}\Bput{fixed rate}
\ncline[linestyle=dashed]{c}{d}\Bput{4-dimensional transformation}
\ncline{b}{d}\Bput{fixed rate}
\]
\end{document}