4

I am wondering how to import the \vec font from fouriernc (which is much better designed than that in other fonts families, but I don't like other designs in fouriernc) without affecting the font family (I am using mathpple).

I guess something like Import a symbol from the Fourier font family might work, but I have not idea how to find the index of the symbol (130 in that case of \partialup).

1 Answer 1

4

I assume this is what you are looking for:

\DeclareFontEncoding{FML}{}{}%
\DeclareFontSubstitution{FML}{fncmi}{m}{it}%
\DeclareSymbolFont{fouriernc}{FML}{fncmi}{m}{it}%
\DeclareMathAccent{\fvec}{0}{fouriernc}{"7E}

Test:

\documentclass{standalone}
\usepackage{mathpple}
\DeclareFontEncoding{FML}{}{}%
\DeclareFontSubstitution{FML}{fncmi}{m}{it}%
\DeclareSymbolFont{fouriernc}{FML}{fncmi}{m}{it}%
\DeclareMathAccent{\fvec}{0}{fouriernc}{"7E}

\begin{document}
$\fvec{\alpha}\vec{\alpha}$
\end{document}

Result:

enter image description here

A brief explanation:

Type \meaning\vec, one will get macro:−>\mathaccent"017E\relax. This means the arrow of \vec is defined by symbol of class 0 (Ordinary), family 1, and position 7E (126 in Base 10). Alternatively, one can look up vector in fourier-ml.afm.

You must log in to answer this question.

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