I have the following piece of code, where it is intended to place the figure drawn using the tikz package in one of the two columns:
Code: Select all
\documentclass[a4paper]{article}\usepackage{caption}\usepackage{graphicx}\usepackage{multicol}\usepackage{amsmath}\usepackage{tikz}\usetikzlibrary{arrows}\usetikzlibrary{through}\begin{document}\begin{multicols}{2}\begin{figure*}%* is used because without it the figure does not appear\begin{center}\begin{tikzpicture}[scale=0.75,>=latex']\node (source) at (0,0) [circle,double distance=1pt,line width=1.5pt,draw,label=below:Source] {$S$};\node (relay) at (4,2) [circle,double distance=1pt,line width=1.5pt,draw,label=above:Relay] {$R$};\node (destination) at (8,0) [circle,double distance=1pt,line width=1.5pt,draw,label=below:Destination] {$D$};\draw [double distance=0.5pt,line width=1.5pt,->] (source.60) to node [auto] {$\mathbf{H}_1$} (relay.west);\draw [double distance=0.5pt,line width=1.5pt,->] (relay.east) to node [auto] {$\mathbf{H}_2$} (destination.120);\draw [double distance=0.75pt,line width=1.5pt,->] (source.east) to node [auto,swap] {$\mathbf{H}_0$} (destination.west);\end{tikzpicture}\caption{Multiple-antenna dual-hop cooperative diversity system}\label{Cooperative Diversity System2}\end{center}\end{figure*}\end{multicols}\end{document}
How can we do that?
Thanks in advance