summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/baskervillef/baskervillef.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-11-18 23:19:50 +0000
committerKarl Berry <karl@freefriends.org>2016-11-18 23:19:50 +0000
commitd7711554f1e7c2b8a7dfb9324494e705539c48b2 (patch)
treebce5f765e50db9e8672785b6087d6494643552e5 /Master/texmf-dist/tex/latex/baskervillef/baskervillef.sty
parent9288aeee16feddc5f88047725178f2ab2068aa55 (diff)
baskervillef (18nov16)
git-svn-id: svn://tug.org/texlive/trunk@42529 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/baskervillef/baskervillef.sty')
-rw-r--r--Master/texmf-dist/tex/latex/baskervillef/baskervillef.sty166
1 files changed, 166 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/baskervillef/baskervillef.sty b/Master/texmf-dist/tex/latex/baskervillef/baskervillef.sty
new file mode 100644
index 00000000000..b6581d50ae3
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/baskervillef/baskervillef.sty
@@ -0,0 +1,166 @@
+%%
+\NeedsTeXFormat{LaTeX2e}
+\def\fileversion{1.00}
+\def\filedate{2016/11/16}
+\ProvidesPackage{baskervillef}
+ [\filedate\space v\fileversion. Style file for BaskervilleF.]
+
+\RequirePackage[LY1,T1]{fontenc}
+\RequirePackage{textcomp}
+\IfFileExists{mweights.sty}{\RequirePackage{mweights}}{}
+\RequirePackage{etoolbox}
+\IfFileExists{fontaxes.sty}{
+ \RequirePackage{fontaxes}
+ \DeclareRobustCommand\swshape{\not@math@alphabet\swshape\relax
+ \fontprimaryshape\itdefault\fontsecondaryshape\swdefault\selectfont}
+ \fa@naming@exception{shape}{{n}{sw}}{nw}
+ \fa@naming@exception{shape}{{it}{sw}}{sw}
+
+ \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}{{denominators}{proportional}}{Dnom}
+ \fa@naming@exception{figures}{{denominators}{tabular}}{Dnom}
+ \def\defigures{\@nomath\defigures
+ \fontfigurestyle{denominators}\selectfont}
+ \DeclareTextFontCommand{\textde}{\defigures}
+ \let\textdenominators\textde
+}{}
+\providecommand*{\textfrac}[2]{%
+ \textsu{#1}\kern0em\textfractionsolidus\kern0em\textde{#2}}
+
+\IfFileExists{xkeyval.sty}{
+ \newcommand*{\BaskervilleF@scale}{1}
+ \RequirePackage{xkeyval}
+ \DeclareOptionX{scale}{\renewcommand*{\BaskervilleF@scale}{##1}}
+ \DeclareOptionX{scaled}{\renewcommand*{\BaskervilleF@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}
+
+\newif\ifBaskervilleF@thrm
+\newif\ifBaskervilleF@sups
+\newif\ifBaskervilleF@scosf
+\def\useosf{\edef\BaskervilleF@figurestyle{OsF}}
+\@onlypreamble\useosf
+\def\useproportional{\edef\BaskervilleF@figurealign{}}
+\@onlypreamble\useproportional
+\newif\ifBaskervilleF@babel
+\ifdefined\bbl@tempa \BaskervilleF@babeltrue\fi
+
+\def\BaskervilleF@sp{.26em}
+\def\BaskervilleF@stretch{.13em}
+\def\BaskervilleF@shrink{.08em}
+
+\DeclareOptionX{spacing}[.26em]{\gdef\BaskervilleF@sp{#1}}
+\DeclareOptionX{stretch}[.13em]{\gdef\BaskervilleF@stretch{#1}}
+\DeclareOptionX{shrink}[.08em]{\gdef\BaskervilleF@shrink{#1}}
+\DeclareOptionX{theoremfont}{\BaskervilleF@thrmtrue}
+\DeclareOptionX{lining}{\edef\BaskervilleF@figurestyle{LF}}
+\DeclareOptionX{lf}{\edef\BaskervilleF@figurestyle{LF}}
+\DeclareOptionX{oldstyle}{\edef\BaskervilleF@figurestyle{OsF}}
+\DeclareOptionX{osf}{\edef\BaskervilleF@figurestyle{OsF}}
+\DeclareOptionX{tabular}{\edef\BaskervilleF@figurealign{T}}
+\DeclareOptionX{t}{\edef\BaskervilleF@figurealign{T}}
+\DeclareOptionX{proportional}{\edef\BaskervilleF@figurealign{}}
+\DeclareOptionX{p}{\edef\BaskervilleF@figurealign{}}
+\DeclareOptionX{sups}{\BaskervilleF@supstrue}
+\DeclareOptionX{scosf}{\BaskervilleF@scosftrue}
+\ExecuteOptionsX{lining,tabular}
+\ProcessOptionsX\relax
+
+\def\BaskervilleF@spc{%
+ \fontdimen2\font=\BaskervilleF@sp
+ \fontdimen3\font=\BaskervilleF@stretch
+ \fontdimen4\font=\BaskervilleF@shrink
+} % used to change default text spacing via fd files
+\ifBaskervilleF@thrm
+ \ifdefined\newtheoremstyle
+ \newtheoremstyle{plain}
+ {\topsep} % ABOVESPACE
+ {\topsep} % BELOWSPACE
+ {\slshape} % BODYFONT--\slshape is defined to be \itshape with upright figures and punctuation
+ {} % INDENT (empty value is the same as 0pt)
+ {\bfseries} % HEADFONT--you may want to add \tlfstyle so the number is tab lining, regardless of text figure selection
+ {.} % HEADPUNCT
+ {5pt plus 1pt minus 1pt} % HEADSPACE
+ {} % CUSTOM-HEAD-SPEC\newtheorem{thm}{Theorem}[section]
+ \fi%
+\fi
+
+\DeclareRobustCommand{\lfstyle}{%
+ \not@math@alphabet\lfstyle\relax
+ \fontfamily{BaskervilleF-LF}\selectfont %
+}% to get lf
+\DeclareRobustCommand{\tlfstyle}{%
+ \not@math@alphabet\tlfstyle\relax
+ \fontfamily{BaskervilleF-TLF}\selectfont %
+}% to get tlf
+\DeclareRobustCommand{\osfstyle}{%
+ \not@math@alphabet\osfstyle\relax
+ \fontfamily{BaskervilleF-OsF}\selectfont %
+}% to get osf
+\DeclareRobustCommand{\tosfstyle}{%
+ \not@math@alphabet\tosfstyle\relax
+ \fontfamily{BaskervilleF-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
+\ifBaskervilleF@scosf %
+\DeclareRobustCommand{\textsc}[1]{%
+{\fontfamily{BaskervilleF-\BaskervilleF@figurealign%
+OsF}\fontshape{sc}\selectfont #1}%
+}\fi% use OsF in small caps
+
+\renewcommand*{\rmdefault}{BaskervilleF-TLF} % always TLF in math
+\renewcommand*{\familydefault}{\rmdefault}
+
+\ifBaskervilleF@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
+
+\ifBaskervilleF@babel
+ \renewcommand*{\rmdefault}{BaskervilleF-\BaskervilleF@figurealign%
+ \BaskervilleF@figurestyle}
+ \normalfont
+\else
+ \AtEndPreamble{%
+ \renewcommand*{\rmdefault}{BaskervilleF-\BaskervilleF@figurealign%
+ \BaskervilleF@figurestyle}
+ \normalfont}
+\fi
+\renewcommand*{\familydefault}{\rmdefault}
+
+\endinput