I have the following question:
I have heard that you can use $\xymatrix@1...$, if you want to put diagrams not into a separate line, but into the line you are writing text at the very moment.
This does work, but unfortunately not in the following example...
The problem is that I get error messages because of the \rotatebox command, when I put the lines below in the form $\xymatrix@1...$...
...but it works, if I use the \begin{xy}... environment, as I did it below. Unfortunately, then my triangle is placed in the middle of a new separate line.
Does anybody have an idea, how to prevent this?
\documentclass[a4paper]{scrartcl}
\usepackage{ucs}
\usepackage[ngerman]{babel}
\usepackage[latin1]{inputenc}
\usepackage{dsfont}
\usepackage{rotating}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage[mathscr]{eucal}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{extpfeil}
\usepackage{textcomp}
\usepackage{graphicx}
\usepackage[pdftex]{color}
\usepackage{paralist}
\usepackage{hyperref}
\usepackage[arrow, matrix, curve]{xy}
\renewcommand{\ttdefault}{pzc}
\deffootnotemark{[\thefootnotemark]}
\deffootnote{1.5em}{1em}{\textsuperscript{[\thefootnotemark]}}
\begin{document}
\noindent Ist $\xymatrix@1{{A\ \ } \ar@{{>}->}[r]^f & B }$ ein Monomorphismus, so erhalten wir:
$$
\begin{xy}
\xymatrix@1{{A\ \ } \ar@{{>}->}[rr]^f \ar@{->}[rd]_{\rotatebox{330}{$\sim$}} & & B \\ & Im f \ar@{^{(}->}[ru]^n & }
\end{xy}
$$
\end{document}
$\xymatrix@1...$form, with\rotatebox. Thexyenvironment is not necessary; use\[...\]rather than$$...$$in LaTeX and never leave a blank line before a displayed math formula. – egreg Feb 14 at 18:00