diff options
author | Karl Berry <karl@freefriends.org> | 2020-02-18 22:34:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-02-18 22:34:07 +0000 |
commit | fd0ceb7d57fe13e5992b70558beb896e490c06f2 (patch) | |
tree | c3809f1b3b9b5d095f95b04f9e56e5c491beb857 /Master/texmf-dist/tex/latex/etbb/ETbb.sty | |
parent | 089838a67daed54e57440912a52551d248bbf4f1 (diff) |
etbb (18feb20)
git-svn-id: svn://tug.org/texlive/trunk@53836 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/etbb/ETbb.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/etbb/ETbb.sty | 141 |
1 files changed, 141 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/etbb/ETbb.sty b/Master/texmf-dist/tex/latex/etbb/ETbb.sty new file mode 100644 index 00000000000..0c85885eaaf --- /dev/null +++ b/Master/texmf-dist/tex/latex/etbb/ETbb.sty @@ -0,0 +1,141 @@ +%% +\NeedsTeXFormat{LaTeX2e} +\def\fileversion{1.00} +\def\filedate{2020/02/14} +\ProvidesPackage{etbb} + [\filedate\space v\fileversion. Style file for etbb.] + +\RequirePackage[T1,LY1]{fontenc} +\RequirePackage[full]{textcomp} +\RequirePackage{ifetex} +\ifetex\RequirePackage{etoolbox}\fi %etoolbox loads etex.sty +\IfFileExists{mweights.sty}{\RequirePackage{mweights}}{} +\IfFileExists{fontaxes.sty}{ + \RequirePackage{fontaxes} + \fa@naming@exception{figures}{{superior}{proportional}}{Sup} + \fa@naming@exception{figures}{{superior}{tabular}}{Sup} + \def\sufigures{\@nomath\sufigures + \fontfigurestyle{superior}\selectfont} + \DeclareTextFontCommand{\textsu}{\sufigures} + \let\textsuperior\textsu + + \fa@naming@exception{figures}{{inferior}{proportional}}{Inf} + \fa@naming@exception{figures}{{inferior}{tabular}}{Inf} + \def\infigures{\@nomath\infigures + \fontfigurestyle{inferior}\selectfont} + \DeclareTextFontCommand{\textin}{\infigures} + \let\textinferior\textin + \providecommand*{\textfrac}[3][\ETbb@raisefrac]{% + \raise ##1 \hbox{\textsu{##2}\kern \ETbb@foresolidus \textfractionsolidus\kern \ETbb@aftsolidus \textin{##3}}} + +}{} + +\IfFileExists{xkeyval.sty}{ + \newcommand*{\ETbb@scale}{1} + \RequirePackage{xkeyval} + \DeclareOptionX{scale}{\renewcommand*{\ETbb@scale}{##1}} + \DeclareOptionX{scaled}{\renewcommand*{\ETbb@scale}{##1}} +}{ + \let\DeclareOptionX\DeclareOption + \let\ExecuteOptionsX\ExecuteOptions + \let\ProcessOptionsX\ProcessOptions +} +\let\orig@footnote=\thefootnote +\let\orig@makefnmark=\@makefnmark +%\def\bfseries@rm{b} +%\def\mdseries@rm{m} +\def\useosf{\edef\ETbb@figurestyle{OsF}} +\@onlypreamble\useosf +\def\useproportional{\edef\ETbb@figurealign{}} +\@onlypreamble\useproportional +\newif\if@ETbb@sharpS +\newif\if@ETbb@sups +\newif\if@ETbb@scosf +\def\ETbb@foresolidus{-.03em} +\def\ETbb@aftsolidus{.02em} +\def\ETbb@raisefrac{.111em} +\DeclareOptionX{foresolidus}{\gdef\ETbb@foresolidus{#1}} +\DeclareOptionX{aftsolidus}{\gdef\ETbb@aftsolidus{#1}} +\DeclareOptionX{raisefrac}{\gdef\ETbb@raisefrac{#1}} + +\DeclareOptionX{altP}{} +\DeclareOptionX{lining}{\edef\ETbb@figurestyle{LF}} +\DeclareOptionX{oldstyle}{\useosf} +\DeclareOptionX{tabular}{\edef\ETbb@figurealign{T}} +\DeclareOptionX{t}{\edef\ETbb@figurealign{T}} +\DeclareOptionX{proportional}{\useproportional} +\DeclareOptionX{p}{\useproportional} +\DeclareOptionX{sharpS}{\@ETbb@sharpStrue} +\DeclareOptionX{mainfont}{ + \renewcommand{\familydefault}{\rmdefault} +} +\DeclareOptionX{bold}{\edef\bfseries@rm{bold}} +\DeclareOptionX{regular}{\edef\mdseries@rm{regular}} +\DeclareOptionX{sups}{\@ETbb@supstrue} +\DeclareOptionX{scosf}{\@ETbb@scosftrue} +\ExecuteOptionsX{lining,tabular,bold,regular,mainfont} +\ProcessOptionsX\relax + +\DeclareTextCommand{\textcircled}{TS1}[1]{\hmode@bgroup + \ooalign{% + \hfil \raise .44ex\hbox {\fontencoding{T1}\fontseries{m}\fontshape{sc}\fontsize{7.5}{9}\selectfont \lowercase{#1}}\hfil \crcr + \hfil{\fontencoding{TS1}\fontseries{m}\char79\relax}\hfil% bigcircle + }% + \egroup} + +\renewcommand*{\rmdefault}{ETbb-TLF} + +\DeclareRobustCommand{\lfstyle}{% + \not@math@alphabet\lfstyle\relax + \fontfamily{ETbb-LF}\selectfont % +}% to get lf +\DeclareRobustCommand{\tlfstyle}{% + \not@math@alphabet\tlfstyle\relax + \fontfamily{ETbb-TLF}\selectfont % +}% to get tlf +\DeclareRobustCommand{\osfstyle}{% + \not@math@alphabet\osfstyle\relax + \fontfamily{ETbb-OsF}\selectfont % +}% to get osf +\DeclareRobustCommand{\tosfstyle}{% + \not@math@alphabet\tosfstyle\relax + \fontfamily{ETbb-TOsF}\selectfont % +}% to get tosf +\DeclareRobustCommand{\textlf}[1]{% + {\lfstyle #1}% +}% to get lf +\DeclareRobustCommand{\texttlf}[1]{% + {\tlfstyle #1}% +}% to get tlf +\DeclareRobustCommand{\textosf}[1]{% + {\osfstyle #1}% +}% to get osf +\DeclareRobustCommand{\texttosf}[1]{% + {\tosfstyle #1}% +}% to get tosf +\if@ETbb@scosf % +\DeclareRobustCommand{\textsc}[1]{% +{\fontfamily{ETbb-\ETbb@figurealign OsF}\fontshape{sc}\selectfont #1}% +}\fi + +%\renewcommand*{\familydefault}{\rmdefault} +\if@ETbb@sups % + \ifdefined\sufigures + \def\f@@tn@te{footnote} + \def\@makefnmark{% + \ifx\@mpfn\f@@tn@te% + \ifx\thefootnote\orig@footnote% + \hbox{\sufigures\hspace*{.04em}\@thefnmark\hspace*{.04em}}% + \else% + \orig@makefnmark% + \fi + \else% + \orig@makefnmark% + \fi}% + \fi% +\fi + +\AtEndPreamble{\renewcommand*{\rmdefault}{ETbb-\ETbb@figurealign\ETbb@figurestyle} +\normalfont} + +\endinput |