I'm creating a communication diagram. The desired effect is to have the following in a box:
Alice Bob
x
-------------------------------------------->
y
<-------------------------------------------
z
-------------------------------------------->
.
.
.
Also, I need the ability to group two of the arrows together and put curly braces around them to look like this except I want a single set of curly braces around both of them:
{ -----> }
{ <----- }
I figured out how to make the box and the arrows, but I'm having trouble grouping the arrows with the curly braces. I tried using the gather
environment but could not figure it out. Here is what I have so far:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{center}
\begin{minipage}{6.5in}
\setlength{\parindent}{0cm}%
\fbox{\vbox{%
\bf Alice \hfill
\bf Bob
\begin{gather*}
\xleftarrow{\hspace*{8cm}} \\
\xrightarrow{\hspace*{8cm}}
\end{gather*}
\[ \xleftarrow{\hspace*{8cm}} \]
\[ \xrightarrow{\hspace*{8cm}} \]
\[ \xleftarrow{\hspace*{8cm}} \]
\[ \xrightarrow{\hspace*{8cm}} \] }}
\end{minipage}
\end{center}
\end{document}
Any help would be appreciated!
\documentclass
and the appropriate packages so that those trying to help don't have to recreate it. – Peter Grill Apr 18 '13 at 19:34