diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/eulerpx/eulerpx.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/eulerpx/eulerpx.sty | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/eulerpx/eulerpx.sty b/Master/texmf-dist/tex/latex/eulerpx/eulerpx.sty index c34e81dac2f..bda6ba0af0f 100644 --- a/Master/texmf-dist/tex/latex/eulerpx/eulerpx.sty +++ b/Master/texmf-dist/tex/latex/eulerpx/eulerpx.sty @@ -1,5 +1,5 @@ %% eulerpx.sty -%% Copyright 2016 J. A. Ouassou +%% Copyright 2017 J. A. Ouassou %% %% This work may be distributed and/or modified under the conditions of the LaTeX %% Project Public License, either version 1.3 of this license or (at your option) @@ -16,8 +16,8 @@ %% % Package metadata -\def\fileversion{v0.1} -\def\filedate{2016/10/01} +\def\fileversion{v0.2} +\def\filedate{2017/02/03} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{eulerpx}[\filedate\space\fileversion] \typeout{Package: `eulerpx' \fileversion\space<\filedate>} @@ -26,7 +26,7 @@ \RequirePackage[T1]{fontenc} % Inherit math symbols from the `newpxmath' package -\RequirePackage[varbb]{newpxmath} +\RequirePackage[varbb,upint]{newpxmath} % Declare the math serif font \DeclareMathVersion{normal} @@ -38,19 +38,18 @@ \SetSymbolFont{operators}{sans}{T1}{\sfdefault}{m}{n} \SetMathAlphabet{\mathrm}{sans}{T1}{\sfdefault}{m}{n} -% Define a macro for toggling between serif and sans -\newcommand{\sfmath}{\mathversion{sans}} -\newcommand{\rmmath}{\mathversion{normal}} +% Make the package toggle between sans/serif math automatically +\let\oldrmfamily=\rmfamily +\let\oldsffamily=\sffamily +\renewcommand{\rmfamily}{\oldrmfamily\mathversion{normal}} +\renewcommand{\sffamily}{\oldsffamily\mathversion{sans}} -% Get rid of the existing \mathbf font +%% Get rid of the existing \mathbf font \let\mathbf=\relax % Declare Euler math alphabets \DeclareSymbolFont{letters} {U}{zeur}{m}{n} \SetSymbolFont{letters}{bold} {U}{zeur}{b}{n} -\DeclareSymbolFont{symbols} {U}{zeus}{m}{n} -\SetSymbolFont{symbols}{bold} {U}{zeus}{b}{n} -\DeclareSymbolFont{largesymbols} {U}{zeuex}{m}{n} \DeclareMathAlphabet{\mathbf} {U}{zeur}{b}{n} % Upper-case greek letters |