
A seguinte equação alinhada apresenta um erro 'Extra }, ou esquecido \right.':
\begin{equation}
\begin{aligned}
U&=\mathbb{R}^{M N}\\
V&=\mathbb{R}^{2 M N}\\
W&=\mathbb{R}^{4 M N}\\
\min_{v\in V} \left\{E_p(v)&=\|\nabla v\|_{W,1}+\lambda \|\rho(v)\|_{U,1} \right\}
\end{aligned}
\end{equation}
A remoção dos comandos \left
e \right
evita o erro:
\begin{equation}
\begin{aligned}
U&=\mathbb{R}^{M N}\\
V&=\mathbb{R}^{2 M N}\\
W&=\mathbb{R}^{4 M N}\\
\min_{v\in V} \{E_p(v)&=\|\nabla v\|_{W,1}+\lambda \|\rho(v)\|_{U,1} \}
\end{aligned}
\end{equation}
Não entendo por que ter o marcador de alinhamento dentro de um \left
\right
comando é um erro. Como alinho uma equação com o alinhamento dentro de um \left
\right
comando?
Responder1
Você precisa fechar o \left
antes do alinhamento \right.
e abrir outro \left
:
Mas isto pode ser problemático se houver tamanhos verticais diferentes em ambos os lados. Neste caso, a solução mais fácil é usar delimitadores de tamanho fixo, como \big
, \Big
, etc.
Código:
\documentclass{article}
\usepackage{amsmath,amssymb}
\begin{document}
\begin{equation}
\begin{aligned}
U&=\mathbb{R}^{M N}\\
V&=\mathbb{R}^{2 M N}\\
W&=\mathbb{R}^{4 M N}\\
\min_{v\in V} \left\{E_p(v)\right.&=\left.\|\nabla v\|_{W,1}+\lambda \|\rho(v)\|_{U,1} \right\}
\end{aligned}
\end{equation}
\end{document}