2

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
3

Set the end anchor key. Either

\arrow[rd, end anchor=west]

enter image description here

Or,

\arrow[rd, end anchor=north west]

enter image description here

\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}
| improve this answer | |
  • 1
    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
4

I think TikZ is plainer.

enter image description here

%\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}
| improve this answer | |
  • 1
    Approved also your code. Very nice. – Sebastiano Oct 27 '19 at 20:44

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.