I'm using \xymatrix to draw a diagram and I need some of the arrows to be
named with a matrix over it. To draw the matrices over arrows, I'm using the \arrow command but, unfortunately, it puts very large matrices and collapses the diagram. The usual size-changing commands, such as \scriptstyle…, do not work.
could somebody give a hint? Thanks in advance.
[Tex/LaTex] draw diagrams with \xymatrix
matricesxy-pic
Best Answer
The
smallmatrix
environments are the right thing to use here, since they by default are small enough to fit into a line of text. You can use\begin{smallmatrix}
...\end{smallmatrix}
in place of\begin{matrix}
...\end{matrix}
to get something that's small enough.Then, if you use the
mathtools
package, you can add delimiters:psmallmatrix
is likepmatrix
(a matrix delimited by parentheses, but smaller),bsmallmatrix
uses brackets likebmatrix
, and so on.Here's how this looks with arrows in a commutative diagram: