Is there a generally applicable technique which will, for any tag/environment used in a LaTeX document, allow the default styling of the contents of instances of that tag/environment to be tweaked in the preamble?
For instance, if I decided that all instances of
\emph{}
in the document should have their contents rendered not only italicised (a common default) but also bold, then what would I do?Similarly, if I decided that all instances of
\begin{verbatim}...\end{verbatim}
should have their contents rendered not only in a monospaced font (a common default) but also on a grey background, then what would I do?
But more importantly than simply explaining how to handle these two example cases, please can you outline a procedure a LaTeX user can follow in all cases in order to be able to change the styling of any given tag/environment.
\section
has to do much more than a<head>
tag in HTML, where, for instance, there's no problem with page breaking, widows and orphans. Comparing (La)TeX and HTML is really wrong.<style>
), JavaScript, etc.). Except of course that LaTeX automates many tasks (toc, ...).