0\arrow{r} & A \arrow{d} \arrow{r} & B \arrow{d} \arrow{r} & C \arrow{d} \arrow{r} & 0\\
0\arrow{r} & K \arrow{r} & L \arrow{r} & M \arrow{r} & 0\\

The code above gives the following picutre:

enter image description here

I would like to write 'elements' next to the objects now and arrows between them, as in the following drawing. How do I do that?

enter image description here


Just make extra rows.

\begin{tikzcd}[contains/.style = {draw=none,"\in" description,sloped}]
          &                               & y \ar[d,contains] \ar[r,mapsto] \ar[ddd,mapsto,bend right] & x \ar[d,contains]   \\
  0\ar[r] & A \ar[d] \ar[r,crossing over] & B \ar[d] \ar[r]                                            & C \ar[d] \ar[r] & 0 \\
  0\ar[r] & K \ar[r,crossing over]        & L \ar[r]                                                   & M \ar[r]        & 0 \\
          & v \ar[r,mapsto]               & z \ar[u,contains]                                                                \\

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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