From c8298012226892dc8ff271a400afe8539498ae97 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Mon, 6 Feb 2017 23:37:01 +0000
Subject: eulerpx (6feb17)

git-svn-id: svn://tug.org/texlive/trunk@43157 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/eulerpx/eulerpx.sty | 21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/eulerpx/eulerpx.sty')

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
-- 
cgit v1.2.3

