I'm formating my thesis. When writing drafts I used documentclass article and now I'm migrating to a template which uses documentclass report. I don't like to manualy change
\section and also a couter for theorems from
counter. Is there an abstraction layer in LaTeX telling me what the toplevel sectioning environment is?
Also in article,
\refname is used for bibliography name but
\bibname is used in report. Bibliography is added to the table of contents in report but not in article.
Is there a way to unify the text of individual chapters and bibliography so it works consistently with both article and report?