Consider the following code:
\documentclass[a4paper,12pt]{article}
\usepackage[all,2cell]{xy}
\UseAllTwocells
\newcommand{\partinto}[3][]{%
\xymatrix@C=.85em@1{%
*+{#2\,} \ar@{|-}[r]_-*-{\scriptstyle #1} & *+{\,#3} %
}}
\begin{document}
Let $\partinto[n]{\lambda}{d}$ be a partition of $d$ into at most $n$ parts.
Also, \[ \bigoplus_{\partinto[n]{\lambda}{d}} V_\lambda. \]
\end{document}
My problem is, the xymatrix in the index of the big direct sum symbol does not scale. Is there any way I can make it automatically scale? I could certainly make a new command \scrpartinto which works as an index, but I would like to know a way to make \partinto scale automatically once it is used as an index.