texlive[42196] Master: eulerpx (2oct16)

commits+karl at tug.org commits+karl at tug.org
Tue Oct 4 00:21:57 CEST 2016


Revision: 42196
          http://tug.org/svn/texlive?view=revision&revision=42196
Author:   karl
Date:     2016-10-04 00:21:57 +0200 (Tue, 04 Oct 2016)
Log Message:
-----------
eulerpx (2oct16)

Modified Paths:
--------------
    trunk/Master/tlpkg/bin/tlpkg-ctan-check
    trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/fonts/eulerpx/
    trunk/Master/texmf-dist/doc/fonts/eulerpx/README
    trunk/Master/texmf-dist/tex/latex/eulerpx/
    trunk/Master/texmf-dist/tex/latex/eulerpx/eulerpx.sty
    trunk/Master/tlpkg/tlpsrc/eulerpx.tlpsrc

Added: trunk/Master/texmf-dist/doc/fonts/eulerpx/README
===================================================================
--- trunk/Master/texmf-dist/doc/fonts/eulerpx/README	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/fonts/eulerpx/README	2016-10-03 22:21:57 UTC (rev 42196)
@@ -0,0 +1,82 @@
+================================================================================
+=                                                                              =
+=             Eulerpx: A Modern Interface to the Euler math fonts              =
+=                                                                              =
+================================================================================
+=                                                                              =
+=     Version 0.1                               Jabir Ali Ouassou              =
+=     2016-10-01                      <jabirali at switzerlandmail dot ch>     =
+=                                                                              =
+================================================================================
+
+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.


Property changes on: trunk/Master/texmf-dist/doc/fonts/eulerpx/README
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/eulerpx/eulerpx.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/eulerpx/eulerpx.sty	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/eulerpx/eulerpx.sty	2016-10-03 22:21:57 UTC (rev 42196)
@@ -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


Property changes on: trunk/Master/texmf-dist/tex/latex/eulerpx/eulerpx.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check	2016-10-03 22:20:33 UTC (rev 42195)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check	2016-10-03 22:21:57 UTC (rev 42196)
@@ -236,7 +236,7 @@
     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

Modified: trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2016-10-03 22:20:33 UTC (rev 42195)
+++ trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2016-10-03 22:21:57 UTC (rev 42196)
@@ -346,6 +346,7 @@
 depend etoc
 depend etoolbox
 depend eukdate
+depend eulerpx
 depend europasscv
 depend europecv
 depend everyhook

Added: trunk/Master/tlpkg/tlpsrc/eulerpx.tlpsrc
===================================================================


More information about the tex-live-commits mailing list