6

I am using the \xymatrix command

this is the code I've written

\[\xymatrix{
& A \ar[d]^{i}\\
 B \ar@{-->}[ru]^-{\exists \overset{\sim} \varphi}\ar[r]^{\varphi}&C
}\]

My problem is with the [ru]... The dashed arrow goes upward, whereas I want it to go downward; and I keep getting an error !

  • Can you provide a MWE? Which packages have you included? Are you in a point where the @ symbol is a letter? – Bordaigorl Dec 13 '13 at 18:17
  • 2
    Welcome to TeX.SE! – Mico Dec 13 '13 at 18:18
11

You could use \ar@{<--}, but it's conceptually better to originate it from A:

\documentclass{article}
\usepackage{amsmath}
\usepackage[all,cmtip]{xy}

\begin{document}

\[
\xymatrix{
  & A \ar[d]^{i} \ar@{-->}[dl]_-{\exists \tilde{\varphi}} \\
  B \ar[r]^{\varphi} &C
}
\]

\end{document}

Note \tilde{\varphi}, rather than \overset{\sim}{\varphi}. You can use \widetilde if the accent seems too short.

enter image description here

Alternatively, you can use tikz-cd

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

\begin{document}

\[
\begin{tikzcd}
  {} & A \arrow{d}{i} \arrow[dashed,swap]{dl}{\exists \tilde{\varphi}} \\
  B \arrow{r}{\varphi} & C
\end{tikzcd}
\]

\end{document}

enter image description here

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.