summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/eulerpx/eulerpx.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-02-06 23:37:01 +0000
committerKarl Berry <karl@freefriends.org>2017-02-06 23:37:01 +0000
commitc8298012226892dc8ff271a400afe8539498ae97 (patch)
tree8621fe4c1406f65dfb79de9280a5141107cd2a06 /Master/texmf-dist/tex/latex/eulerpx/eulerpx.sty
parent5f943f0b79b7b63c3feeb74e57d67c6c362ae8c4 (diff)
eulerpx (6feb17)
git-svn-id: svn://tug.org/texlive/trunk@43157 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/eulerpx/eulerpx.sty')
-rw-r--r--Master/texmf-dist/tex/latex/eulerpx/eulerpx.sty21
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