3

I want to use pxfonts package as the main math font in my document.

But I also need fourier package to use \wideOarc command.

Is there any solution to combine those math fonts? Thank a lot :)

\documentclass[11pt,oneside]{article} 
\usepackage[utf8]{vietnam}
\usepackage{fourier}
\usepackage{pxfonts}
\begin{document}
$\wideOarc{AB}$
\end{document}
3

You can make \wideOarc accessible (all needed information is in fourier.sty):

\documentclass[11pt,oneside]{article} 
\usepackage[utf8]{vietnam}
\usepackage{fourier}
\usepackage{pxfonts}

\DeclareSymbolFont{largesymbols}{FMX}{futm}{m}{n}
\DeclareMathAccent{\wideOarc}{\mathord}{largesymbols}{228}

\begin{document}
$\wideOarc{AB}$
\end{document}

enter image description here

A brief description (for details, refer to fntguide.pdf available using texdoc fntguide.pdf in a terminal).

\DeclareMathAccent{<cmd>}{<type>}{<sym-font>}{<slot>}

Defines <cmd> to act as a math accent. The accent character comes from slot <slot> in <sym-font>. The <type> can be either \mathord or \mathalpha; in the latter case the accent character changes font when used in a math alphabet.

\DeclareSymbolFont{<sym-font>}{<encoding>}{<family>}{<series>}{<shape>}

A new symbol font with this name is created. The arguments <encoding>, <family>, <series> and <shape> are used to set, or reset the default values for this symbol font in all math versions. command.

1
  • Thank you so much. That's what i desired :) But I cannot understand those command means :(
    – minmin
    Jul 5 '15 at 2:13

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.