I want to be able to center inline displaystyle equations (I've seen this done in some math books). For example, with enumerate:
1) [centered equation]
or with just a little bit of text to the left:
We have [centered equation 1]
so [centered equation 2].
[MWE] Here is what I tried, but I don't really know what I'm doing:
\documentclass{article}
\usepackage{bm}
\begin{document}
\begin{enumerate}
\item \begin{centering}$\displaystyle \langle \bm{x},\bm{y} \rangle =
\sum\limits_{i=1}^n x_i y_i = \sum\limits_{i=1}^n y_i x_i =
\langle \bm{y},\bm{x} \rangle$.\end{centering}
\end{enumerate}
\end{document}


centeringis not an environment.\centeringor\begin{center}...\end{center}. – cfr Jan 03 '15 at 01:06