I'm using this The Legrand Orange Book Template (English)
And when I use align environment in a example one, I got this space between the equation and qed (the black square below):
I tried to use \vspace{-1em} after \end{align*} but it didn't change anything.
The code from the template:
\newtheoremstyle{blacknumbox} % Theorem style name
{0pt}% Space above
{0pt}% Space below
{\normalfont}% Body font
{}% Indent amount
{\small\bf\sffamily}% Theorem head font
{\;}% Punctuation after theorem head
{0.25em}% Space after theorem head
{\small\sffamily\thmname{#1}\nobreakspace\thmnumber{\@ifnotempty{#1}{}\@upn{#2}}% Theorem text (e.g. Theorem 2.1)
\thmnote{\nobreakspace\the\thm@notefont\sffamily\bfseries---\nobreakspace#3.}}%
Optional theorem note
\theoremstyle{blacknumex}
\newtheorem{exampleT}{Exemplo}[chapter]
% Definition box
\newmdenv[skipabove=7pt,
skipbelow=7pt,
rightline=false,
leftline=true,
topline=false,
bottomline=false,
linecolor=ocre,
innerleftmargin=5pt,
innerrightmargin=5pt,
innertopmargin=0pt,
leftmargin=0cm,
rightmargin=0cm,
linewidth=4pt,
innerbottommargin=0pt]{dBox}
\newenvironment{example}{\begin{dBox}\begin{exampleT}}{\hfill{\tiny\ensuremath{\blacksquare}}\end{exampleT}\end{dBox}}


{}button in the editor so the example is formatted as a code block, otherwise it is very hard to offer any help. – David Carlisle Jun 28 '18 at 16:23