If \input just "imports the commands from the [target file]" into your new document, then what is the difference between calling a set of commands via \input{filename} (where filename is some .tex document) and creating a package with these commands defined and calling that package via \usepackage?
Asked
Active
Viewed 320 times
3
\makeatletter ... \makeatotheris not needed when implementing packages with macros using @ as parts of their names. – kiss my armpit Dec 13 '13 at 06:47\usepackage{foo}will only loadfoothe first time it is called. This is especially useful for packages that load other packages, to avoid redundancies and conflicts that come from importing the same code more than once. – Charles Staats Dec 13 '13 at 07:01