Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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 !

share|improve this question
    
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

1 Answer 1

up vote 8 down vote accepted

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.