# Natural transformation

> Two parallel functors and a 2-cell between them. A tikz-cd example for LaTeX, rendered, with its complete source, ready to copy or to open in a TeXeR project.

A tikz-cd example in the TeXeR TikZ library: https://texer.org/library/tikz-cd/natural-transformation

Package: [tikz-cd](https://texer.org/library/tikz-cd.md), on CTAN at https://ctan.org/pkg/tikz-cd.

Tags: natural transformation, 2-cell, category theory

## Source

```latex
\usepackage{tikz-cd}

\begin{tikzcd}[column sep=huge]
  \mathcal{C} \arrow[r, bend left=50, "F"{name=U}] \arrow[r, bend right=50, "G"'{name=D}] &
  \mathcal{D}
  \arrow[Rightarrow, from=U, to=D, shorten=1.5mm, "\eta"]
\end{tikzcd}
```

## As a complete document

The same example in a document that compiles on its own with pdfLaTeX:

```latex
\documentclass[margin=3mm]{standalone}
\usepackage{tikz}
\usepackage{xcolor}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tikz-cd}

\begin{document}

\begin{tikzcd}[column sep=huge]
  \mathcal{C} \arrow[r, bend left=50, "F"{name=U}] \arrow[r, bend right=50, "G"'{name=D}] &
  \mathcal{D}
  \arrow[Rightarrow, from=U, to=D, shorten=1.5mm, "\eta"]
\end{tikzcd}
\end{document}
```
