Fonts Packages – How to Use a Package Locally

fontspackages

Is there a way to use a package locally?

Here is the case…

I NEED to use \phiup on my document, however it needs the using of package pxfonts or txfonts. However, when I use either of those packages, it will make the whole documents uglier, u may try writing \Vdash on your document with and without those packages, and see the difference.

That's the point of my question. Can I use the package locally, or in this case, I want that pxfonts (or txfonts) package will be used only when I write \phiup, otherwise I just want to use the normal font.

Best Answer

What about borrowing the definition of the symbol from txfonts.sty?

\documentclass[12pt]{article}
%
\DeclareSymbolFont{lettersA}{U}{txmia}{m}{it}
\DeclareMathSymbol{\phiup}{\mathord}{lettersA}{30}
%
\begin{document}
\begin{equation}
\phi\quad\phiup
\end{equation}
\end{document}