A similar question has been asked before but, I believe, I am trying something slightly different as I am trying to make adjustments using renewenvironment.
I am trying to obtain a solid square at the end of a proof. If I don't try to use the renewenvironment, I get a solid square. However, if I use the renewenvironment, the "Proof" title is bold (as required) but the box is not filled in.
I'm sure the solution will help me understand how things are being "over-written" at some points.
\documentclass{article}
\usepackage{amsmath}
\usepackage[most]{tcolorbox}
\usepackage{amsthm}
\usepackage{amssymb}
\renewcommand{\qedsymbol}{$\blacksquare$} % Requires amssymb
\newtcbtheorem[auto counter,number within=section]{theo}%
{Theorem}{fonttitle=\bfseries\upshape, fontupper=\slshape,
arc=0mm, colback=blue!5!white,colframe=blue!60!white,
every box/.style={
highlight math style={
colback=green!10!white,
colframe=blue
}
}
}{theorem}
% % If I uncomment this, the square is not filled in!
% \renewenvironment{proof}[1][Proof]{\par\noindent\textbf{#1} }
% {\hfill$\square$\par}
\begin{document}
Why doesn't it show a solid square?
\begin{theo}{Goldbach Conjecture}{difficult}
Every even natural number greater than 2 is the sum of two prime numbers.
\begin{proof}
It's obvious :)
\end{proof}
\end{theo}
\end{document}
