TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Im trying to prepare a research note on the relay communication field, I tried to draw the following diagram in LaTeX (TikZ) but I didn't succeed to draw it good enough...

Can anybody help me to draw the following diagram in LaTeX? The 'H's are bold for example

${\mathbf H}_0$...

enter image description here

share|improve this question
Take a look a tikz (paws.wcu.edu/tsfoguel/tikzpgfmanual.pdf) and the examples posted on TeXample (texample.net/tikz/examples/tag/diagrams) for examples. – Laura Jun 18 '13 at 6:09
Thank you so much Laura, The book seems to be very helpful. I wish I could read it until tomorrow(my deadline);) – Mamal Jun 18 '13 at 6:20
Maybe draw it using Inkscape and then use the tikz exporter? code.google.com/p/inkscape2tikz/ – rickhg12hs Jun 18 '13 at 6:29
Please include the version you don't like so users here can make it better. Otherwise starting from scratch is really not fun. – percusse Jun 18 '13 at 6:31
ass an addition on @rickhg12hs: you can also draw it using DIA and then export it as tikz... – long tom Jun 18 '13 at 7:11
up vote 5 down vote accepted

I know I shouldn't do it, but if you promise to start studying TiKZ the day after your deadline ( ;-) ) you can use next code.



box/.style={rectangle,draw,minimum width=3cm,minimum height=2cm},
line/.style={->,shorten >=3mm, shorten <=3mm}]

\node[box] (source) {Source};
\node[box, right=5cm of source] (dest) {Destination};
\node[box, above right=2.5cm and 2.5cm of source, anchor=center] (relay) {Relay};

\draw[line] (source.north) -- node[above,sloped] {First Time Slot} node[below,sloped]{${\mathbf H}_0$} (relay.west); 

\draw[line] ([xshift=5mm]source.east) -- node[below,sloped] {First Time Slot} node[above,sloped]{${\mathbf H}_1$} ([xshift=-5mm]dest.west); 

\draw[line,dashed] (relay.east) -- node[above,sloped] {Second Time Slot} node[below,sloped]{${\mathbf H}_2$} (dest.north); 

\draw (source.20) \antena;
\draw (source.-20) \antena;
\node[right=3mm] at ([yshift=1mm]source.east) {\vdots};

\draw[rotate=180] (dest.160) \antena;
\draw[rotate=180] (dest.-160) \antena;
\node[left=3mm] at ([yshift=1mm]dest.west) {\vdots};

\draw[rotate=-90] (relay.-50) \antena;
\draw[rotate=-90] (relay.230) \antena;
\node[below=3mm] at (relay.south) {\dots};

enter image description here

share|improve this answer
Thats good...:) thank you so much.... I promiss....:) – Mamal Jun 18 '13 at 8:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.