# [Tex/LaTex] How to center text/math inside a list environment

equationshorizontal alignmentlists

When using math (display) mode in conjunction with a list environment, the displayed material is not truly centered on the page; it is only centered with respect to the indentation of the item. Consider the following example:

\begin{itemize}
$x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$
\item The freshman's dream
$(a+b)^n=a^n+b^n$
\end{itemize}


How can I get the displayed math to be centered horizontally with respect to the margins of the page??

Of course, this question is not specific to centering a displayed equation. The same question is valid for the use of \begin{center} text \end{center} inside a list environment.

\documentclass{article}
\usepackage{amsmath,bm}
\def\MLine#1{\par\hspace*{-\leftmargin}\parbox{\textwidth}{$#1$}}
\begin{document}

\noindent\rule{\textwidth}{2pt}

\begin{itemize}
$(a+b)^n=a^n+b^n$