Is it possible to unload a LaTeX package?
I have a preamble file which I use for most documents. Now suppose I want to use a preamble file preamble.tex
and explicitly don't want to use one of the packages loaded in it. For example in this file there is a line:
\usepackage{mypackage}
and then I want to have a file test.tex
which contains something like this:
\input{preamble}
\unloadpackage{mypackage}
\usepackage{myotherpackage} %myotherpackage can only be loaded when mypackage is not present