1

I saw this question: Importing a Single Symbol From a Different Font and I try to figure out how I do it for fdsymbol to the symbols: \neswarrow, \leftrightarrow, \nwsearrow, \updownarrow

I can't load the fdsymbol package because it's destroy some of the amsmath symbols :-(...

Can you help me please?

Thank you!

7
  • Probabily this question can help you to understand that fdsymbol burn any symbol of amsmath: tex.stackexchange.com/questions/406760/… – Sebastiano Jul 13 '19 at 16:55
  • The answer you need is in the question you cite. The file you need to look at for the commands you need is fdsymbol.sty. The sub-font containing the symbols you want is arrows, You will need to copy the lines that are equivalent to the ones shown in the cited question, but for the arrows sub-font and the particular symbols. – barbara beeton Jul 13 '19 at 17:26
  • @barbarabeeton - where? ctan.org/tex-archive/fonts/fdsymbol?lang=en can you help to find it here please? – heblyx Jul 13 '19 at 17:48
  • If you are working on a system based on TeX Live, you should already have the file; check by typing texdoc fdsymbol at a command prompt. If it's not there, you should be able to add it using the method for your installation; see the links here for a method appropriate for your system: Installing, updating, restoring, other system operations – barbara beeton Jul 13 '19 at 17:58
  • 1
    @Sebastiano - so how can I solve it? How can I upload only one symbol?? – heblyx Jul 13 '19 at 18:20
4

In fdsymbol.sty there are no slot numbers and one has to count manually.

One finds

\fdsy@setslot{0}
\fdsy@DeclareSymbol{\rightarrow}{arrows}{\mathrel}

which means \rightarrow is at slot 0 of the arrows symbol font. Looking for your desired symbol and counting yields that

  • \leftrightarrow is at slot 16
  • \updownarrow is at slot 17
  • \neswarrow is at slot 18
  • \nwsearrow is at slot 19

We also find

\DeclareSymbolFont{arrows}{U}{FdSymbolC}{m}{n}

Thus we need also to copy the font definitions for this font and undefine \updownarrow.

You may want to change the scaling value.

\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}

\makeatletter
\def\fdsy@scale{1}
\newcommand\fdsy@mweight@normal{Book}
\newcommand\fdsy@mweight@small{Book}
\newcommand\fdsy@bweight@normal{Medium}
\newcommand\fdsy@bweight@small{Medium}
\DeclareFontFamily{U}{FdSymbolC}{}
\DeclareFontShape{U}{FdSymbolC}{m}{n}{
    <-7.1> s * [\fdsy@scale] FdSymbolC-\fdsy@mweight@small
    <7.1-> s * [\fdsy@scale] FdSymbolC-\fdsy@mweight@normal
}{}
\DeclareFontShape{U}{FdSymbolC}{b}{n}{
    <-7.1> s * [\fdsy@scale] FdSymbolC-\fdsy@bweight@small
    <7.1-> s * [\fdsy@scale] FdSymbolC-\fdsy@bweight@normal
}{}
\makeatother

\DeclareSymbolFont{fdarrows}{U}{FdSymbolC}{m}{n}
\SetSymbolFont{fdarrows}{bold}{U}{FdSymbolC}{m}{n}

\DeclareMathSymbol{\leftrightarrow}{\mathrel}{fdarrows}{16}
\let\updownarrow\relax
\DeclareMathSymbol{\updownarrow}{\mathrel}{fdarrows}{17}
\DeclareMathSymbol{\neswarrow}{\mathrel}{fdarrows}{18}
\DeclareMathSymbol{\nwsearrow}{\mathrel}{fdarrows}{19}

\begin{document}

$\leftrightarrow\updownarrow\neswarrow\nwsearrow$

\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.