[Tex/LaTex] Vertical alignment of text around a symbol in table

aligntablesvertical alignment

Is there a way to organize the vertical alignment in table around a particular symbol. For example in the below code

\begin{table}
\begin{center}
  \begin{tabular}{ *{1}{c}}
    a = b + c \\
    a + b = c + d \\
  \end{tabular}
  \caption{16 constants used for BLAKE-256}
\end{center}
\end{table}

A sample table would look like

  a = b + c
a + b = c + d

However, I would like the output to center align around equals sign. Something like below.

    a = b + c
a + b = c + d

Is something like this possible in latex?

Best Answer

Is there are reason you aren't using align*?

\documentclass{article}
\usepackage{amsmath}
\begin{document}

\begin{table}
  \centering
  \begin{minipage}{\linewidth}
  \begin{align*}
    a & = b + c \\
    a + b & = c + d
  \end{align*}
  \end{minipage}
  \caption{16 constants used for BLAKE-256}
\end{table}
\end{document}

enter image description here