[Tex/LaTex] Diagram for Interest Rate Swaps diagrams I want to create a diagram in order to explain IRS concept. I need something like this, but I don't know how to make it: Thanks in advance! Best Answer \documentclass{article} \usepackage{tikz} \usetikzlibrary{fadings,positioning,calc,shadows} \tikzset{ bluenode/.style={ draw, white, top color=blue!50!white, bottom color=blue!90!white, rounded corners,drop shadow }, graynode/.style={ draw, top color=gray!50!white!20, bottom color=gray!50!black!20,drop shadow }} \begin{document} \begin{tikzpicture}[font=\sf] \node[bluenode] (A) at (0,0) {\begin{tabular}{c}Counterparty\\ A\end{tabular}}; \node[bluenode,right=4cm of A] (B) {\begin{tabular}{c}Counterparty\\ B\end{tabular}}; \node[graynode,below=3cm of A] (A1){Floating}; \node[graynode,below=3cm of B] (B1){Fixed}; \draw[blue!70!white,-latex,thick] ($(A.east)+(0,0.2)$) -- ($(B.west)+(0,0.2)$) node[midway,above]{Fixed rate 7.5\%}; \draw[blue!70!white,latex-,thick] ($(A.east)-(0,0.2)$) -- ($(B.west)-(0,0.2)$) node[midway,below]{LIBOR$+0.50$\%}; \draw[-latex,thick] (A) -- (A1) node[midway,right]{LIBOR$+1.50$\%}; \draw[-latex,thick] (B) -- (B1) node[midway,left]{7.3\%}; \end{tikzpicture} \end{document} You will find doing these things on your own is much more fun. Related Solutions[Tex/LaTex] Can we rotate symbols in LaTeX? How should we make this diagram Two solutions, one with “standard” tools, one with tikz-cd and code by LaRiFaRi. \documentclass{article} \usepackage{amsmath,amssymb} % for both solutions \usepackage{graphicx} % for the first solution \usepackage{tikz-cd} % for the second solution % for the first solution \newcommand{\overiso}[2]{% \overset{\substack{\textstyle #1\\[0.5ex]\rotcong\\[0.5ex]}}{#2}% } \newcommand{\rotcong}{\rotatebox[origin=c]{90}{$\cong$}} % === % for the second solution, see https://tex.stackexchange.com/a/216042/4427 \tikzset{ symbol/.style={ draw=none, every to/.append style={ edge node={node [sloped, allow upside down, auto=false]{$#1$}}} } } % === % general commands \newcommand{\numberset}[1]{\mathbb{#1}} \newcommand{\Z}{\numberset{Z}} \begin{document} \[ \dots \xrightarrow{\cong} \overiso{\Z}{C_3(*)} \xrightarrow{0} \overiso{\Z}{C_2(*)} \xrightarrow{\cong} \overiso{\Z}{C_1(*)} \xrightarrow{0} \overiso{\Z}{C_0(*)} \rightarrow 0 \] \[ \begin{tikzcd}[row sep=1em] & \Z & \Z & \Z & \Z \\ \dotsb \arrow[r,"\cong"] & C_3(*) \arrow[r,"0"] \arrow[u,symbol=\cong] & C_2(*) \arrow[r,"\cong"] \arrow[u,symbol=\cong] & C_1(*) \arrow[r,"0"] \arrow[u,symbol=\cong] & C_0(*) \arrow[r] \arrow[u,symbol=\cong] & 0 \end{tikzcd} \] \end{document} Equations Diagrams TikZ Arrows Commutative Diagrams – Creating Diagrams with Loops in TikZCD \documentclass{book} \usepackage{tikz-cd} \begin{document} \begin{tikzcd} \bullet\ar[r]\ar[d]\ar[rd]\ar[loop, <->, in=170,out=100,looseness=5]&[10pt] \bullet\ar[d]\ar[loop, <->, in=10,out=80,looseness=5] \\ \bullet\ar[r]\ar[loop, <->, in=190,out=-100,looseness=5]& \bullet\ar[loop, <->, in=-80,out=-10,looseness=5] \end{tikzcd} \end{document} Related Question
Best Answer
You will find doing these things on your own is much more fun.