Something about the curvy edge is increasing the bounding box by a lot. This could be considered a bug. To cancel that effect, add overlay
to the options for the \path
which draws the arrows.
You might also consider using \limits
for your \bigoplus
es and \mathclap
(reference) to get the subscripts taking up less space. Here's my version:
\def\mathclap{\mathpalette\mathclapinternal}
\def\mathclapinternal#1#2{\clap{$\mathsurround=0pt#1{#2}$}}
\let\oldbigoplus=\bigoplus
\def\bigoplus{\oldbigoplus\limits}
\begin{tikzpicture}[remember picture=true]
\matrix (m) [
matrix of math nodes,
row sep=1em,
column sep=2em,
text height=1.5ex, text depth=0.25ex
]
{Q_{5}\oplus\bigoplus_{\mathclap{i\in\{1,2,3,4\}}} Q_{12345\setminus i}[1] &
\bigoplus_{\mathclap{l\in\{1,2,3,4\}}} Q_{l5}\oplus Q_{12345}[1] &
\bigoplus_{\mathclap{j\neq k\in\{1,2,3,4\}}} Q_{jk5} \\
\bigoplus_{\mathclap{i\in\{1,2,3,4\}}} Q_{12345\setminus i} &
Q_{12345} &
S_{12345} \\
};
\path[overlay,->, font=\scriptsize,>=latex]
(m-1-1) edge (m-1-2)
(m-1-2) edge (m-1-3)
(m-1-3) edge[out=348,in=172] (m-2-1)
(m-2-1) edge (m-2-2)
(m-2-2) edge (m-2-3);
\end{tikzpicture}
PS: Your descr/.style=...
declaration has no effect unless you are actually applying the style to something. So you can cut that out for minimal example purposes.
Edit: I have incorporated @Caramdir's suggested edits.
In Xy-pic
:
\documentclass{article}
\usepackage[all,2cell]{xy}
\UseAllTwocells
\begin{document}
\xymatrixcolsep{3cm}
\xymatrix{
A \ruppertwocell^f{\alpha}
\rlowertwocell_h{\beta}
\ar[r]|{g}
&B\\
}
\end{document}
In TikZ:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning,arrows}
\begin{document}
\begin{tikzpicture}
\node (a) {$A$};
\node[right=4cm of a] (b) {$B$};
\draw[->]
(a) edge node[fill=white] (g) {$g$} (b)
(a) edge[bend left] node (f) [above]{$f$} (b)
(a) edge[bend right] node (h) [below]{$h$} (b);
\draw[shorten <=2pt,shorten >=2pt,-implies]
(f) edge[double] (g)
(g) edge[double] (h);
\end{tikzpicture}
\end{document}
Best Answer
It's possible to use
ellipse
but it's better to use arectangle
withrounded corners
andfit
.