I'm trying to improve the answers to my other question to create my personal package which provides some commands, like \alert to write in red color, or some options like lineno to turn on line numbering.
But what should I do when I send the tex file to someone who don't have the my personal style package?
Looking for a solution I tried to check before the document class if my package file exists. If yes, great, load it.
But the problem is in negative case. I should to redefine all personal commands or clean all of them to avoid errors.
What is the better way to do this?
personal.stywith its dependencies. Just incase Yiannis's Answer to "Best practice on organising your preamble" – texenthusiast Apr 26 '13 at 02:43filecontents) then you can add user level macros in the.texfile you send such as\providecommand{\alert}[1]{#1}. This way the.texfile can be compiled without having access to your personal.styfiles. I do this for the case where I do not load thelinenopackage, but don't want to test everyplace where I need to use the related commands. So, for the case where I do not load that package I have a\providecommandto define the usuallinenomacros to have no effect. – Peter Grill Apr 26 '13 at 06:38