diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/bitter/bitter.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/bitter/bitter.sty | 40 |
1 files changed, 9 insertions, 31 deletions
diff --git a/Master/texmf-dist/tex/latex/bitter/bitter.sty b/Master/texmf-dist/tex/latex/bitter/bitter.sty index 1362c92640d..b792ae6d1e6 100644 --- a/Master/texmf-dist/tex/latex/bitter/bitter.sty +++ b/Master/texmf-dist/tex/latex/bitter/bitter.sty @@ -1,35 +1,26 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{bitter} - [2019/05/10 (R.D. Tennent) Supports Bitter fonts for all LaTeX engines.] + [200/07/25 (R.D. Tennent) Supports Bitter fonts for xeLaTeX and luaLaTeX.] -\RequirePackage{ifxetex,ifluatex,textcomp} +\RequirePackage{iftex} + +\ifpdftex +\PackageError{bitter}{% + *****************************************\MessageBreak + Please process using XeLaTeX or luaLaTeX\MessageBreak + *****************************************} +\fi -\newif\ifBitter@ttf -\ifxetex - \Bitter@ttftrue -\else\ifluatex - \Bitter@ttftrue -\else % [pdf]LaTeX - \Bitter@ttffalse -\fi\fi \newcommand*{\Bitter@scale}{1} \RequirePackage{xkeyval} \DeclareOptionX{scaled}{\renewcommand*{\Bitter@scale}{#1}} \DeclareOptionX{scale}{\renewcommand*{\Bitter@scale}{#1}} -\DeclareOptionX{type1}{\Bitter@ttffalse} - \ProcessOptionsX\relax -\ifBitter@ttf \RequirePackage{fontspec} -\else - \RequirePackage{fontenc,fontaxes,mweights} -\fi -\ifBitter@ttf - \def\Bitter@regular{Regular} \ifxetex\XeTeXtracingfonts=1\fi \defaultfontfeatures{ Ligatures = TeX , @@ -52,21 +43,8 @@ ] {Bitter} -\else % type1 - - \def\bfseries@rm{b} - \def\mdseries@rm{m} - \def\seriesdefault{\mdseries@rm} - \def\bitterfamily{Bitter-TLF} - \def\bitter{\fontfamily{\bitterfamily}\selectfont} - \def\rmdefault{\bitterfamily} - -\fi - % turn off defaults in case other fonts are selected: -\ifBitter@ttf \defaultfontfeatures{} -\fi \endinput |