%% Jacek Mierczy\'nski, Staszek Wawrykiewicz, ver. 0.95 (03.02.2007) 
%% Public domain.
%% -----
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{qpxmath}
%%
\DeclareOption{altg}{\AtEndOfPackage{%
\DeclareFontShape{OML}{qpxmi}{m}{it}  {<-> qpxmia}{}
\DeclareFontShape{OML}{qpxmi}{b}{it}  {<-> qpxbmia}{}
%
\DeclareFontFamily{OML}{qpl}{\skewchar\font127 }
\DeclareFontShape{OML}{qpl}{m}{it}  {<->ssub* qpxmi/m/it}{}
\DeclareFontShape{OML}{qpl}{bx}{it}  {<->ssub* qpxmi/b/it}{}
}
}
\ProcessOptions\relax
%
\DeclareSymbolFont{operators}   {OT1}{qpl} {m}{n}
\DeclareSymbolFont{letters}     {OML}{qpxmi} {m}{it}
\DeclareSymbolFont{symbols}     {OMS}{pxsy} {m}{n}
\DeclareSymbolFont{largesymbols}     {OMX}{pxex} {m}{n}
\SetSymbolFont{operators}{bold}{OT1}{qpl} {b}{n}
\SetSymbolFont{letters}  {bold}{OML}{qpxmi} {b}{it}
\SetSymbolFont{symbols}  {bold}{OMS}{pxsy}{b}{n}
\SetSymbolFont{largesymbols}  {bold}{OMX}{pxex}{b}{n}
%%
\DeclareMathAlphabet      {\mathbf}{\encodingdefault}{qpl}{b}{n}
\DeclareMathAlphabet      {\mathit}{\encodingdefault}{qpl}{m}{it}
\SetMathAlphabet\mathit{bold}{\encodingdefault}{qpl}{b}{it}
%%
\DeclareMathSymbol{\varGamma}{\mathalpha}{letters}{0}
\DeclareMathSymbol{\varDelta}{\mathalpha}{letters}{1}
\DeclareMathSymbol{\varTheta}{\mathalpha}{letters}{2}
\DeclareMathSymbol{\varLambda}{\mathalpha}{letters}{3}
\DeclareMathSymbol{\varXi}{\mathalpha}{letters}{4}
\DeclareMathSymbol{\varPi}{\mathalpha}{letters}{5}
\DeclareMathSymbol{\varSigma}{\mathalpha}{letters}{6}
\DeclareMathSymbol{\varUpsilon}{\mathalpha}{letters}{7}
\DeclareMathSymbol{\varPhi}{\mathalpha}{letters}{8}
\DeclareMathSymbol{\varPsi}{\mathalpha}{letters}{9}
\DeclareMathSymbol{\varOmega}{\mathalpha}{letters}{10}
%%
\DeclareMathSymbol{\Gamma}{\mathalpha}{letters}{128}
\DeclareMathSymbol{\Delta}{\mathalpha}{letters}{129}
\DeclareMathSymbol{\Theta}{\mathalpha}{letters}{130}
\DeclareMathSymbol{\Lambda}{\mathalpha}{letters}{131}
\DeclareMathSymbol{\Xi}{\mathalpha}{letters}{132}
\DeclareMathSymbol{\Pi}{\mathalpha}{letters}{133}
\DeclareMathSymbol{\Sigma}{\mathalpha}{letters}{134}
\DeclareMathSymbol{\Upsilon}{\mathalpha}{letters}{135}
\DeclareMathSymbol{\Phi}{\mathalpha}{letters}{136}
\DeclareMathSymbol{\Psi}{\mathalpha}{letters}{137}
\DeclareMathSymbol{\Omega}{\mathalpha}{letters}{138}
%%
\DeclareMathSymbol{+}{\mathbin}{letters}{139}
\DeclareMathSymbol{=}{\mathrel}{letters}{140}
\DeclareMathDelimiter{/}{\mathord}{letters}{141}{largesymbols}{"0E}
%%
\DeclareMathSymbol{\xleq}{\mathrel}{letters}{142}
\DeclareMathSymbol{\xgeq}{\mathrel}{letters}{143}
\@ifpackageloaded{polski}{%
    \let\leq=\xleq
    \let\geq=\xgeq
    \let\le=\leq
    \let\ge=\geq}{}
%%
\DeclareMathSymbol{\varg}{\mathord}{letters}{144}
%%
\DeclareFontFamily{OML}{qpxmi}{\skewchar\font127 }
\DeclareFontShape{OML}{qpxmi}{m}{it}  {<-> qpxmi}{}
\DeclareFontShape{OML}{qpxmi}{b}{it}  {<-> qpxbmi}{}
%
\DeclareFontFamily{OML}{qpl}{\skewchar\font127 }
\DeclareFontShape{OML}{qpl}{m}{it}  {<->ssub* qpxmi/m/it}{}
\DeclareFontShape{OML}{qpl}{bx}{it}  {<->ssub* qpxmi/b/it}{}
%%
\endinput
