tensor-diagram.tex 888 B

1234567891011121314151617181920212223242526
  1. \documentclass[varwidth=true, border=2pt]{standalone}
  2. \usepackage{tikz}
  3. \usetikzlibrary{shapes, calc, shapes, arrows, decorations.markings}
  4. \usepackage{amsmath,amssymb}
  5. \usepackage{xcolor}
  6. \definecolor{xvectorcolor}{HTML}{77933C}
  7. \begin{document}
  8. \begin{tikzpicture}[font=\boldmath]
  9. \large
  10. % Points
  11. \node (A) at (0,2) {$X \times Y$};
  12. \node (B) at (4,2) {$Z'$};
  13. \node (C) at (2,0) {$Z$};
  14. % Round loop arrow in middle:
  15. %\draw[->, ultra thick] (2.1,0.7) arc(-70:260:0.4);
  16. \draw[ultra thick,xvectorcolor, arrows={-latex}] (A) -- (C) node[sloped,midway,below=-0.1cm] {$T$};
  17. \draw[ultra thick,blue!80, dashed, arrows={-latex}] (C) -- (B) node[sloped,midway,below=-0.1cm] {$f$};
  18. \draw[ultra thick,red!80,line cap=round,arrows={-latex}] (A) -- (B) node[sloped,midway,right=-0.3cm,above=-0.1cm] {$T'$};
  19. \end{tikzpicture}
  20. \end{document}