In my project, I added this code \AtBeginDocument{\renewcommand\proofname{\underline{Proof}}}.
When I use the proof environment, the proofname goes like $\underline{\textit{Proof}}.$
But what I want is the underline extends to the end of the dot like this $\underline{\textit{Proof.}}$
So how can I do this without affecting the rest of the project ?
Here is my full code
\documentclass[13pt,a4paper]{report}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{amsthm}
\AtBeginDocument{\renewcommand\proofname{\underline{Proof}}}
\begin{document}
\begin{proof}
abc
\end{proof}
\end{document}

\documentclass{...}, the required\usepackage's,\begin{document}, and\end{document}. That may seem tedious to you, but think of the extra work it represents for the users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem. – samcarter_is_at_topanswers.xyz Dec 12 '23 at 12:39\....namemacros they were introduced specifically to have macros just with pure text and no formatting so that it allows translation by babel and other packages just translating text with formatting being still supplied by the document class. – David Carlisle Dec 12 '23 at 12:45amsthmso you can declare a new proof enviornment using the declarations of that package – David Carlisle Dec 12 '23 at 12:50