# Adjusting arrows in this diagram

My code is:

\documentclass[a4paper]{book}
\usepackage{tikz-cd}

\begin{document}
\begin{tikzcd}[column sep=large, row sep=huge]
Hom_{\Gamma}(\mathcal{B}(G),A)\arrow{r}{\rho}\arrow{rd}
& Hom_{\Delta}(\mathcal{B}(G),A)\arrow{d}{i^{*}}\\
& Hom_{\Gamma}(\mathcal{B}(G),A)
\end{tikzcd}
\end{document}


but I want the slanted arrow to go at the H of Hom by its left and not above it. How do I fix it?

• Please make your code compilable by adding the documentclass as well as the relevant packages and the definition of \Hom if the command isn't defined in a package. – leandriis Oct 27 '19 at 14:52
• actually, \Hom is just to print Hom as not written in math mode. – Davide Trono Oct 27 '19 at 15:02

## 2 Answers

Set the end anchor key. Either

\arrow[rd, end anchor=west]


Or,

\arrow[rd, end anchor=north west]


\documentclass{article}
\usepackage{tikz-cd}

\begin{document}
\begin{tikzcd}[column sep=large, row sep=huge]
Hom_{\Gamma}(\mathcal{B}(G),A)\arrow{r}{\rho}\arrow[rd, end anchor=west]
& Hom_{\Delta}(\mathcal{B}(G),A)\arrow{d}{i^{*}}\\
& Hom_{\Gamma}(\mathcal{B}(G),A)
\end{tikzcd}
\end{document}

• I think north west would look better – Bernard Oct 27 '19 at 15:26
• @Bernard OP Yes. It looks better. :) – nidhin Oct 27 '19 at 15:37

I think TikZ is plainer.

%\documentclass[a4paper]{book}
\documentclass[border=5mm]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\path
(0,0)    node (L) {$Hom_{\Gamma}(\mathcal{B}(G),A)$}
++(0:4)  node (C) {$Hom_{\Delta}(\mathcal{B}(G),A)$}
+(-90:2) node (B) {$Hom_{\Gamma}(\mathcal{B}(G),A)$};
\draw[->] (L)--(C) node[midway,above]{$\rho$};
\draw[->] (C)--(B) node[midway,right]{$i^{*}$};
\draw[->] (L)--(B.north west);
\end{tikzpicture}
\end{document}

• Approved also your code. Very nice. – Sebastiano Oct 27 '19 at 20:44