0

I have made the following diagrams using the tikz-cd environment:

  1. \[\begin{tikzcd}[column sep=25pt]\emph{Aut}(A)\arrow[rr,"\phi_h"]&&\emph{Aut (A')\\&G\arrow[ur,"\rho'"]\arrow[ul,"\rho"]\end{tikzcd}\]

  2. \[\begin{tikzcd}[column sep=25pt]X\arrow[rr,"h"]\arrow[dr,"f"]&&Y\arrow[dl,"g"]\\&A\end{tikzcd}\]

How can I make it so that the $\rho'$ in the first diagram and the $f$ go below the arrow? Any help is appreciated.

4
  • 2
    As always on this site, please provide a full but minimal exmaple others can copy and test as is. For sniplets like this we have to guess your code and our guess might be different than yours.
    – daleif
    Commented Dec 6, 2023 at 15:51
  • That said, try "\rho"' note the latter is " and a '
    – daleif
    Commented Dec 6, 2023 at 15:52
  • Additionally make sure your code compiles, there is a } missing. And \emph should never even be here. Use \operatorname{Aut} for a one-of or use \DeclareMathOperator\Aut{Aut} in the preamble to define it for reuse.
    – daleif
    Commented Dec 6, 2023 at 15:54
  • This checklist may assist you with the MWE: tex.meta.stackexchange.com/a/10137/245790
    – MS-SPO
    Commented Dec 6, 2023 at 15:59

1 Answer 1

4

Use ' after "..." to move it to the other side if the arrow

\documentclass[a4paper]{article}
\usepackage{amsmath}
\usepackage{tikz-cd}
\DeclareMathOperator\Aut{Aut}
\begin{document}
\[
\begin{tikzcd}[column sep=25pt]
  \Aut(A)\arrow[rr,"\phi_h"]
  && \Aut (A')
    \\
    &G\arrow[ur,"\rho'"']\arrow[ul,"\rho"]
\end{tikzcd}
\]
\[
\begin{tikzcd}[column sep=25pt]
  X\arrow[rr,"h"]\arrow[dr,"f"']
  &&
  Y\arrow[dl,"g"]
  \\
  &
  A
\end{tikzcd}
\]
\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .