I want to build a chain of commutative diagram
I did get the code here for building the commutative diagram. This is the code.
\documentclass[12pt,twoside,a4paper]{report}
\usepackage{tikz-cd}
%\newcommand{\nospaceperiod}{\makebox[0pt][l]{\,}}
\begin{document}
\[
\begin{tikzcd}
V_1 \arrow{r} \arrow{d}{f_1} &
V_2 \arrow{r} \arrow{d}{f_2} &
\cdots \arrow{r} &
V_{n-1} \arrow{r} \arrow{d}{f_{n-1}} &
V_n \arrow{d}{f_n}
\\
W_1 \arrow{r} &
W_2 \arrow{r} &
\cdots \arrow{r} &
W_{n-1} \arrow{r} &
W_n
\end{tikzcd}
\]
\end{document}
which gives this output
I am almost done. I just want to know what do I change in \arrow{r}
to make the right arrow to be two sided arrow or hook arrow or curved arrow.
I want output to look like these
Please share some manual that gives different keywords for different kind of arrows.
Best Answer
For two sided arrow, simply replace it by:
\arrow[<->]{r}
.To bend the arrow, use:
\arrow[bend right]{r}
or\arrow[bend left]{r}
Use
\arrow[bend right]{rr}
to point the curved arrow to next but one variable.To get the output as in last image, use this code