# Flush top, center, flush bottom in an array

In an array there are three options r, c, l for flushing right, centered and flushing left. But how about flushing up and down and centered vertically? As an example in the array below, I want the left entry be centered vertically and not to be up!

$\begin{array}{cc} \begin{array}{c} \xymatrix{A\ar[r] & A\ar[r] & A} \end{array} & \xymatrix{ & A & \\ A\ar[ur]\ar[r]\ar[dr] & A & A\ar[ul]\ar[l]\ar[dl]\\ & A & } \end{array}$


adjustbox can be used to provide a vertical alignment adjustment via the valign key-value:

\documentclass{article}

\begin{array}{cc} \adjustbox{valign=c}{\xymatrix{A\ar[r] & A\ar[r] & A}} & \adjustbox{valign=c}{\xymatrix{ & A & \\ A\ar[ur]\ar[r]\ar[dr] & A & A\ar[ul]\ar[l]\ar[dl] \\ & A & }} \end{array}

The vertical anchor is repositioned to the centre of the construction.
• @AmirHoseinSadeghiManesh: Sure. Put whatever you like in a n array, and wrap that inside an \adjustbox. – Werner Nov 8 '16 at 16:14