I want to centering \vdots with \equiv in a system of modular equations. And I tried to use mathrel{\makebox[\widthof{=}]{\equiv}} like this one.
But XeLaTeX said
! Extra }, or forgotten $.
\@settodim #1#2#3->\setbox \@tempboxa \hbox {{#3}}
\dimen@ii =\z@ \@tf@r \res...
l.238 \end{frame}
! Missing number, treated as zero.
My full text:
\[
\begin{cases}
x \equiv a_1 &\pmod{m_1}\\
\mathrel{\makebox[\widthof{\equiv}]{\vdots}}\\
x \equiv a_n &\pmod{m_n}
\end{cases}
\]
And I tried to type ≡ manually, but XeLaTeX can't display it.
Any ideas?

\vdotswithin{\equiv}macro – daleif Aug 17 '14 at 14:21\makeboxand\widthofworks in text mode, and you are giving it something that require math mode – daleif Aug 17 '14 at 14:23