I am writing my thesis and I am using a template that has stuff like:
% Theorem definition
\newtheorem{theorem}{Theorem}
\counterwithin{theorem}{chapter}
for a bunch of environments (corollary, definition, example, lemma ,etc.).
I would like to know if I can modify or create new environments such that the text is not in italic, and there is always a symbol (like \qed) at the end of all these environments, to mark where it ends.
The italic font is nice, except when you mix math and then all looks italic and wonder if an a is an a or a math symbol for an object a...
Thanks