Here is a solution with tikz-cd
, which makes this somewhat easier. In particular, you can use cells=nodes
to get your box and circle.
There are a few problems with the way you are changing type size in your code. If you want to enlarge the whole diagram, use the adjustbox
package and
\adjustbox{scale=1.5,center}{\begin{tikzcd}...\end{tikzcd}}
I wasn't sure what you meant by shading the $S^n/\mathbb{Z}^2$
, so I made it blue. Easy to change that.
To change the arrowheads, add arrow style=tikz, >={Triangle[length=2mm]}
to the tikzcd
options. You can adjust the length
and width
of the arrowheads however you like. You might also consider >={latex}
as a similar option.
\documentclass{article}
\usepackage{amsmath}
\usepackage{stix}
\usepackage{tikz-cd}
\usepackage{adjustbox}
\newcommand{\Z}{\mathbb Z}
\renewcommand{\P}{\mathbb P}
\newcommand{\R}{\mathbb R}
\begin{document}
\begin{tikzcd}[arrow style=tikz, >={Triangle[length=2mm]}, cells={nodes={inner sep=2mm}}, row sep=1cm]
\overline{D_1^n}\arrow[rr, hook, "i"]\arrow[drr, red, hook, two heads, text=black, "\pi_2\circ i", "f\circ\pi_1"']\arrow[d, two heads, "\pi_1"']
&& S^n\arrow[d, two heads, "\pi_2"]\\
|[draw, circle, inner sep=0pt, outer sep=2pt]|\raisebox{.5ex}{$\overline{D_1^n}$}\Big/\raisebox{-.5ex}{$\sim$}\arrow[rr, hook, two heads, "f", "\cong"']
&& |[draw, inner sep=2pt, outer sep=2pt, text=blue]|\raisebox{.5ex}{$S^n\!$}\Big/\raisebox{-.5ex}{$\Z^2$}\arrow[r, equals] & \P^n(\R)
\end{tikzcd}
\end{document}
Best Answer
If you are willing to switch to tikz-cd this becomes easy.
In order to manipulate the target of the arrow, you may want to play around with the options in the arrow below.
I just checked the syntax for
xy
and the default result looks quite good, too. Would this be close enough to the right arrow?