Math & ScienceHow can I partially use symbol of some package?

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
zhfe97
Posts: 2
Joined: Fri Sep 17, 2010 4:41 pm

How can I partially use symbol of some package?

Post by zhfe97 »

I want to insert an arrow symbol like MnSymbol_searrow.jpg. But the amssymb package only provides the arrow like Amssymbol_searrow.jpg. I found the symbol \Searrow in the package MnSymbol is exactly what I am looking for.

However, when I use both package \usepackage{amssymb} and \usepackage{MnSymbol}, all other AMS symbols will be replaced by the ones defined in MnSymbol.

My question is: can I partially use the symbol \Searrow from the package MnSymbol, while keeping other symbols defined in amssymb?
Attachments
Amssymbol_searrow.jpg
Amssymbol_searrow.jpg (4.09 KiB) Viewed 3739 times
MnSymbol_searrow.jpg
MnSymbol_searrow.jpg (4.07 KiB) Viewed 3739 times

Recommended reading 2024:

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

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

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

How can I partially use symbol of some package?

Post by frabjous »

Not only does MnSymbol define \Searrow, but so do some other packages like txfonts, pxfonts, and kpfonts. Unfortunately, they'll give rise to similar issues.

You could do some tricks like loading one of these first, and then load lmodern to switch everything not specially defined by these fonts back to something like Computer Modern (strictly speaking, Latin Modern, but close):

Code: Select all

\usepackage{kpfonts}
\usepackage{lmodern}
\usepackage{amssymb}
But I think there's a better approach, which would be to define your own \Searrow by rotating the usual \Rightarrow command; that way, the style of the arrow will match the other arrows in the font. (You'll notice just in your sample images above that the arrowheads are dissimilar.)

Code: Select all

\newcommand{\Searrow}{\rotatebox[origin=c]{-45}{$\Rightarrow$}}
And then you don't need to load any additional packages. (Well, you do need the graphicx package for \rotatebox, but there's a good chance you're loading that anyway.)
zhfe97
Posts: 2
Joined: Fri Sep 17, 2010 4:41 pm

Re: How can I partially use symbol of some package?

Post by zhfe97 »

Thank you very much. It is really helpful.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

How can I partially use symbol of some package?

Post by localghost »

If the problem is solved with that, please be so kind and mark the topic accordingly as clearly written in Section 3 of the Board Rules (to be read before posting). Otherwise tell us what is missing.


Best regards and welcome to the board
Thorsten
Post Reply