From 2c1a714ccc634f16564f814900d3dd8200c815d7 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 3 Oct 2016 22:21:57 +0000 Subject: eulerpx (2oct16) git-svn-id: svn://tug.org/texlive/trunk@42196 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/fonts/eulerpx/README | 82 +++++++++++ Master/texmf-dist/tex/latex/eulerpx/eulerpx.sty | 179 +++++++++++++++++++++++ Master/tlpkg/bin/tlpkg-ctan-check | 2 +- Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc | 1 + Master/tlpkg/tlpsrc/eulerpx.tlpsrc | 0 5 files changed, 263 insertions(+), 1 deletion(-) create mode 100644 Master/texmf-dist/doc/fonts/eulerpx/README create mode 100644 Master/texmf-dist/tex/latex/eulerpx/eulerpx.sty create mode 100644 Master/tlpkg/tlpsrc/eulerpx.tlpsrc diff --git a/Master/texmf-dist/doc/fonts/eulerpx/README b/Master/texmf-dist/doc/fonts/eulerpx/README new file mode 100644 index 00000000000..2b40d66470c --- /dev/null +++ b/Master/texmf-dist/doc/fonts/eulerpx/README @@ -0,0 +1,82 @@ +================================================================================ += = += Eulerpx: A Modern Interface to the Euler math fonts = += = +================================================================================ += = += Version 0.1 Jabir Ali Ouassou = += 2016-10-01 = += = +================================================================================ + +This package provides the `eulerpx' font, which started as a hybrid of multiple +other font packages, notably eulervm and newpxmath. Its purpose is twofold: + (1) To use the eulervm symbols for greek and latin letters, but the newpxmath + font for braces and brackets, and the text font for digits and operators; + (2) To make it easy to change between a sans and serif font for the digits and + operators, so that the font can be used seamlessly in documents using both. +This package was put together with the intent to use it with the Palatino and +Optima fonts (newpxtext and classico), but may work with other combinations too. + +To use the package, add this to your preamble: + + \usepackage{eulerpx} + +You may use the \sfmath and \rmmath macros to switch between serif and sans fonts +for the digits and operators. For instance, if you use a KOMA-Script class, you +can put the following in your preamble to switch all footnotes to a sans font: + + \addtokomafont{footnote}{\sffamily\sfmath} + +Note that in contrast to the eulervm package, bold math characters are accessed +through the \mathbf macro. If the option `utf8' is provided, the package will +also declare the Greek unicode range; i.e., if the package is included with + + \usepackage[utf8]{inputenc} + \usepackage[utf8]{eulerpx} + +then you may write your equations in the form $α+β$ instead of $\alpha+\beta$. + + + +License +------- +Copyright 2016 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) +any later version. The latest version of this license is in + http://www.latex-project.org/lppl.txt +and version 1.3 or later is part of all distributions of LaTeX +version 2005/12/01 or later. + +This work has the LPPL maintenance status `maintained'. + +The Current Maintainer of this work is J. A. Ouassou. + +This work consists of the file eulerpx.sty. + + + +History +------- +2016-10-01: + v0.1: Initial eulerpx package created + + + +Credits +------- +This package is based on the following existing packages: + - The package `newpxmath' is loaded as a base font, to provide parentheses, + brackets, relations, \mathbb, etc. This was done because in the authors' + opinion, the newpx brackets are much more aesthetic than the Euler ones. + - The Euler symbols for latin and greek letters are then loaded. This part + is based directly on the `eulervm' package, but it has been modified to + not use e.g. Euler digits and brackets. For maintainability, the support + for other encodings than T1 has been removed. + - The \sfmath implementation is inspired by the `sansmath' package. I have, + however, modified this such that the macro does not alter the font used + for mathematical symbols, only the font for operators and numerals. This + is useful for people that want to consistently use the Euler symbols in + *all* environments, and only typeset operators and digits in sans/serif. diff --git a/Master/texmf-dist/tex/latex/eulerpx/eulerpx.sty b/Master/texmf-dist/tex/latex/eulerpx/eulerpx.sty new file mode 100644 index 00000000000..c34e81dac2f --- /dev/null +++ b/Master/texmf-dist/tex/latex/eulerpx/eulerpx.sty @@ -0,0 +1,179 @@ +%% eulerpx.sty +%% Copyright 2016 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) +%% any later version. The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is J. A. Ouassou. +%% +%% This work consists of the file eulerpx.sty. +%% + +% Package metadata +\def\fileversion{v0.1} +\def\filedate{2016/10/01} +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{eulerpx}[\filedate\space\fileversion] +\typeout{Package: `eulerpx' \fileversion\space<\filedate>} + +% Make sure we have support for T1 symbols +\RequirePackage[T1]{fontenc} + +% Inherit math symbols from the `newpxmath' package +\RequirePackage[varbb]{newpxmath} + +% Declare the math serif font +\DeclareMathVersion{normal} +\SetSymbolFont{operators}{normal}{T1}{\rmdefault}{m}{n} +\SetMathAlphabet{\mathrm}{normal}{T1}{\rmdefault}{m}{n} + +% Declare the math sans font +\DeclareMathVersion{sans} +\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}} + +% 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 +\DeclareMathSymbol{\Gamma} {\mathalpha}{letters}{"00} +\DeclareMathSymbol{\Delta} {\mathalpha}{letters}{"01} +\DeclareMathSymbol{\Theta} {\mathalpha}{letters}{"02} +\DeclareMathSymbol{\Lambda} {\mathalpha}{letters}{"03} +\DeclareMathSymbol{\Xi} {\mathalpha}{letters}{"04} +\DeclareMathSymbol{\Pi} {\mathalpha}{letters}{"05} +\DeclareMathSymbol{\Sigma} {\mathalpha}{letters}{"06} +\DeclareMathSymbol{\Upsilon} {\mathalpha}{letters}{"07} +\DeclareMathSymbol{\Phi} {\mathalpha}{letters}{"08} +\DeclareMathSymbol{\Psi} {\mathalpha}{letters}{"09} +\DeclareMathSymbol{\Omega} {\mathalpha}{letters}{"0A} + +\DeclareMathSymbol{\upOmega} {\mathord}{letters}{"0A} +\DeclareMathSymbol{\upDelta} {\mathord}{letters}{"01} + +% Lower-case greek letters +\DeclareMathSymbol{\alpha} {\mathalpha}{letters}{"0B} +\DeclareMathSymbol{\beta} {\mathalpha}{letters}{"0C} +\DeclareMathSymbol{\gamma} {\mathalpha}{letters}{"0D} +\DeclareMathSymbol{\delta} {\mathalpha}{letters}{"0E} +\DeclareMathSymbol{\epsilon} {\mathalpha}{letters}{"0F} +\DeclareMathSymbol{\zeta} {\mathalpha}{letters}{"10} +\DeclareMathSymbol{\eta} {\mathalpha}{letters}{"11} +\DeclareMathSymbol{\theta} {\mathalpha}{letters}{"12} +\DeclareMathSymbol{\iota} {\mathalpha}{letters}{"13} +\DeclareMathSymbol{\kappa} {\mathalpha}{letters}{"14} +\DeclareMathSymbol{\lambda} {\mathalpha}{letters}{"15} +\DeclareMathSymbol{\mu} {\mathalpha}{letters}{"16} +\DeclareMathSymbol{\nu} {\mathalpha}{letters}{"17} +\DeclareMathSymbol{\xi} {\mathalpha}{letters}{"18} +\DeclareMathSymbol{\pi} {\mathalpha}{letters}{"19} +\DeclareMathSymbol{\rho} {\mathalpha}{letters}{"1A} +\DeclareMathSymbol{\sigma} {\mathalpha}{letters}{"1B} +\DeclareMathSymbol{\tau} {\mathalpha}{letters}{"1C} +\DeclareMathSymbol{\upsilon} {\mathalpha}{letters}{"1D} +\DeclareMathSymbol{\phi} {\mathalpha}{letters}{"1E} +\DeclareMathSymbol{\chi} {\mathalpha}{letters}{"1F} +\DeclareMathSymbol{\psi} {\mathalpha}{letters}{"20} +\DeclareMathSymbol{\omega} {\mathalpha}{letters}{"21} +\DeclareMathSymbol{\varepsilon} {\mathalpha}{letters}{"22} +\DeclareMathSymbol{\vartheta} {\mathalpha}{letters}{"23} +\DeclareMathSymbol{\varpi} {\mathalpha}{letters}{"24} +\DeclareMathSymbol{\varphi} {\mathalpha}{letters}{"27} + +\let\varsigma=\sigma +\let\varrho=\rho + +% Math accents +\DeclareMathAccent{\acute}{\mathalpha}{operators}{1} +\DeclareMathAccent{\grave}{\mathalpha}{operators}{0} +\DeclareMathAccent{\ddot}{\mathalpha}{operators}{4} +\DeclareMathAccent{\tilde}{\mathalpha}{operators}{3} +\DeclareMathAccent{\bar}{\mathalpha}{operators}{9} +\DeclareMathAccent{\breve}{\mathalpha}{operators}{8} +\DeclareMathAccent{\check}{\mathalpha}{operators}{7} +\DeclareMathAccent{\hat}{\mathalpha}{operators}{2} +\DeclareMathAccent{\dot}{\mathalpha}{operators}{10} + +% Numbers +\DeclareMathSymbol{0}{\mathord}{operators}{`0} +\DeclareMathSymbol{1}{\mathord}{operators}{`1} +\DeclareMathSymbol{2}{\mathord}{operators}{`2} +\DeclareMathSymbol{3}{\mathord}{operators}{`3} +\DeclareMathSymbol{4}{\mathord}{operators}{`4} +\DeclareMathSymbol{5}{\mathord}{operators}{`5} +\DeclareMathSymbol{6}{\mathord}{operators}{`6} +\DeclareMathSymbol{7}{\mathord}{operators}{`7} +\DeclareMathSymbol{8}{\mathord}{operators}{`8} +\DeclareMathSymbol{9}{\mathord}{operators}{`9} + +% Punctuation +\DeclareMathSymbol{!}{\mathclose}{operators}{"21} +\DeclareMathSymbol{,}{\mathpunct}{operators}{`\,} +\DeclareMathSymbol{.}{\mathord}{operators}{`\.} +\DeclareMathSymbol{:}{\mathrel}{operators}{`\:} +\DeclareMathSymbol{;}{\mathpunct}{operators}{`\;} +\DeclareMathSymbol{?}{\mathclose}{operators}{`\?} + +% Miscellaneous +\DeclareMathSymbol{\hbar}{\mathord}{letters}{128} +\DeclareMathSymbol{\infty}{\mathord}{largesymbols}{153} + +% Unicode input +\DeclareOption{utf8}% +{ + \DeclareUnicodeCharacter{0393}{\Gamma} + \DeclareUnicodeCharacter{0394}{\Delta} + \DeclareUnicodeCharacter{0398}{\Theta} + \DeclareUnicodeCharacter{039B}{\Lambda} + \DeclareUnicodeCharacter{039E}{\Xi} + \DeclareUnicodeCharacter{03A0}{\Pi} + \DeclareUnicodeCharacter{03A3}{\Sigma} + \DeclareUnicodeCharacter{03A5}{\Upsilon} + \DeclareUnicodeCharacter{03A6}{\Phi} + \DeclareUnicodeCharacter{03A8}{\Psi} + \DeclareUnicodeCharacter{03A9}{\Omega} + \DeclareUnicodeCharacter{03B1}{\alpha} + \DeclareUnicodeCharacter{03B2}{\beta} + \DeclareUnicodeCharacter{03B3}{\gamma} + \DeclareUnicodeCharacter{03B4}{\delta} + \DeclareUnicodeCharacter{03B5}{\epsilon} + \DeclareUnicodeCharacter{03B6}{\zeta} + \DeclareUnicodeCharacter{03B7}{\eta} + \DeclareUnicodeCharacter{03B8}{\theta} + \DeclareUnicodeCharacter{03B9}{\iota} + \DeclareUnicodeCharacter{03BA}{\kappa} + \DeclareUnicodeCharacter{03BB}{\lambda} + \DeclareUnicodeCharacter{03BC}{\mu} + \DeclareUnicodeCharacter{03BD}{\nu} + \DeclareUnicodeCharacter{03BE}{\xi} + \DeclareUnicodeCharacter{03C0}{\pi} + \DeclareUnicodeCharacter{03C1}{\rho} + \DeclareUnicodeCharacter{03C2}{\sigma} + \DeclareUnicodeCharacter{03C3}{\sigma} + \DeclareUnicodeCharacter{03C4}{\tau} + \DeclareUnicodeCharacter{03C5}{\upsilon} + \DeclareUnicodeCharacter{03C6}{\varphi} + \DeclareUnicodeCharacter{03C7}{\chi} + \DeclareUnicodeCharacter{03C8}{\psi} + \DeclareUnicodeCharacter{03C9}{\omega} +} + +\ProcessOptions\relax diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index fd112a8b151..5f95d42f962 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -236,7 +236,7 @@ my @TLP_working = qw( etaremune etdipa etex-pkg etextools ethiop ethiop-t1 etoc etoolbox etoolbox-de euenc eukdate - euler eulervm euro euro-ce europasscv europecv eurosym + euler eulerpx eulervm euro euro-ce europasscv europecv eurosym everyhook everypage exam exam-n examdesign example examplep exceltex excludeonly exercise exercises exp-testopt diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc index 08a38722dc7..92a3eeb2c70 100644 --- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc @@ -346,6 +346,7 @@ depend etextools depend etoc depend etoolbox depend eukdate +depend eulerpx depend europasscv depend europecv depend everyhook diff --git a/Master/tlpkg/tlpsrc/eulerpx.tlpsrc b/Master/tlpkg/tlpsrc/eulerpx.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d -- cgit v1.2.3