0

When I run the following code

\documentclass[10pt]{article}
\usepackage{amsmath, amsfonts}
\begin{document}
\begin{gather*}
  \mathbb{E} [x]\\
  \mathbb{E} \left[x\right]\\
  \mathbb{E} {\left[x\right]}
\end{gather*}
\end{document}

The result is

enter image description here

where I have an unwanted space right before \left. Is this a flaw of \left and \right? Can I redefine them as follow?

\let\oldleft\left
\let\oldright\right
\def\left#1{\bgroup\oldleft#1}
\def\right#1{\oldright#1\egroup}

I think the answer is no though.

0 Answers0