3

I need to use two arrows, one from MnSymbol and one from amssymb (\rightsquigarrow); unfortunately, MnSymbol redefines this command to produce its own version (which I don't want). Is there a way to redefine back the AMS arrow?

Placing the MnSymbol package to load before the AMS one does not work and the answer to this question (how to use MnSymbol along with other packages) says the two packages are incompatible. I can't find the MnSymbol arrow anywhere else (\leftpitchfork).

6

1 Answer 1

7

You can "extract" only that symbol from MnSymbol and use it in your document.

This is the code to extract \leftpitchfork:

\DeclareFontFamily{U} {MnSymbolA}{}

\DeclareFontShape{U}{MnSymbolA}{m}{n}{
  <-6> MnSymbolA5
  <6-7> MnSymbolA6
  <7-8> MnSymbolA7
  <8-9> MnSymbolA8
  <9-10> MnSymbolA9
  <10-12> MnSymbolA10
  <12-> MnSymbolA12}{}
\DeclareFontShape{U}{MnSymbolA}{b}{n}{
  <-6> MnSymbolA-Bold5
  <6-7> MnSymbolA-Bold6
  <7-8> MnSymbolA-Bold7
  <8-9> MnSymbolA-Bold8
  <9-10> MnSymbolA-Bold9
  <10-12> MnSymbolA-Bold10
  <12-> MnSymbolA-Bold12}{}

\DeclareSymbolFont{MnSyA} {U} {MnSymbolA}{m}{n}

\DeclareMathSymbol{\leftpitchfork}{\mathrel}{MnSyA}{138}

And this is a MWE on how to use it:

\documentclass{article}
\usepackage{amssymb}

\DeclareFontFamily{U} {MnSymbolA}{}

\DeclareFontShape{U}{MnSymbolA}{m}{n}{
  <-6> MnSymbolA5
  <6-7> MnSymbolA6
  <7-8> MnSymbolA7
  <8-9> MnSymbolA8
  <9-10> MnSymbolA9
  <10-12> MnSymbolA10
  <12-> MnSymbolA12}{}
\DeclareFontShape{U}{MnSymbolA}{b}{n}{
  <-6> MnSymbolA-Bold5
  <6-7> MnSymbolA-Bold6
  <7-8> MnSymbolA-Bold7
  <8-9> MnSymbolA-Bold8
  <9-10> MnSymbolA-Bold9
  <10-12> MnSymbolA-Bold10
  <12-> MnSymbolA-Bold12}{}

\DeclareSymbolFont{MnSyA} {U} {MnSymbolA}{m}{n}

\DeclareMathSymbol{\leftpitchfork}{\mathrel}{MnSyA}{138}

\begin{document}
\[
A \rightsquigarrow B \qquad A \leftpitchfork B
\]
\end{document} 

Output:

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .