I received great help on this question: Table nesting with columnar widths based on uniform parent width, not uniform child width
I'm looking to center columns on a character in mathmode. I understand this is often conventionally done on equals or decimal points
I have a newcolumntype defined like so:
\newcolumntype{C}[1]{>{\centering\arraybackslash\hsize=#1\hsize}X}
How would I modify this column type so that the contents of the column would center on $=$ or $\rightarrow$? To somehow incorporate something like c@{$\rightarrow$}?
I tried this:
\newcolumntype{C2}[1]{>{\centering\arraybackslash\hsize=#1\hsize}X@{$\rightarrow$}}
But the result when I used it was
! Package array Error: Illegal pream-token (2.3333): `c' used.

\newcolumntype{C2}by\newcolumntype{A}(or any other letter exceptc,l,r,m,p,b,XandS) – leandriis Nov 08 '18 at 21:47