I want to introduce some command renaming. It is usually claimed that definitions are to be included in the preamble, with the document text put within the document body. What are the considerations that would put the definition of commands within the body, rather than in the preamble?
\makeatletter
\let\pipe\galex@pipe
\let\divid\galex@divid
\let\bfblue\galex@bfblue
\let\nopari\galex@nopari
\let\pari\galex@pari
\makeatother
\begin{document}. – Clara Sep 06 '22 at 14:02styfiles. I suppose there are specific commands for hooking after the preamble. Right? – Veak Sep 06 '22 at 14:20\AtBeginDocument{...}. – campa Sep 06 '22 at 15:04\letcommands inmynames.styand use\usepackage{mynames}in the preamble, allowing re-use and cleaner document structure. – David Carlisle Sep 06 '22 at 16:58\catcode``-=11, the way to reset it is\catcode``-=12. The question was about some information about situations when one would hook commands after the promable. – Veak Sep 06 '22 at 18:21\letwhich is not a latex command. – David Carlisle Sep 06 '22 at 18:24\let? – Veak Sep 06 '22 at 18:29\newcommandor (in recent releases)\NewCommandCopy– David Carlisle Sep 06 '22 at 20:35