summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hep-font
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-11-27 21:20:04 +0000
committerKarl Berry <karl@freefriends.org>2021-11-27 21:20:04 +0000
commit11a511f065bb81a561509864f9e01a9efaff6b53 (patch)
treef264ab8c33982dbb88c5dac9a7f056b790e72a5d /Master/texmf-dist/tex/latex/hep-font
parentd2aecdcc86e22890e562b82f82e17d548291b08e (diff)
hep-font (27nov21)
git-svn-id: svn://tug.org/texlive/trunk@61164 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hep-font')
-rw-r--r--Master/texmf-dist/tex/latex/hep-font/hep-font.sty124
1 files changed, 124 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/hep-font/hep-font.sty b/Master/texmf-dist/tex/latex/hep-font/hep-font.sty
new file mode 100644
index 00000000000..3cd4fb3e68c
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/hep-font/hep-font.sty
@@ -0,0 +1,124 @@
+%%
+%% This is file `hep-font.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% hep-font-implementation.dtx (with options: `package')
+%% This is a generated file.
+%% Copyright (C) 2019-2020 by Jan Hajer
+%% This file may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3c 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.3c or later is part of all distributions of
+%% LaTeX version 2005/12/01 or later.
+\NeedsTeXFormat{LaTeX2e}[2005/12/01]
+\ProvidesPackage{hep-font}[2021/09/01 v1.0 hep-font]
+
+\RequirePackage{kvoptions}
+\SetupKeyvalOptions{
+ family=hepfont,
+ prefix=hepfont@
+}
+\DeclareBoolOption[true]{lining}
+\DeclareComplementaryOption{oldstyle}{lining}
+\ProcessKeyvalOptions*
+\RequirePackage{ifluatex}
+\RequirePackage{ifxetex}
+\newif\ifxetexorluatex
+\ifxetex\xetexorluatextrue
+\else\ifluatex\xetexorluatextrue
+ \else\xetexorluatexfalse\fi
+\fi
+\def\hep@encoding{T\ifxetexorluatex U\else 1\fi}
+\RequirePackage[\hep@encoding]{fontenc}
+\RequirePackage{fix-cm}
+\RequirePackage{microtype}
+\ifxetexorluatex
+ \RequirePackage{nfssext-cfr}
+ \RequirePackage{lmodern}
+\else
+ \ifhepfont@lining
+ \RequirePackage[rm={lining},sf={lining},tt={lining}]{cfr-lm}
+ \else
+ \RequirePackage{cfr-lm}
+ \fi
+\fi
+\RequirePackage{textcomp}
+\newcommand{\hep@sf@fontshape}[3]{%
+ \DeclareFontShape{\hep@encoding}{\sfdefault}{#1}{#2}{#3}{}%
+}
+\newcommand{\hep@rm@fontshape}[3]{%
+ \DeclareFontShape{\hep@encoding}{\rmdefault}{#1}{#2}{#3}{}%
+}
+\ifxetexorluatex
+ \RequirePackage{fontspec}
+ \setmainfont{Latin Modern Roman}[
+ UprightFeatures={SmallCapsFont={[lmromancaps10-regular.otf]}},
+ BoldFeatures={
+ SmallCapsFeatures={Letters=SmallCaps},
+ SmallCapsFont={[cmunbx.otf]}
+ }
+ ]
+ \hep@sf@fontshape{bx}{sc}{<->cmssbxcsc10}{}
+ \hep@sf@fontshape{b}{sc}{<->cmssbxcsc10}{}
+ \hep@sf@fontshape{m}{scit}{<->cmsscsci10}{}
+ \hep@sf@fontshape{m}{sc}{%
+ <-9>cmsscsc8<9-10>cmsscsc9<10->cmsscsc10%
+ }{}
+\else
+ \rmfamily
+ \ifhepfont@lining
+ \RequirePackage{slantsc}
+ \hep@rm@fontshape{b}{sc}{<->ssub*cmr/bx/sc}{}
+ \hep@rm@fontshape{bx}{sc}{<->ssub*cmr/bx/sc}{}
+ \hep@rm@fontshape{b}{scsl}{<->ssub*cmr/bx/scsl}{}
+ \hep@rm@fontshape{bx}{scsl}{<->ssub*cmr/bx/scit}{}
+ \hep@rm@fontshape{b}{scit}{<->ssub*cmr/bx/scsl}{}
+ \hep@rm@fontshape{bx}{scit}{<->ssub*cmr/bx/scit}{}
+ \else
+ \DeclareFontFamily{\hep@encoding}{hfor}{}
+ \DeclareFontShape{\hep@encoding}{hfor}{bx}{sc}{
+ <-6>hfoxc0500<6-7>hfoxc0600<7-8>hfoxc0700<8-9>hfoxc0800
+ <9-10>hfoxc0900<10-12>hfoxc1000<12-17>hfoxc1200<17->hfoxc1728
+ }{}
+ \DeclareFontShape{\hep@encoding}{hfor}{bx}{scsl}{
+ <-6>hfooc0500<6-7>hfooc0600<7-8>hfooc0700<8-9>hfooc0800
+ <9-10>hfooc0900<10-12>hfooc1000<12-17>hfooc1200<17->hfooc1728
+ }{}
+ \hep@rm@fontshape{b}{sc}{<->ssub*hfor/bx/sc}{}
+ \hep@rm@fontshape{bx}{sc}{<->ssub*hfor/bx/sc}{}
+ \hep@rm@fontshape{bx}{scsl}{<->ssub*hfor/bx/scsl}{}
+ \hep@rm@fontshape{b}{scit}{<->ssub*hfor/bx/scsl}{}
+ \hep@rm@fontshape{bx}{scit}{<->ssub*hfor/bx/scsl}{}
+ \hep@rm@fontshape{b}{scsl}{<->ssub*hfor/bx/scsl}{}
+ \fi
+ \sffamily
+ \hep@sf@fontshape{m}{sc}{<->ssub*xcmss/m/sc}{}
+ \hep@sf@fontshape{b}{sc}{<->ssub*xcmss/bx/sc}{}
+ \hep@sf@fontshape{bx}{sc}{<->ssub*xcmss/bx/sc}{}
+ \hep@sf@fontshape{m}{scit}{<->ssub*xcmss/m/scit}{}
+ \hep@sf@fontshape{b}{scit}{<->ssub*xcmss/bx/scit}{}
+ \hep@sf@fontshape{bx}{scit}{<->ssub*xcmss/bx/scit}{}
+ \hep@sf@fontshape{m}{scsl}{<->ssub*xcmss/m/scit}{}
+ \hep@sf@fontshape{b}{scsl}{<->ssub*xcmss/bx/scit}{}
+ \hep@sf@fontshape{bx}{scsl}{<->ssub*xcmss/bx/scit}{}
+ \hep@sf@fontshape{m}{ui}{<->cmssu10}{}
+\fi
+\ifxetexorluatex\else\RequirePackage[utf8]{inputenc}\fi
+\ifhepfont@lining\else
+ \RequirePackage{units}
+ \RequirePackage{xpatch}
+ \xpatchcmd{\unit}{\else#1}{%
+ \else\ifthenelse{\boolean{mmode}}{#1}{\textl{#1}}%
+ }{}{}
+ \xpatchcmd{\unitfrac}{\else#1}{%
+ \else\ifthenelse{\boolean{mmode}}{#1}{\textl{#1}}%
+ }{}{}
+\fi
+
+\endinput
+%%
+%% End of file `hep-font.sty'.