GeneralUnloading a package

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Unloading a package

Post by Montag »

Hello,

I'd like to "unload" the package textcomp when I load the package kpfonts. Can that be done like

Code: Select all

\usepackage{kpfonts}
\unloadpackage{textcomp}
? Meaning ... I'm looking for the opposite of \usepackage. :)
Last edited by Montag on Mon Sep 20, 2010 8:10 pm, edited 1 time in total.
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Unloading a package

Post by localghost »

Packages can not be unloaded thus there is not such a command.


Best regards
Thorsten
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Re: Unloading a package

Post by Montag »

Ok, well, can packages be "deactivated"?
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Unloading a package

Post by localghost »

I'm not aware of a general solution. From some packages I know that they have some kind of "load only" option. But don't ask me for their names.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Unloading a package

Post by frabjous »

I think it might help to tell us why you think you want to do this, and maybe we can suggest an alternative.
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Re: Unloading a package

Post by Montag »

I want to deactive/unload the package textcomp when loading the package kpfonts.
(I am simply stating what I want, honestly.)
There's an error when both packages are loaded and thus I do not want to switch between two tex files all the time when I load kpfonts. This is, of course, for testing purposes concerning the layout/look of the document.
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Unloading a package

Post by localghost »

The kpfonts package loads the textcomp package on its own and offers an option »notextcomp«. So this should be what you need. The manual has the details.
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Re: Unloading a package

Post by Montag »

Right, thank you, I hadn't noticed that. Thank you. :)
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
Post Reply