diff options
author | Karl Berry <karl@freefriends.org> | 2013-11-02 22:47:39 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-11-02 22:47:39 +0000 |
commit | b1f9679c2e21f8a55b37b6fe8663a9d0d5a16dd8 (patch) | |
tree | 08c8bfcefb03bf6f1e562a3951ae5db5d56a3abe /Master/texmf-dist/tex/latex/fbb | |
parent | 58ab36de67558b50fa64168bddc6f0b820c3681b (diff) |
fbb (2nov13)
git-svn-id: svn://tug.org/texlive/trunk@32040 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/fbb')
-rw-r--r-- | Master/texmf-dist/tex/latex/fbb/fbb.sty | 32 |
1 files changed, 28 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/fbb/fbb.sty b/Master/texmf-dist/tex/latex/fbb/fbb.sty index 5ada3e0b393..2668ccdb162 100644 --- a/Master/texmf-dist/tex/latex/fbb/fbb.sty +++ b/Master/texmf-dist/tex/latex/fbb/fbb.sty @@ -1,8 +1,12 @@ %% fbb.sty %% \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{fbb} - [2013/10/08 (Michael Sharpe) Style file for fbb.] + +\def\fileversion{1.00} +\def\filedate{2013/11/01} +\ProvidesPackage{fbb}[\filedate\space v\fileversion] + +\message{`fbb' v\fileversion, \filedate\space Text macros for fbb, a Bembo-like font family (msharpe)} \RequirePackage[LY1,T1]{fontenc} \RequirePackage{textcomp} @@ -15,11 +19,11 @@ \fontfigurestyle{superior}\selectfont} \DeclareTextFontCommand{\textsu}{\sufigures} \let\textsuperior\textsu - \def\@makefnmark{\hbox{\textsu{\@thefnmark}}} +% \def\@makefnmark{\hbox{\textsu{\@thefnmark}}} }{} +\newcommand*{\fbb@scale}{1} \IfFileExists{xkeyval.sty}{ - \newcommand*{\fbb@scale}{1} \RequirePackage{xkeyval} \DeclareOptionX{scale}{\renewcommand*{\fbb@scale}{##1}} \DeclareOptionX{scaled}{\renewcommand*{\fbb@scale}{##1}} @@ -29,12 +33,17 @@ \let\ProcessOptionsX\ProcessOptions } +\let\orig@footnote=\thefootnote +\let\orig@makefnmark=\@makefnmark + +\newif\if@fbb@sups \DeclareOptionX{lining}{\edef\fbb@figurestyle{LF}} \DeclareOptionX{oldstyle}{\edef\fbb@figurestyle{OsF}} \DeclareOptionX{tabular}{\edef\fbb@figurealign{T}} \DeclareOptionX{proportional}{\edef\fbb@figurealign{}} \DeclareOptionX{bold}{\edef\bfseries@rm{b}} \DeclareOptionX{regular}{\edef\mdseries@rm{m}} +\DeclareOptionX{sups}{\@fbb@supstrue} \ExecuteOptionsX{lining,tabular,bold,regular} \ProcessOptionsX\relax @@ -67,5 +76,20 @@ \renewcommand*{\rmdefault}{fbb-\fbb@figurealign\fbb@figurestyle} \renewcommand*{\familydefault}{\rmdefault} +\if@fbb@sups % + \ifdefined\sufigures + \def\f@@tn@te{footnote} + \def\@makefnmark{% + \ifx\@mpfn\f@@tn@te% + \ifx\thefootnote\orig@footnote% + \hbox{\sufigures\hspace*{.04em}\@thefnmark} + \else% + \orig@makefnmark + \fi + \else% + \orig@makefnmark + \fi}% + \fi +\fi \endinput |